1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of PHP CS Fixer. |
5
|
|
|
* |
6
|
|
|
* (c) Fabien Potencier <[email protected]> |
7
|
|
|
* Dariusz Rumiński <[email protected]> |
8
|
|
|
* |
9
|
|
|
* This source file is subject to the MIT license that is bundled |
10
|
|
|
* with this source code in the file LICENSE. |
11
|
|
|
*/ |
12
|
|
|
|
13
|
|
|
namespace Etrias\PaazlConnector\SoapTypes; |
14
|
|
|
|
15
|
|
|
class Order |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @var \DateTime |
19
|
|
|
*/ |
20
|
|
|
protected $createDate = null; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var \DateTime |
24
|
|
|
*/ |
25
|
|
|
protected $lastModificationDate = null; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
protected $orderReference = null; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var orderStatusType |
34
|
|
|
*/ |
35
|
|
|
protected $status = null; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
protected $distributor = null; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
protected $shippingOption = null; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
protected $companyName = null; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var string |
54
|
|
|
*/ |
55
|
|
|
protected $name = null; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
protected $nameOther = null; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var addressType |
64
|
|
|
*/ |
65
|
|
|
protected $shipToAddress = null; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var servicePointDetailsType |
69
|
|
|
*/ |
70
|
|
|
protected $servicePointDetails = null; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var string |
74
|
|
|
*/ |
75
|
|
|
protected $emailAddress = null; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @var string |
79
|
|
|
*/ |
80
|
|
|
protected $phoneNumber = null; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var \DateTime |
84
|
|
|
*/ |
85
|
|
|
protected $expectedDeliveryDate = null; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @var timeRangeType |
89
|
|
|
*/ |
90
|
|
|
protected $expectedDeliveryTimeFrame = null; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var \DateTime |
94
|
|
|
*/ |
95
|
|
|
protected $preferredDeliveryDate = null; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @var bool |
99
|
|
|
*/ |
100
|
|
|
protected $preferredDateChosen = null; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @var label |
104
|
|
|
*/ |
105
|
|
|
protected $label = null; |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* Constructor. |
109
|
|
|
* |
110
|
|
|
* @var \DateTime |
111
|
|
|
* @var \DateTime $lastModificationDate |
112
|
|
|
* @var string $orderReference |
113
|
|
|
* @var orderStatusType $status |
114
|
|
|
* @var string $distributor |
115
|
|
|
* @var string $shippingOption |
116
|
|
|
* @var string $companyName |
117
|
|
|
* @var string $name |
118
|
|
|
* @var string $nameOther |
119
|
|
|
* @var addressType $shipToAddress |
120
|
|
|
* @var servicePointDetailsType $servicePointDetails |
121
|
|
|
* @var string $emailAddress |
122
|
|
|
* @var string $phoneNumber |
123
|
|
|
* @var \DateTime $expectedDeliveryDate |
124
|
|
|
* @var timeRangeType $expectedDeliveryTimeFrame |
125
|
|
|
* @var \DateTime $preferredDeliveryDate |
126
|
|
|
* @var bool $preferredDateChosen |
127
|
|
|
* @var label $label |
128
|
|
|
* |
129
|
|
|
* @param mixed $createDate |
130
|
|
|
* @param mixed $lastModificationDate |
131
|
|
|
* @param mixed $orderReference |
132
|
|
|
* @param mixed $status |
133
|
|
|
* @param mixed $distributor |
134
|
|
|
* @param mixed $shippingOption |
135
|
|
|
* @param mixed $companyName |
136
|
|
|
* @param mixed $name |
137
|
|
|
* @param mixed $nameOther |
138
|
|
|
* @param mixed $shipToAddress |
139
|
|
|
* @param mixed $servicePointDetails |
140
|
|
|
* @param mixed $emailAddress |
141
|
|
|
* @param mixed $phoneNumber |
142
|
|
|
* @param mixed $expectedDeliveryDate |
143
|
|
|
* @param mixed $expectedDeliveryTimeFrame |
144
|
|
|
* @param mixed $preferredDeliveryDate |
145
|
|
|
* @param mixed $preferredDateChosen |
146
|
|
|
* @param mixed $label |
147
|
|
|
*/ |
148
|
|
|
public function __construct($createDate, $lastModificationDate, $orderReference, $status, $distributor, $shippingOption, $companyName, $name, $nameOther, $shipToAddress, $servicePointDetails, $emailAddress, $phoneNumber, $expectedDeliveryDate, $expectedDeliveryTimeFrame, $preferredDeliveryDate, $preferredDateChosen, $label) |
149
|
|
|
{ |
150
|
|
|
$this->createDate = $createDate; |
|
|
|
|
151
|
|
|
$this->lastModificationDate = $lastModificationDate; |
152
|
|
|
$this->orderReference = $orderReference; |
153
|
|
|
$this->status = $status; |
154
|
|
|
$this->distributor = $distributor; |
155
|
|
|
$this->shippingOption = $shippingOption; |
156
|
|
|
$this->companyName = $companyName; |
157
|
|
|
$this->name = $name; |
158
|
|
|
$this->nameOther = $nameOther; |
159
|
|
|
$this->shipToAddress = $shipToAddress; |
160
|
|
|
$this->servicePointDetails = $servicePointDetails; |
161
|
|
|
$this->emailAddress = $emailAddress; |
162
|
|
|
$this->phoneNumber = $phoneNumber; |
163
|
|
|
$this->expectedDeliveryDate = $expectedDeliveryDate; |
164
|
|
|
$this->expectedDeliveryTimeFrame = $expectedDeliveryTimeFrame; |
165
|
|
|
$this->preferredDeliveryDate = $preferredDeliveryDate; |
166
|
|
|
$this->preferredDateChosen = $preferredDateChosen; |
167
|
|
|
$this->label = $label; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @return \DateTime |
172
|
|
|
*/ |
173
|
|
|
public function getCreateDate() |
174
|
|
|
{ |
175
|
|
|
return $this->createDate; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @param \DateTime $createDate |
180
|
|
|
* |
181
|
|
|
* @return $this |
182
|
|
|
*/ |
183
|
|
|
public function setCreateDate($createDate) |
184
|
|
|
{ |
185
|
|
|
$this->createDate = $createDate; |
186
|
|
|
|
187
|
|
|
return $this; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @return \DateTime |
192
|
|
|
*/ |
193
|
|
|
public function getLastModificationDate() |
194
|
|
|
{ |
195
|
|
|
return $this->lastModificationDate; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @param \DateTime $lastModificationDate |
200
|
|
|
* |
201
|
|
|
* @return $this |
202
|
|
|
*/ |
203
|
|
|
public function setLastModificationDate($lastModificationDate) |
204
|
|
|
{ |
205
|
|
|
$this->lastModificationDate = $lastModificationDate; |
206
|
|
|
|
207
|
|
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @return string |
212
|
|
|
*/ |
213
|
|
|
public function getOrderReference() |
214
|
|
|
{ |
215
|
|
|
return $this->orderReference; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $orderReference |
220
|
|
|
* |
221
|
|
|
* @return $this |
222
|
|
|
*/ |
223
|
|
|
public function setOrderReference($orderReference) |
224
|
|
|
{ |
225
|
|
|
$this->orderReference = $orderReference; |
226
|
|
|
|
227
|
|
|
return $this; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @return orderStatusType |
232
|
|
|
*/ |
233
|
|
|
public function getStatus() |
234
|
|
|
{ |
235
|
|
|
return $this->status; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @param orderStatusType $status |
240
|
|
|
* |
241
|
|
|
* @return $this |
242
|
|
|
*/ |
243
|
|
|
public function setStatus($status) |
244
|
|
|
{ |
245
|
|
|
$this->status = $status; |
246
|
|
|
|
247
|
|
|
return $this; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @return string |
252
|
|
|
*/ |
253
|
|
|
public function getDistributor() |
254
|
|
|
{ |
255
|
|
|
return $this->distributor; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @param string $distributor |
260
|
|
|
* |
261
|
|
|
* @return $this |
262
|
|
|
*/ |
263
|
|
|
public function setDistributor($distributor) |
264
|
|
|
{ |
265
|
|
|
$this->distributor = $distributor; |
266
|
|
|
|
267
|
|
|
return $this; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* @return string |
272
|
|
|
*/ |
273
|
|
|
public function getShippingOption() |
274
|
|
|
{ |
275
|
|
|
return $this->shippingOption; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
/** |
279
|
|
|
* @param string $shippingOption |
280
|
|
|
* |
281
|
|
|
* @return $this |
282
|
|
|
*/ |
283
|
|
|
public function setShippingOption($shippingOption) |
284
|
|
|
{ |
285
|
|
|
$this->shippingOption = $shippingOption; |
286
|
|
|
|
287
|
|
|
return $this; |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* @return string |
292
|
|
|
*/ |
293
|
|
|
public function getCompanyName() |
294
|
|
|
{ |
295
|
|
|
return $this->companyName; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @param string $companyName |
300
|
|
|
* |
301
|
|
|
* @return $this |
302
|
|
|
*/ |
303
|
|
|
public function setCompanyName($companyName) |
304
|
|
|
{ |
305
|
|
|
$this->companyName = $companyName; |
306
|
|
|
|
307
|
|
|
return $this; |
308
|
|
|
} |
309
|
|
|
|
310
|
|
|
/** |
311
|
|
|
* @return string |
312
|
|
|
*/ |
313
|
|
|
public function getName() |
314
|
|
|
{ |
315
|
|
|
return $this->name; |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
/** |
319
|
|
|
* @param string $name |
320
|
|
|
* |
321
|
|
|
* @return $this |
322
|
|
|
*/ |
323
|
|
|
public function setName($name) |
324
|
|
|
{ |
325
|
|
|
$this->name = $name; |
326
|
|
|
|
327
|
|
|
return $this; |
328
|
|
|
} |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* @return string |
332
|
|
|
*/ |
333
|
|
|
public function getNameOther() |
334
|
|
|
{ |
335
|
|
|
return $this->nameOther; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* @param string $nameOther |
340
|
|
|
* |
341
|
|
|
* @return $this |
342
|
|
|
*/ |
343
|
|
|
public function setNameOther($nameOther) |
344
|
|
|
{ |
345
|
|
|
$this->nameOther = $nameOther; |
346
|
|
|
|
347
|
|
|
return $this; |
348
|
|
|
} |
349
|
|
|
|
350
|
|
|
/** |
351
|
|
|
* @return addressType |
352
|
|
|
*/ |
353
|
|
|
public function getShipToAddress() |
354
|
|
|
{ |
355
|
|
|
return $this->shipToAddress; |
356
|
|
|
} |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* @param addressType $shipToAddress |
360
|
|
|
* |
361
|
|
|
* @return $this |
362
|
|
|
*/ |
363
|
|
|
public function setShipToAddress($shipToAddress) |
364
|
|
|
{ |
365
|
|
|
$this->shipToAddress = $shipToAddress; |
366
|
|
|
|
367
|
|
|
return $this; |
368
|
|
|
} |
369
|
|
|
|
370
|
|
|
/** |
371
|
|
|
* @return servicePointDetailsType |
372
|
|
|
*/ |
373
|
|
|
public function getServicePointDetails() |
374
|
|
|
{ |
375
|
|
|
return $this->servicePointDetails; |
376
|
|
|
} |
377
|
|
|
|
378
|
|
|
/** |
379
|
|
|
* @param servicePointDetailsType $servicePointDetails |
380
|
|
|
* |
381
|
|
|
* @return $this |
382
|
|
|
*/ |
383
|
|
|
public function setServicePointDetails($servicePointDetails) |
384
|
|
|
{ |
385
|
|
|
$this->servicePointDetails = $servicePointDetails; |
386
|
|
|
|
387
|
|
|
return $this; |
388
|
|
|
} |
389
|
|
|
|
390
|
|
|
/** |
391
|
|
|
* @return string |
392
|
|
|
*/ |
393
|
|
|
public function getEmailAddress() |
394
|
|
|
{ |
395
|
|
|
return $this->emailAddress; |
396
|
|
|
} |
397
|
|
|
|
398
|
|
|
/** |
399
|
|
|
* @param string $emailAddress |
400
|
|
|
* |
401
|
|
|
* @return $this |
402
|
|
|
*/ |
403
|
|
|
public function setEmailAddress($emailAddress) |
404
|
|
|
{ |
405
|
|
|
$this->emailAddress = $emailAddress; |
406
|
|
|
|
407
|
|
|
return $this; |
408
|
|
|
} |
409
|
|
|
|
410
|
|
|
/** |
411
|
|
|
* @return string |
412
|
|
|
*/ |
413
|
|
|
public function getPhoneNumber() |
414
|
|
|
{ |
415
|
|
|
return $this->phoneNumber; |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* @param string $phoneNumber |
420
|
|
|
* |
421
|
|
|
* @return $this |
422
|
|
|
*/ |
423
|
|
|
public function setPhoneNumber($phoneNumber) |
424
|
|
|
{ |
425
|
|
|
$this->phoneNumber = $phoneNumber; |
426
|
|
|
|
427
|
|
|
return $this; |
428
|
|
|
} |
429
|
|
|
|
430
|
|
|
/** |
431
|
|
|
* @return \DateTime |
432
|
|
|
*/ |
433
|
|
|
public function getExpectedDeliveryDate() |
434
|
|
|
{ |
435
|
|
|
return $this->expectedDeliveryDate; |
436
|
|
|
} |
437
|
|
|
|
438
|
|
|
/** |
439
|
|
|
* @param \DateTime $expectedDeliveryDate |
440
|
|
|
* |
441
|
|
|
* @return $this |
442
|
|
|
*/ |
443
|
|
|
public function setExpectedDeliveryDate($expectedDeliveryDate) |
444
|
|
|
{ |
445
|
|
|
$this->expectedDeliveryDate = $expectedDeliveryDate; |
446
|
|
|
|
447
|
|
|
return $this; |
448
|
|
|
} |
449
|
|
|
|
450
|
|
|
/** |
451
|
|
|
* @return timeRangeType |
452
|
|
|
*/ |
453
|
|
|
public function getExpectedDeliveryTimeFrame() |
454
|
|
|
{ |
455
|
|
|
return $this->expectedDeliveryTimeFrame; |
456
|
|
|
} |
457
|
|
|
|
458
|
|
|
/** |
459
|
|
|
* @param timeRangeType $expectedDeliveryTimeFrame |
460
|
|
|
* |
461
|
|
|
* @return $this |
462
|
|
|
*/ |
463
|
|
|
public function setExpectedDeliveryTimeFrame($expectedDeliveryTimeFrame) |
464
|
|
|
{ |
465
|
|
|
$this->expectedDeliveryTimeFrame = $expectedDeliveryTimeFrame; |
466
|
|
|
|
467
|
|
|
return $this; |
468
|
|
|
} |
469
|
|
|
|
470
|
|
|
/** |
471
|
|
|
* @return \DateTime |
472
|
|
|
*/ |
473
|
|
|
public function getPreferredDeliveryDate() |
474
|
|
|
{ |
475
|
|
|
return $this->preferredDeliveryDate; |
476
|
|
|
} |
477
|
|
|
|
478
|
|
|
/** |
479
|
|
|
* @param \DateTime $preferredDeliveryDate |
480
|
|
|
* |
481
|
|
|
* @return $this |
482
|
|
|
*/ |
483
|
|
|
public function setPreferredDeliveryDate($preferredDeliveryDate) |
484
|
|
|
{ |
485
|
|
|
$this->preferredDeliveryDate = $preferredDeliveryDate; |
486
|
|
|
|
487
|
|
|
return $this; |
488
|
|
|
} |
489
|
|
|
|
490
|
|
|
/** |
491
|
|
|
* @return bool |
492
|
|
|
*/ |
493
|
|
|
public function getPreferredDateChosen() |
494
|
|
|
{ |
495
|
|
|
return $this->preferredDateChosen; |
496
|
|
|
} |
497
|
|
|
|
498
|
|
|
/** |
499
|
|
|
* @param bool $preferredDateChosen |
500
|
|
|
* |
501
|
|
|
* @return $this |
502
|
|
|
*/ |
503
|
|
|
public function setPreferredDateChosen($preferredDateChosen) |
504
|
|
|
{ |
505
|
|
|
$this->preferredDateChosen = $preferredDateChosen; |
506
|
|
|
|
507
|
|
|
return $this; |
508
|
|
|
} |
509
|
|
|
|
510
|
|
|
/** |
511
|
|
|
* @return label |
512
|
|
|
*/ |
513
|
|
|
public function getLabel() |
514
|
|
|
{ |
515
|
|
|
return $this->label; |
516
|
|
|
} |
517
|
|
|
|
518
|
|
|
/** |
519
|
|
|
* @param label $label |
520
|
|
|
* |
521
|
|
|
* @return $this |
522
|
|
|
*/ |
523
|
|
|
public function setLabel($label) |
524
|
|
|
{ |
525
|
|
|
$this->label = $label; |
526
|
|
|
|
527
|
|
|
return $this; |
528
|
|
|
} |
529
|
|
|
} |
530
|
|
|
|
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.