CouponExpireEvent.php 739 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: CJVV
  5. * Date: 2021/3/17
  6. * Time: 16:36
  7. */
  8. namespace app\common\events\coupon;
  9. /**
  10. * 优惠券到期
  11. * Class CouponExpireEvent
  12. * @package app\common\events\order
  13. */
  14. class CouponExpireEvent
  15. {
  16. protected $time_end;
  17. protected $couponId;
  18. protected $memberId;
  19. public function __construct($couponId,$memberId,$time_end)
  20. {
  21. $this->couponId = $couponId;
  22. $this->memberId = $memberId;
  23. $this->time_end = $time_end;
  24. }
  25. public function getMember()
  26. {
  27. return $this->memberId;
  28. }
  29. public function getCoupon()
  30. {
  31. return $this->couponId;
  32. }
  33. public function getExpireTime()
  34. {
  35. return $this->time_end;
  36. }
  37. }