1 | <?php |
||
27 | class Bill implements BillInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var int|string |
||
31 | */ |
||
32 | protected $id; |
||
33 | |||
34 | /** |
||
35 | * @var TypeInterface |
||
36 | */ |
||
37 | protected $type; |
||
38 | |||
39 | /** |
||
40 | * @var DateTime |
||
41 | */ |
||
42 | protected $time; |
||
43 | |||
44 | /** |
||
45 | * @var Money |
||
46 | */ |
||
47 | protected $sum; |
||
48 | |||
49 | /** |
||
50 | * @var QuantityInterface |
||
51 | */ |
||
52 | protected $quantity; |
||
53 | |||
54 | /** |
||
55 | * @var CustomerInterface |
||
56 | */ |
||
57 | protected $customer; |
||
58 | |||
59 | /** |
||
60 | * @var TargetInterface |
||
61 | */ |
||
62 | protected $target; |
||
63 | |||
64 | /** |
||
65 | * @var PlanInterface |
||
66 | */ |
||
67 | protected $plan; |
||
68 | |||
69 | /** |
||
70 | * @var bool |
||
71 | */ |
||
72 | protected $isFinished; |
||
73 | |||
74 | /** |
||
75 | * @var ChargeInterface[] |
||
76 | */ |
||
77 | protected $charges = []; |
||
78 | |||
79 | 1 | public function __construct( |
|
100 | |||
101 | 1 | public function getUniqueId() |
|
114 | |||
115 | public function calculatePrice() |
||
121 | |||
122 | /** |
||
123 | * @return int|string |
||
124 | */ |
||
125 | public function getId() |
||
129 | |||
130 | /** |
||
131 | * @return TypeInterface |
||
132 | */ |
||
133 | 1 | public function getType() |
|
137 | |||
138 | /** |
||
139 | * @return DateTime |
||
140 | */ |
||
141 | 1 | public function getTime() |
|
145 | |||
146 | /** |
||
147 | * @return TargetInterface |
||
148 | */ |
||
149 | 1 | public function getTarget() |
|
153 | |||
154 | /** |
||
155 | * @return CustomerInterface |
||
156 | */ |
||
157 | 1 | public function getCustomer() |
|
161 | |||
162 | /** |
||
163 | * @return QuantityInterface |
||
164 | */ |
||
165 | 1 | public function getQuantity() |
|
169 | |||
170 | /** |
||
171 | * @return Money |
||
172 | */ |
||
173 | 1 | public function getSum() |
|
177 | |||
178 | /** |
||
179 | * @return PlanInterface |
||
180 | */ |
||
181 | 1 | public function getPlan() |
|
185 | |||
186 | /** |
||
187 | * @return ChargeInterface[] |
||
188 | */ |
||
189 | 1 | public function getCharges() |
|
193 | |||
194 | public function jsonSerialize() |
||
198 | } |
||
199 |