1 | <?php |
||
4 | class CouponAbstract implements CouponInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | public $code; |
||
11 | |||
12 | /** |
||
13 | * @var CouponSheetInterface |
||
14 | */ |
||
15 | public $coupon_sheet; |
||
16 | |||
17 | |||
18 | /** |
||
19 | * @return string |
||
20 | * @implements CouponInterface |
||
21 | */ |
||
22 | 15 | public function getCode() |
|
26 | |||
27 | |||
28 | /** |
||
29 | * @return CouponSheetInterface |
||
30 | * @implements CouponInterface |
||
31 | */ |
||
32 | 35 | public function getCouponSheet() |
|
36 | |||
37 | /** |
||
38 | * @return bool |
||
39 | * @implements ValidCouponInterface |
||
40 | */ |
||
41 | 10 | public function isValid() |
|
46 | |||
47 | |||
48 | /** |
||
49 | * @return bool |
||
50 | * @implements ValidCouponInterface |
||
51 | */ |
||
52 | 10 | public function isExpired() |
|
57 | |||
58 | |||
59 | } |
||
60 |