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.

34 lines
691 B

  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Service\v3\Interfaces\CollectStoreServiceInterface;
  4. class CollectStoreService implements CollectStoreServiceInterface
  5. {
  6. public function do($marketId, $storeId, $userId)
  7. {
  8. // TODO: Implement do() method.
  9. }
  10. public function check($marketId, $storeId, $userId)
  11. {
  12. return (bool)mt_rand(0,1);
  13. }
  14. public function undo($marketId, $storeId, $userId)
  15. {
  16. // TODO: Implement undo() method.
  17. }
  18. public function countByUser($userId)
  19. {
  20. return mt_rand(0,30);
  21. }
  22. public function countByStore($storeId)
  23. {
  24. // TODO: Implement countByStore() method.
  25. }
  26. }