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.

40 lines
639 B

  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Service\v3\Interfaces\CouponServiceInterface;
  4. class CouponService implements CouponServiceInterface
  5. {
  6. /**
  7. * @inheritDoc
  8. */
  9. public function do()
  10. {
  11. // TODO: Implement do() method.
  12. }
  13. /**
  14. * @inheritDoc
  15. */
  16. public function check()
  17. {
  18. // TODO: Implement check() method.
  19. }
  20. /**
  21. * @inheritDoc
  22. */
  23. public function undo()
  24. {
  25. // TODO: Implement undo() method.
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. public function countAvailableByUser($userId)
  31. {
  32. return mt_rand(0,10);
  33. }
  34. }