OrderDetailsResponse   F
last analyzed

Complexity

Total Complexity 91

Size/Duplication

Total Lines 1269
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1269
rs 0.6314
c 0
b 0
f 0
wmc 91

91 Methods

Rating   Name   Duplication   Size   Complexity  
A setPackagingWeight() 0 5 1
A setCustomsValueCurrency() 0 5 1
A setPreferredDeliveryDate() 0 5 1
A getPickupDate() 0 3 1
A getAdditionalShipperNotificationTarget() 0 3 1
A getReturnName() 0 3 1
A getInsuredValue() 0 3 1
A setReturnName() 0 5 1
A getNameOther() 0 3 1
A getDutiesAccountNumber() 0 3 1
A setBillingAccountNumber() 0 5 1
A getPackagingWeight() 0 3 1
A getError() 0 3 1
A setCodValue() 0 5 1
A setInvoiceNumber() 0 5 1
A getCollo() 0 3 1
A setEmailAddress() 0 5 1
A setError() 0 5 1
A getDeliveryWindowStart() 0 3 1
A setDescription() 0 5 1
A setSenderName() 0 5 1
A getOrderWeight() 0 3 1
A getBillingAccountNumber() 0 3 1
A getInvoiceNumber() 0 3 1
A setMatrixCode() 0 5 1
A getSenderAddress() 0 3 1
A setAdditionalInstruction() 0 5 1
A getMaxLabels() 0 3 1
A getCompanyName() 0 3 1
A getName() 0 3 1
A getPreferredDateChosen() 0 3 1
A getPreferredDeliveryDate() 0 3 1
A setSenderAddress() 0 5 1
A setAdditionalShipperNotificationTarget() 0 5 1
A getCustomsValueCurrency() 0 3 1
A setOrderWeight() 0 5 1
A setCollo() 0 5 1
A getShipperNotificationTarget() 0 3 1
A setServicePointDetails() 0 5 1
A getAdditionalShipperNotificationType() 0 3 1
A setCustomsValue() 0 5 1
A setName() 0 5 1
A setDeliveryWindowStart() 0 5 1
A getCodValue() 0 3 1
A getSenderName() 0 3 1
A getAdditionalInstruction() 0 3 1
A getReturnAddress() 0 3 1
A getWebshopId() 0 3 1
A getServicePointDetails() 0 3 1
A setProducts() 0 5 1
A setPackagingType() 0 5 1
A getPhoneNumber() 0 3 1
A setInsuredValue() 0 5 1
A setShipperNotificationTarget() 0 5 1
A setWebshopId() 0 5 1
A setNumberOfArticles() 0 5 1
A getDescription() 0 3 1
A getCodValueCurrency() 0 3 1
A getEmailAddress() 0 3 1
A getShippingPaymentType() 0 3 1
A setDutiesPaymentType() 0 5 1
A setShippingPaymentType() 0 5 1
A getShippingOption() 0 3 1
A __construct() 0 47 1
A setDutiesAccountNumber() 0 5 1
A getNumberOfArticles() 0 3 1
A getMatrixCode() 0 3 1
A setPickupDate() 0 5 1
A getCustomsValue() 0 3 1
A setNameOther() 0 5 1
A getShipperNotificationType() 0 3 1
A getDutiesPaymentType() 0 3 1
A getProducts() 0 3 1
A setDeliveryWindowEnd() 0 5 1
A setPreferredDateChosen() 0 5 1
A getShipToAddress() 0 3 1
A setCreateDate() 0 5 1
A setReturnAddress() 0 5 1
A setMaxLabels() 0 5 1
A setPhoneNumber() 0 5 1
A getCreateDate() 0 3 1
A setShipperNotificationType() 0 5 1
A getInsuredValueCurrency() 0 3 1
A getDeliveryWindowEnd() 0 3 1
A setAdditionalShipperNotificationType() 0 5 1
A setCompanyName() 0 5 1
A getPackagingType() 0 3 1
A setCodValueCurrency() 0 5 1
A setShippingOption() 0 5 1
A setShipToAddress() 0 5 1
A setInsuredValueCurrency() 0 5 1

How to fix   Complexity   

Complex Class

Complex classes like OrderDetailsResponse often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use OrderDetailsResponse, and based on these observations, apply Extract Interface, too.

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
use Etrias\PaazlConnector\Result\PaazlResultInterface;
16
17
class OrderDetailsResponse implements PaazlResultInterface
18
{
19
    /**
20
     * @var errorType
21
     */
22
    protected $error = null;
23
24
    /**
25
     * @var string
26
     */
27
    protected $webshopId = null;
28
29
    /**
30
     * @var string
31
     */
32
    protected $matrixCode = null;
33
34
    /**
35
     * @var \DateTime
36
     */
37
    protected $createDate = null;
38
39
    /**
40
     * @var string
41
     */
42
    protected $companyName = null;
43
44
    /**
45
     * @var string
46
     */
47
    protected $name = null;
48
49
    /**
50
     * @var string
51
     */
52
    protected $nameOther = null;
53
54
    /**
55
     * @var addressType
56
     */
57
    protected $shipToAddress = null;
58
59
    /**
60
     * @var string
61
     */
62
    protected $emailAddress = null;
63
64
    /**
65
     * @var string
66
     */
67
    protected $phoneNumber = null;
68
69
    /**
70
     * @var string
71
     */
72
    protected $senderName = null;
73
74
    /**
75
     * @var addressType
76
     */
77
    protected $senderAddress = null;
78
79
    /**
80
     * @var string
81
     */
82
    protected $returnName = null;
83
84
    /**
85
     * @var addressType
86
     */
87
    protected $returnAddress = null;
88
89
    /**
90
     * @var shippingOptionDetailsType
91
     */
92
    protected $shippingOption = null;
93
94
    /**
95
     * @var servicePointDetailsType
96
     */
97
    protected $servicePointDetails = null;
98
99
    /**
100
     * @var int
101
     */
102
    protected $numberOfArticles = null;
103
104
    /**
105
     * @var shippingPaymentType
106
     */
107
    protected $shippingPaymentType = null;
108
109
    /**
110
     * @var string
111
     */
112
    protected $billingAccountNumber = null;
113
114
    /**
115
     * @var string
116
     */
117
    protected $invoiceNumber = null;
118
119
    /**
120
     * @var nonNegativeDecimal
0 ignored issues
show
Bug introduced by Christ-Jan
The type Etrias\PaazlConnector\SoapTypes\nonNegativeDecimal was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
121
     */
122
    protected $packagingWeight = null;
123
124
    /**
125
     * @var float
126
     */
127
    protected $customsValue = null;
128
129
    /**
130
     * @var currencyCode
0 ignored issues
show
Bug introduced by Christ-Jan
The type Etrias\PaazlConnector\SoapTypes\currencyCode was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
131
     */
132
    protected $customsValueCurrency = null;
133
134
    /**
135
     * @var dutiesPaymentType
136
     */
137
    protected $dutiesPaymentType = null;
138
139
    /**
140
     * @var string
141
     */
142
    protected $dutiesAccountNumber = null;
143
144
    /**
145
     * @var float
146
     */
147
    protected $orderWeight = null;
148
149
    /**
150
     * @var int
151
     */
152
    protected $maxLabels = null;
153
154
    /**
155
     * @var bool
156
     */
157
    protected $collo = null;
158
159
    /**
160
     * @var float
161
     */
162
    protected $codValue = null;
163
164
    /**
165
     * @var currencyCode
166
     */
167
    protected $codValueCurrency = null;
168
169
    /**
170
     * @var int
171
     */
172
    protected $insuredValue = null;
173
174
    /**
175
     * @var currencyCode
176
     */
177
    protected $insuredValueCurrency = null;
178
179
    /**
180
     * @var packagingTypeType
181
     */
182
    protected $packagingType = null;
183
184
    /**
185
     * @var \DateTime
186
     */
187
    protected $pickupDate = null;
188
189
    /**
190
     * @var \DateTime
191
     */
192
    protected $preferredDeliveryDate = null;
193
194
    /**
195
     * @var bool
196
     */
197
    protected $preferredDateChosen = null;
198
199
    /**
200
     * @var string
201
     */
202
    protected $description = null;
203
204
    /**
205
     * @var string
206
     */
207
    protected $additionalInstruction = null;
208
209
    /**
210
     * @var shipperNotificationTypeType
211
     */
212
    protected $shipperNotificationType = null;
213
214
    /**
215
     * @var string
216
     */
217
    protected $shipperNotificationTarget = null;
218
219
    /**
220
     * @var shipperNotificationTypeType
221
     */
222
    protected $additionalShipperNotificationType = null;
223
224
    /**
225
     * @var string
226
     */
227
    protected $additionalShipperNotificationTarget = null;
228
229
    /**
230
     * @var time
231
     */
232
    protected $deliveryWindowStart = null;
233
234
    /**
235
     * @var time
236
     */
237
    protected $deliveryWindowEnd = null;
238
239
    /**
240
     * @var products
241
     */
242
    protected $products = null;
243
244
    /**
245
     * Constructor.
246
     *
247
     * @var errorType
248
     * @var string                      $webshopId
249
     * @var string                      $matrixCode
250
     * @var \DateTime                   $createDate
251
     * @var string                      $companyName
252
     * @var string                      $name
253
     * @var string                      $nameOther
254
     * @var addressType                 $shipToAddress
255
     * @var string                      $emailAddress
256
     * @var string                      $phoneNumber
257
     * @var string                      $senderName
258
     * @var addressType                 $senderAddress
259
     * @var string                      $returnName
260
     * @var addressType                 $returnAddress
261
     * @var shippingOptionDetailsType   $shippingOption
262
     * @var servicePointDetailsType     $servicePointDetails
263
     * @var int                         $numberOfArticles
264
     * @var shippingPaymentType         $shippingPaymentType
265
     * @var string                      $billingAccountNumber
266
     * @var string                      $invoiceNumber
267
     * @var nonNegativeDecimal          $packagingWeight
268
     * @var float                       $customsValue
269
     * @var currencyCode                $customsValueCurrency
270
     * @var dutiesPaymentType           $dutiesPaymentType
271
     * @var string                      $dutiesAccountNumber
272
     * @var float                       $orderWeight
273
     * @var int                         $maxLabels
274
     * @var bool                        $collo
275
     * @var float                       $codValue
276
     * @var currencyCode                $codValueCurrency
277
     * @var int                         $insuredValue
278
     * @var currencyCode                $insuredValueCurrency
279
     * @var packagingTypeType           $packagingType
280
     * @var \DateTime                   $pickupDate
281
     * @var \DateTime                   $preferredDeliveryDate
282
     * @var bool                        $preferredDateChosen
283
     * @var string                      $description
284
     * @var string                      $additionalInstruction
285
     * @var shipperNotificationTypeType $shipperNotificationType
286
     * @var string                      $shipperNotificationTarget
287
     * @var shipperNotificationTypeType $additionalShipperNotificationType
288
     * @var string                      $additionalShipperNotificationTarget
289
     * @var time                        $deliveryWindowStart
290
     * @var time                        $deliveryWindowEnd
291
     * @var products                    $products
292
     *
293
     * @param mixed $error
294
     * @param mixed $webshopId
295
     * @param mixed $matrixCode
296
     * @param mixed $createDate
297
     * @param mixed $companyName
298
     * @param mixed $name
299
     * @param mixed $nameOther
300
     * @param mixed $shipToAddress
301
     * @param mixed $emailAddress
302
     * @param mixed $phoneNumber
303
     * @param mixed $senderName
304
     * @param mixed $senderAddress
305
     * @param mixed $returnName
306
     * @param mixed $returnAddress
307
     * @param mixed $shippingOption
308
     * @param mixed $servicePointDetails
309
     * @param mixed $numberOfArticles
310
     * @param mixed $shippingPaymentType
311
     * @param mixed $billingAccountNumber
312
     * @param mixed $invoiceNumber
313
     * @param mixed $packagingWeight
314
     * @param mixed $customsValue
315
     * @param mixed $customsValueCurrency
316
     * @param mixed $dutiesPaymentType
317
     * @param mixed $dutiesAccountNumber
318
     * @param mixed $orderWeight
319
     * @param mixed $maxLabels
320
     * @param mixed $collo
321
     * @param mixed $codValue
322
     * @param mixed $codValueCurrency
323
     * @param mixed $insuredValue
324
     * @param mixed $insuredValueCurrency
325
     * @param mixed $packagingType
326
     * @param mixed $pickupDate
327
     * @param mixed $preferredDeliveryDate
328
     * @param mixed $preferredDateChosen
329
     * @param mixed $description
330
     * @param mixed $additionalInstruction
331
     * @param mixed $shipperNotificationType
332
     * @param mixed $shipperNotificationTarget
333
     * @param mixed $additionalShipperNotificationType
334
     * @param mixed $additionalShipperNotificationTarget
335
     * @param mixed $deliveryWindowStart
336
     * @param mixed $deliveryWindowEnd
337
     * @param mixed $products
338
     */
339
    public function __construct($error, $webshopId, $matrixCode, $createDate, $companyName, $name, $nameOther, $shipToAddress, $emailAddress, $phoneNumber, $senderName, $senderAddress, $returnName, $returnAddress, $shippingOption, $servicePointDetails, $numberOfArticles, $shippingPaymentType, $billingAccountNumber, $invoiceNumber, $packagingWeight, $customsValue, $customsValueCurrency, $dutiesPaymentType, $dutiesAccountNumber, $orderWeight, $maxLabels, $collo, $codValue, $codValueCurrency, $insuredValue, $insuredValueCurrency, $packagingType, $pickupDate, $preferredDeliveryDate, $preferredDateChosen, $description, $additionalInstruction, $shipperNotificationType, $shipperNotificationTarget, $additionalShipperNotificationType, $additionalShipperNotificationTarget, $deliveryWindowStart, $deliveryWindowEnd, $products)
340
    {
341
        $this->error = $error;
0 ignored issues
show
Documentation Bug introduced by Christ-Jan
$error is of type mixed, but the property $error was declared to be of type Etrias\PaazlConnector\SoapTypes\errorType. Are you sure that you always receive this specific sub-class here, or does it make sense to add an instanceof check?

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.

class Alien {}

class Dalek extends Alien {}

class Plot
{
    /** @var  Dalek */
    public $villain;
}

$alien = new Alien();
$plot = new Plot();
if ($alien instanceof Dalek) {
    $plot->villain = $alien;
}
Loading history...
342
        $this->webshopId = $webshopId;
343
        $this->matrixCode = $matrixCode;
344
        $this->createDate = $createDate;
345
        $this->companyName = $companyName;
346
        $this->name = $name;
347
        $this->nameOther = $nameOther;
348
        $this->shipToAddress = $shipToAddress;
349
        $this->emailAddress = $emailAddress;
350
        $this->phoneNumber = $phoneNumber;
351
        $this->senderName = $senderName;
352
        $this->senderAddress = $senderAddress;
353
        $this->returnName = $returnName;
354
        $this->returnAddress = $returnAddress;
355
        $this->shippingOption = $shippingOption;
356
        $this->servicePointDetails = $servicePointDetails;
357
        $this->numberOfArticles = $numberOfArticles;
358
        $this->shippingPaymentType = $shippingPaymentType;
359
        $this->billingAccountNumber = $billingAccountNumber;
360
        $this->invoiceNumber = $invoiceNumber;
361
        $this->packagingWeight = $packagingWeight;
362
        $this->customsValue = $customsValue;
363
        $this->customsValueCurrency = $customsValueCurrency;
364
        $this->dutiesPaymentType = $dutiesPaymentType;
365
        $this->dutiesAccountNumber = $dutiesAccountNumber;
366
        $this->orderWeight = $orderWeight;
367
        $this->maxLabels = $maxLabels;
368
        $this->collo = $collo;
369
        $this->codValue = $codValue;
370
        $this->codValueCurrency = $codValueCurrency;
371
        $this->insuredValue = $insuredValue;
372
        $this->insuredValueCurrency = $insuredValueCurrency;
373
        $this->packagingType = $packagingType;
374
        $this->pickupDate = $pickupDate;
375
        $this->preferredDeliveryDate = $preferredDeliveryDate;
376
        $this->preferredDateChosen = $preferredDateChosen;
377
        $this->description = $description;
378
        $this->additionalInstruction = $additionalInstruction;
379
        $this->shipperNotificationType = $shipperNotificationType;
380
        $this->shipperNotificationTarget = $shipperNotificationTarget;
381
        $this->additionalShipperNotificationType = $additionalShipperNotificationType;
382
        $this->additionalShipperNotificationTarget = $additionalShipperNotificationTarget;
383
        $this->deliveryWindowStart = $deliveryWindowStart;
384
        $this->deliveryWindowEnd = $deliveryWindowEnd;
385
        $this->products = $products;
386
    }
387
388
    /**
389
     * @return errorType
390
     */
391
    public function getError()
392
    {
393
        return $this->error;
394
    }
395
396
    /**
397
     * @param errorType $error
398
     *
399
     * @return $this
400
     */
401
    public function setError($error)
402
    {
403
        $this->error = $error;
404
405
        return $this;
406
    }
407
408
    /**
409
     * @return string
410
     */
411
    public function getWebshopId()
412
    {
413
        return $this->webshopId;
414
    }
415
416
    /**
417
     * @param string $webshopId
418
     *
419
     * @return $this
420
     */
421
    public function setWebshopId($webshopId)
422
    {
423
        $this->webshopId = $webshopId;
424
425
        return $this;
426
    }
427
428
    /**
429
     * @return string
430
     */
431
    public function getMatrixCode()
432
    {
433
        return $this->matrixCode;
434
    }
435
436
    /**
437
     * @param string $matrixCode
438
     *
439
     * @return $this
440
     */
441
    public function setMatrixCode($matrixCode)
442
    {
443
        $this->matrixCode = $matrixCode;
444
445
        return $this;
446
    }
447
448
    /**
449
     * @return \DateTime
450
     */
451
    public function getCreateDate()
452
    {
453
        return $this->createDate;
454
    }
455
456
    /**
457
     * @param \DateTime $createDate
458
     *
459
     * @return $this
460
     */
461
    public function setCreateDate($createDate)
462
    {
463
        $this->createDate = $createDate;
464
465
        return $this;
466
    }
467
468
    /**
469
     * @return string
470
     */
471
    public function getCompanyName()
472
    {
473
        return $this->companyName;
474
    }
475
476
    /**
477
     * @param string $companyName
478
     *
479
     * @return $this
480
     */
481
    public function setCompanyName($companyName)
482
    {
483
        $this->companyName = $companyName;
484
485
        return $this;
486
    }
487
488
    /**
489
     * @return string
490
     */
491
    public function getName()
492
    {
493
        return $this->name;
494
    }
495
496
    /**
497
     * @param string $name
498
     *
499
     * @return $this
500
     */
501
    public function setName($name)
502
    {
503
        $this->name = $name;
504
505
        return $this;
506
    }
507
508
    /**
509
     * @return string
510
     */
511
    public function getNameOther()
512
    {
513
        return $this->nameOther;
514
    }
515
516
    /**
517
     * @param string $nameOther
518
     *
519
     * @return $this
520
     */
521
    public function setNameOther($nameOther)
522
    {
523
        $this->nameOther = $nameOther;
524
525
        return $this;
526
    }
527
528
    /**
529
     * @return addressType
530
     */
531
    public function getShipToAddress()
532
    {
533
        return $this->shipToAddress;
534
    }
535
536
    /**
537
     * @param addressType $shipToAddress
538
     *
539
     * @return $this
540
     */
541
    public function setShipToAddress($shipToAddress)
542
    {
543
        $this->shipToAddress = $shipToAddress;
544
545
        return $this;
546
    }
547
548
    /**
549
     * @return string
550
     */
551
    public function getEmailAddress()
552
    {
553
        return $this->emailAddress;
554
    }
555
556
    /**
557
     * @param string $emailAddress
558
     *
559
     * @return $this
560
     */
561
    public function setEmailAddress($emailAddress)
562
    {
563
        $this->emailAddress = $emailAddress;
564
565
        return $this;
566
    }
567
568
    /**
569
     * @return string
570
     */
571
    public function getPhoneNumber()
572
    {
573
        return $this->phoneNumber;
574
    }
575
576
    /**
577
     * @param string $phoneNumber
578
     *
579
     * @return $this
580
     */
581
    public function setPhoneNumber($phoneNumber)
582
    {
583
        $this->phoneNumber = $phoneNumber;
584
585
        return $this;
586
    }
587
588
    /**
589
     * @return string
590
     */
591
    public function getSenderName()
592
    {
593
        return $this->senderName;
594
    }
595
596
    /**
597
     * @param string $senderName
598
     *
599
     * @return $this
600
     */
601
    public function setSenderName($senderName)
602
    {
603
        $this->senderName = $senderName;
604
605
        return $this;
606
    }
607
608
    /**
609
     * @return addressType
610
     */
611
    public function getSenderAddress()
612
    {
613
        return $this->senderAddress;
614
    }
615
616
    /**
617
     * @param addressType $senderAddress
618
     *
619
     * @return $this
620
     */
621
    public function setSenderAddress($senderAddress)
622
    {
623
        $this->senderAddress = $senderAddress;
624
625
        return $this;
626
    }
627
628
    /**
629
     * @return string
630
     */
631
    public function getReturnName()
632
    {
633
        return $this->returnName;
634
    }
635
636
    /**
637
     * @param string $returnName
638
     *
639
     * @return $this
640
     */
641
    public function setReturnName($returnName)
642
    {
643
        $this->returnName = $returnName;
644
645
        return $this;
646
    }
647
648
    /**
649
     * @return addressType
650
     */
651
    public function getReturnAddress()
652
    {
653
        return $this->returnAddress;
654
    }
655
656
    /**
657
     * @param addressType $returnAddress
658
     *
659
     * @return $this
660
     */
661
    public function setReturnAddress($returnAddress)
662
    {
663
        $this->returnAddress = $returnAddress;
664
665
        return $this;
666
    }
667
668
    /**
669
     * @return shippingOptionDetailsType
670
     */
671
    public function getShippingOption()
672
    {
673
        return $this->shippingOption;
674
    }
675
676
    /**
677
     * @param shippingOptionDetailsType $shippingOption
678
     *
679
     * @return $this
680
     */
681
    public function setShippingOption($shippingOption)
682
    {
683
        $this->shippingOption = $shippingOption;
684
685
        return $this;
686
    }
687
688
    /**
689
     * @return servicePointDetailsType
690
     */
691
    public function getServicePointDetails()
692
    {
693
        return $this->servicePointDetails;
694
    }
695
696
    /**
697
     * @param servicePointDetailsType $servicePointDetails
698
     *
699
     * @return $this
700
     */
701
    public function setServicePointDetails($servicePointDetails)
702
    {
703
        $this->servicePointDetails = $servicePointDetails;
704
705
        return $this;
706
    }
707
708
    /**
709
     * @return int
710
     */
711
    public function getNumberOfArticles()
712
    {
713
        return $this->numberOfArticles;
714
    }
715
716
    /**
717
     * @param int $numberOfArticles
718
     *
719
     * @return $this
720
     */
721
    public function setNumberOfArticles($numberOfArticles)
722
    {
723
        $this->numberOfArticles = $numberOfArticles;
724
725
        return $this;
726
    }
727
728
    /**
729
     * @return shippingPaymentType
730
     */
731
    public function getShippingPaymentType()
732
    {
733
        return $this->shippingPaymentType;
734
    }
735
736
    /**
737
     * @param shippingPaymentType $shippingPaymentType
738
     *
739
     * @return $this
740
     */
741
    public function setShippingPaymentType($shippingPaymentType)
742
    {
743
        $this->shippingPaymentType = $shippingPaymentType;
744
745
        return $this;
746
    }
747
748
    /**
749
     * @return string
750
     */
751
    public function getBillingAccountNumber()
752
    {
753
        return $this->billingAccountNumber;
754
    }
755
756
    /**
757
     * @param string $billingAccountNumber
758
     *
759
     * @return $this
760
     */
761
    public function setBillingAccountNumber($billingAccountNumber)
762
    {
763
        $this->billingAccountNumber = $billingAccountNumber;
764
765
        return $this;
766
    }
767
768
    /**
769
     * @return string
770
     */
771
    public function getInvoiceNumber()
772
    {
773
        return $this->invoiceNumber;
774
    }
775
776
    /**
777
     * @param string $invoiceNumber
778
     *
779
     * @return $this
780
     */
781
    public function setInvoiceNumber($invoiceNumber)
782
    {
783
        $this->invoiceNumber = $invoiceNumber;
784
785
        return $this;
786
    }
787
788
    /**
789
     * @return nonNegativeDecimal
790
     */
791
    public function getPackagingWeight()
792
    {
793
        return $this->packagingWeight;
794
    }
795
796
    /**
797
     * @param nonNegativeDecimal $packagingWeight
798
     *
799
     * @return $this
800
     */
801
    public function setPackagingWeight($packagingWeight)
802
    {
803
        $this->packagingWeight = $packagingWeight;
804
805
        return $this;
806
    }
807
808
    /**
809
     * @return float
810
     */
811
    public function getCustomsValue()
812
    {
813
        return $this->customsValue;
814
    }
815
816
    /**
817
     * @param float $customsValue
818
     *
819
     * @return $this
820
     */
821
    public function setCustomsValue($customsValue)
822
    {
823
        $this->customsValue = $customsValue;
824
825
        return $this;
826
    }
827
828
    /**
829
     * @return currencyCode
830
     */
831
    public function getCustomsValueCurrency()
832
    {
833
        return $this->customsValueCurrency;
834
    }
835
836
    /**
837
     * @param currencyCode $customsValueCurrency
838
     *
839
     * @return $this
840
     */
841
    public function setCustomsValueCurrency($customsValueCurrency)
842
    {
843
        $this->customsValueCurrency = $customsValueCurrency;
844
845
        return $this;
846
    }
847
848
    /**
849
     * @return dutiesPaymentType
850
     */
851
    public function getDutiesPaymentType()
852
    {
853
        return $this->dutiesPaymentType;
854
    }
855
856
    /**
857
     * @param dutiesPaymentType $dutiesPaymentType
858
     *
859
     * @return $this
860
     */
861
    public function setDutiesPaymentType($dutiesPaymentType)
862
    {
863
        $this->dutiesPaymentType = $dutiesPaymentType;
864
865
        return $this;
866
    }
867
868
    /**
869
     * @return string
870
     */
871
    public function getDutiesAccountNumber()
872
    {
873
        return $this->dutiesAccountNumber;
874
    }
875
876
    /**
877
     * @param string $dutiesAccountNumber
878
     *
879
     * @return $this
880
     */
881
    public function setDutiesAccountNumber($dutiesAccountNumber)
882
    {
883
        $this->dutiesAccountNumber = $dutiesAccountNumber;
884
885
        return $this;
886
    }
887
888
    /**
889
     * @return float
890
     */
891
    public function getOrderWeight()
892
    {
893
        return $this->orderWeight;
894
    }
895
896
    /**
897
     * @param float $orderWeight
898
     *
899
     * @return $this
900
     */
901
    public function setOrderWeight($orderWeight)
902
    {
903
        $this->orderWeight = $orderWeight;
904
905
        return $this;
906
    }
907
908
    /**
909
     * @return int
910
     */
911
    public function getMaxLabels()
912
    {
913
        return $this->maxLabels;
914
    }
915
916
    /**
917
     * @param int $maxLabels
918
     *
919
     * @return $this
920
     */
921
    public function setMaxLabels($maxLabels)
922
    {
923
        $this->maxLabels = $maxLabels;
924
925
        return $this;
926
    }
927
928
    /**
929
     * @return bool
930
     */
931
    public function getCollo()
932
    {
933
        return $this->collo;
934
    }
935
936
    /**
937
     * @param bool $collo
938
     *
939
     * @return $this
940
     */
941
    public function setCollo($collo)
942
    {
943
        $this->collo = $collo;
944
945
        return $this;
946
    }
947
948
    /**
949
     * @return float
950
     */
951
    public function getCodValue()
952
    {
953
        return $this->codValue;
954
    }
955
956
    /**
957
     * @param float $codValue
958
     *
959
     * @return $this
960
     */
961
    public function setCodValue($codValue)
962
    {
963
        $this->codValue = $codValue;
964
965
        return $this;
966
    }
967
968
    /**
969
     * @return currencyCode
970
     */
971
    public function getCodValueCurrency()
972
    {
973
        return $this->codValueCurrency;
974
    }
975
976
    /**
977
     * @param currencyCode $codValueCurrency
978
     *
979
     * @return $this
980
     */
981
    public function setCodValueCurrency($codValueCurrency)
982
    {
983
        $this->codValueCurrency = $codValueCurrency;
984
985
        return $this;
986
    }
987
988
    /**
989
     * @return int
990
     */
991
    public function getInsuredValue()
992
    {
993
        return $this->insuredValue;
994
    }
995
996
    /**
997
     * @param int $insuredValue
998
     *
999
     * @return $this
1000
     */
1001
    public function setInsuredValue($insuredValue)
1002
    {
1003
        $this->insuredValue = $insuredValue;
1004
1005
        return $this;
1006
    }
1007
1008
    /**
1009
     * @return currencyCode
1010
     */
1011
    public function getInsuredValueCurrency()
1012
    {
1013
        return $this->insuredValueCurrency;
1014
    }
1015
1016
    /**
1017
     * @param currencyCode $insuredValueCurrency
1018
     *
1019
     * @return $this
1020
     */
1021
    public function setInsuredValueCurrency($insuredValueCurrency)
1022
    {
1023
        $this->insuredValueCurrency = $insuredValueCurrency;
1024
1025
        return $this;
1026
    }
1027
1028
    /**
1029
     * @return packagingTypeType
1030
     */
1031
    public function getPackagingType()
1032
    {
1033
        return $this->packagingType;
1034
    }
1035
1036
    /**
1037
     * @param packagingTypeType $packagingType
1038
     *
1039
     * @return $this
1040
     */
1041
    public function setPackagingType($packagingType)
1042
    {
1043
        $this->packagingType = $packagingType;
1044
1045
        return $this;
1046
    }
1047
1048
    /**
1049
     * @return \DateTime
1050
     */
1051
    public function getPickupDate()
1052
    {
1053
        return $this->pickupDate;
1054
    }
1055
1056
    /**
1057
     * @param \DateTime $pickupDate
1058
     *
1059
     * @return $this
1060
     */
1061
    public function setPickupDate($pickupDate)
1062
    {
1063
        $this->pickupDate = $pickupDate;
1064
1065
        return $this;
1066
    }
1067
1068
    /**
1069
     * @return \DateTime
1070
     */
1071
    public function getPreferredDeliveryDate()
1072
    {
1073
        return $this->preferredDeliveryDate;
1074
    }
1075
1076
    /**
1077
     * @param \DateTime $preferredDeliveryDate
1078
     *
1079
     * @return $this
1080
     */
1081
    public function setPreferredDeliveryDate($preferredDeliveryDate)
1082
    {
1083
        $this->preferredDeliveryDate = $preferredDeliveryDate;
1084
1085
        return $this;
1086
    }
1087
1088
    /**