1 | <?php |
||
14 | class Discount |
||
15 | { |
||
16 | /** |
||
17 | * @var Percentage |
||
18 | */ |
||
19 | private $percentage; |
||
20 | |||
21 | /** |
||
22 | * @var Money |
||
23 | */ |
||
24 | private $amount; |
||
25 | |||
26 | /** |
||
27 | * @var Money |
||
28 | */ |
||
29 | private $minimumPurchaseAmount; |
||
30 | |||
31 | /** |
||
32 | * @return Percentage |
||
33 | */ |
||
34 | 1 | public function getPercentage() |
|
38 | |||
39 | /** |
||
40 | * @param Percentage $percentage |
||
41 | * |
||
42 | * @return Discount |
||
43 | */ |
||
44 | 1 | public function setPercentage(Percentage $percentage) |
|
50 | |||
51 | /** |
||
52 | * @return Money |
||
53 | */ |
||
54 | 1 | public function getAmount() |
|
58 | |||
59 | /** |
||
60 | * @param Money $amount |
||
61 | * |
||
62 | * @return Discount |
||
63 | */ |
||
64 | 1 | public function setAmount(Money $amount) |
|
70 | |||
71 | /** |
||
72 | * @return Money |
||
73 | */ |
||
74 | 1 | public function getMinimumPurchaseAmount() |
|
78 | |||
79 | /** |
||
80 | * @param Money $minimumPurchaseAmount |
||
81 | * |
||
82 | * @return Discount |
||
83 | */ |
||
84 | 1 | public function setMinimumPurchaseAmount(Money $minimumPurchaseAmount) |
|
90 | } |
||
91 |