1 | <?php |
||
23 | abstract class AbstractOrder extends BaseEvent |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $order; |
||
30 | |||
31 | /** |
||
32 | * @var Email |
||
33 | */ |
||
34 | private $userEmail; |
||
35 | |||
36 | /** |
||
37 | * @var Money |
||
38 | */ |
||
39 | private $amount; |
||
40 | |||
41 | /** |
||
42 | * @var Address |
||
43 | */ |
||
44 | private $billingAddress; |
||
45 | |||
46 | /** |
||
47 | * @var PaymentMethods |
||
48 | */ |
||
49 | private $paymentMethods; |
||
50 | |||
51 | /** |
||
52 | * @var Address |
||
53 | */ |
||
54 | private $shippingAddress; |
||
55 | |||
56 | /** |
||
57 | * @var bool |
||
58 | */ |
||
59 | private $expeditedShipping = false; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | private $shippingMethod; |
||
65 | |||
66 | /** |
||
67 | * @var Items |
||
68 | */ |
||
69 | private $items; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | private $sellerUserId; |
||
75 | |||
76 | /** |
||
77 | * @var Promotions |
||
78 | */ |
||
79 | private $promotions; |
||
80 | |||
81 | /** |
||
82 | * @param string $type |
||
83 | */ |
||
84 | 17 | public function __construct($type) |
|
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 5 | public function getOrder() |
|
99 | |||
100 | /** |
||
101 | * @param string $order |
||
102 | * |
||
103 | * @return $this |
||
104 | */ |
||
105 | 1 | public function setOrder($order) |
|
111 | |||
112 | /** |
||
113 | * @return Email |
||
114 | */ |
||
115 | 5 | public function getUserEmail() |
|
119 | |||
120 | /** |
||
121 | * @param Email $userEmail |
||
122 | * |
||
123 | * @return $this |
||
124 | */ |
||
125 | 1 | public function setUserEmail(Email $userEmail) |
|
131 | |||
132 | /** |
||
133 | * @return Money |
||
134 | */ |
||
135 | 5 | public function getAmount() |
|
139 | |||
140 | /** |
||
141 | * @param Money $amount |
||
142 | * |
||
143 | * @return $this |
||
144 | */ |
||
145 | 1 | public function setAmount(Money $amount) |
|
151 | |||
152 | /** |
||
153 | * @return Address |
||
154 | */ |
||
155 | 5 | public function getBillingAddress() |
|
159 | |||
160 | /** |
||
161 | * @param Address $billingAddress |
||
162 | * |
||
163 | * @return $this |
||
164 | */ |
||
165 | 1 | public function setBillingAddress(Address $billingAddress) |
|
171 | |||
172 | /** |
||
173 | * @return PaymentMethods |
||
174 | */ |
||
175 | 5 | public function getPaymentMethods() |
|
179 | |||
180 | /** |
||
181 | * @param PaymentMethod $paymentMethod |
||
182 | * |
||
183 | * @return $this |
||
184 | */ |
||
185 | 1 | public function addPaymentMethod(PaymentMethod $paymentMethod) |
|
191 | |||
192 | /** |
||
193 | * @return Address |
||
194 | */ |
||
195 | 5 | public function getShippingAddress() |
|
199 | |||
200 | /** |
||
201 | * @param Address $shippingAddress |
||
202 | * |
||
203 | * @return $this |
||
204 | */ |
||
205 | 1 | public function setShippingAddress(Address $shippingAddress) |
|
211 | |||
212 | /** |
||
213 | * @return bool |
||
214 | */ |
||
215 | 5 | public function isExpeditedShipping() |
|
219 | |||
220 | /** |
||
221 | * @param bool $expeditedShipping |
||
222 | * |
||
223 | * @return $this |
||
224 | */ |
||
225 | 1 | public function setExpeditedShipping($expeditedShipping) |
|
231 | |||
232 | /** |
||
233 | * @return string |
||
234 | */ |
||
235 | 5 | public function getShippingMethod() |
|
239 | |||
240 | /** |
||
241 | * @param string $shippingMethod |
||
242 | * |
||
243 | * @return $this |
||
244 | */ |
||
245 | 2 | public function setShippingMethod($shippingMethod) |
|
255 | |||
256 | /** |
||
257 | * @return Items |
||
258 | */ |
||
259 | 5 | public function getItems() |
|
263 | |||
264 | /** |
||
265 | * @param Item $item |
||
266 | * |
||
267 | * @return $this |
||
268 | */ |
||
269 | 1 | public function addItem(Item $item) |
|
275 | |||
276 | /** |
||
277 | * @return string |
||
278 | */ |
||
279 | 5 | public function getSellerUserId() |
|
283 | |||
284 | /** |
||
285 | * @param string $sellerUserId |
||
286 | * |
||
287 | * @return $this |
||
288 | */ |
||
289 | 1 | public function setSellerUserId($sellerUserId) |
|
295 | |||
296 | /** |
||
297 | * @return Promotions |
||
298 | */ |
||
299 | 5 | public function getPromotions() |
|
303 | |||
304 | /** |
||
305 | * @param Promotion $promotion |
||
306 | * |
||
307 | * @return $this |
||
308 | */ |
||
309 | 1 | public function addPromotion(Promotion $promotion) |
|
315 | } |
||
316 |