You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
605 B

5 years ago
  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Model\v3\FinancialRecord;
  4. use App\Service\v3\Interfaces\RevenueListServiceInterface;
  5. class RevenueListService implements RevenueListServiceInterface
  6. {
  7. public function do()
  8. {
  9. // TODO: Implement do() method.
  10. }
  11. public function check($userId)
  12. {
  13. $financialRecord = new FinancialRecord();
  14. $mod = bcmod((string)$userId, '5', 0);
  15. $financialRecord->suffix($mod);
  16. return $financialRecord::query()->get();
  17. }
  18. public function undo()
  19. {
  20. // TODO: Implement undo() method.
  21. }
  22. }