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 | public function __construct( |
||
100 | |||
101 | public function getUniqueId() |
||
114 | |||
115 | public function calculatePrice() |
||
121 | |||
122 | public function getId() |
||
126 | |||
127 | /** |
||
128 | * @return TypeInterface |
||
129 | */ |
||
130 | public function getType() |
||
134 | |||
135 | /** |
||
136 | * @return TargetInterface |
||
137 | */ |
||
138 | public function getTarget() |
||
142 | |||
143 | /** |
||
144 | * @return PriceInterface |
||
145 | */ |
||
146 | public function getPrice() |
||
150 | |||
151 | /** |
||
152 | * @return QuantityInterface |
||
153 | */ |
||
154 | public function getQuantity() |
||
158 | |||
159 | /** |
||
160 | * @return Money |
||
161 | */ |
||
162 | public function getSum() |
||
166 | |||
167 | public function jsonSerialize() |
||
171 | } |
||
172 |