AddShipmentDelv::getCCity()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of Smsa WebService package.
5
 * (c) Hamoud Alhoqbani <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Alhoqbani\SmsaWebService\Soap\Type;
11
12
use \WsdlToPhp\PackageBase\AbstractStructBase;
13
14
/**
15
 * This class stands for addShipmentDelv Type
16
 *
17
 * @date 2018/04/06
18
 * @codeVersion 0.0.1
19
 */
20
class AddShipmentDelv extends AbstractStructBase
21
{
22
    /**
23
     * The PCs
24
     * Meta informations extracted from the WSDL
25
     * - maxOccurs: 1
26
     * - minOccurs: 1
27
     *
28
     * @var int
29
     */
30
    public $PCs;
31
    /**
32
     * The passKey
33
     * Meta informations extracted from the WSDL
34
     * - maxOccurs: 1
35
     * - minOccurs: 0
36
     *
37
     * @var string
38
     */
39
    public $passKey;
40
    /**
41
     * The refNo
42
     * Meta informations extracted from the WSDL
43
     * - maxOccurs: 1
44
     * - minOccurs: 0
45
     *
46
     * @var string
47
     */
48
    public $refNo;
49
    /**
50
     * The sentDate
51
     * Meta informations extracted from the WSDL
52
     * - maxOccurs: 1
53
     * - minOccurs: 0
54
     *
55
     * @var string
56
     */
57
    public $sentDate;
58
    /**
59
     * The idNo
60
     * Meta informations extracted from the WSDL
61
     * - maxOccurs: 1
62
     * - minOccurs: 0
63
     *
64
     * @var string
65
     */
66
    public $idNo;
67
    /**
68
     * The cName
69
     * Meta informations extracted from the WSDL
70
     * - maxOccurs: 1
71
     * - minOccurs: 0
72
     *
73
     * @var string
74
     */
75
    public $cName;
76
    /**
77
     * The cntry
78
     * Meta informations extracted from the WSDL
79
     * - maxOccurs: 1
80
     * - minOccurs: 0
81
     *
82
     * @var string
83
     */
84
    public $cntry;
85
    /**
86
     * The cCity
87
     * Meta informations extracted from the WSDL
88
     * - maxOccurs: 1
89
     * - minOccurs: 0
90
     *
91
     * @var string
92
     */
93
    public $cCity;
94
    /**
95
     * The cZip
96
     * Meta informations extracted from the WSDL
97
     * - maxOccurs: 1
98
     * - minOccurs: 0
99
     *
100
     * @var string
101
     */
102
    public $cZip;
103
    /**
104
     * The cPOBox
105
     * Meta informations extracted from the WSDL
106
     * - maxOccurs: 1
107
     * - minOccurs: 0
108
     *
109
     * @var string
110
     */
111
    public $cPOBox;
112
    /**
113
     * The cMobile
114
     * Meta informations extracted from the WSDL
115
     * - maxOccurs: 1
116
     * - minOccurs: 0
117
     *
118
     * @var string
119
     */
120
    public $cMobile;
121
    /**
122
     * The cTel1
123
     * Meta informations extracted from the WSDL
124
     * - maxOccurs: 1
125
     * - minOccurs: 0
126
     *
127
     * @var string
128
     */
129
    public $cTel1;
130
    /**
131
     * The cTel2
132
     * Meta informations extracted from the WSDL
133
     * - maxOccurs: 1
134
     * - minOccurs: 0
135
     *
136
     * @var string
137
     */
138
    public $cTel2;
139
    /**
140
     * The cAddr1
141
     * Meta informations extracted from the WSDL
142
     * - maxOccurs: 1
143
     * - minOccurs: 0
144
     *
145
     * @var string
146
     */
147
    public $cAddr1;
148
    /**
149
     * The cAddr2
150
     * Meta informations extracted from the WSDL
151
     * - maxOccurs: 1
152
     * - minOccurs: 0
153
     *
154
     * @var string
155
     */
156
    public $cAddr2;
157
    /**
158
     * The shipType
159
     * Meta informations extracted from the WSDL
160
     * - maxOccurs: 1
161
     * - minOccurs: 0
162
     *
163
     * @var string
164
     */
165
    public $shipType;
166
    /**
167
     * The cEmail
168
     * Meta informations extracted from the WSDL
169
     * - maxOccurs: 1
170
     * - minOccurs: 0
171
     *
172
     * @var string
173
     */
174
    public $cEmail;
175
    /**
176
     * The carrValue
177
     * Meta informations extracted from the WSDL
178
     * - maxOccurs: 1
179
     * - minOccurs: 0
180
     *
181
     * @var string
182
     */
183
    public $carrValue;
184
    /**
185
     * The carrCurr
186
     * Meta informations extracted from the WSDL
187
     * - maxOccurs: 1
188
     * - minOccurs: 0
189
     *
190
     * @var string
191
     */
192
    public $carrCurr;
193
    /**
194
     * The codAmt
195
     * Meta informations extracted from the WSDL
196
     * - maxOccurs: 1
197
     * - minOccurs: 0
198
     *
199
     * @var string
200
     */
201
    public $codAmt;
202
    /**
203
     * The weight
204
     * Meta informations extracted from the WSDL
205
     * - maxOccurs: 1
206
     * - minOccurs: 0
207
     *
208
     * @var string
209
     */
210
    public $weight;
211
    /**
212
     * The custVal
213
     * Meta informations extracted from the WSDL
214
     * - maxOccurs: 1
215
     * - minOccurs: 0
216
     *
217
     * @var string
218
     */
219
    public $custVal;
220
    /**
221
     * The custCurr
222
     * Meta informations extracted from the WSDL
223
     * - maxOccurs: 1
224
     * - minOccurs: 0
225
     *
226
     * @var string
227
     */
228
    public $custCurr;
229
    /**
230
     * The insrAmt
231
     * Meta informations extracted from the WSDL
232
     * - maxOccurs: 1
233
     * - minOccurs: 0
234
     *
235
     * @var string
236
     */
237
    public $insrAmt;
238
    /**
239
     * The insrCurr
240
     * Meta informations extracted from the WSDL
241
     * - maxOccurs: 1
242
     * - minOccurs: 0
243
     *
244
     * @var string
245
     */
246
    public $insrCurr;
247
    /**
248
     * The itemDesc
249
     * Meta informations extracted from the WSDL
250
     * - maxOccurs: 1
251
     * - minOccurs: 0
252
     *
253
     * @var string
254
     */
255
    public $itemDesc;
256
    /**
257
     * The prefDelvDate
258
     * Meta informations extracted from the WSDL
259
     * - maxOccurs: 1
260
     * - minOccurs: 0
261
     *
262
     * @var string
263
     */
264
    public $prefDelvDate;
265
    /**
266
     * The gpsPoints
267
     * Meta informations extracted from the WSDL
268
     * - maxOccurs: 1
269
     * - minOccurs: 0
270
     *
271
     * @var string
272
     */
273
    public $gpsPoints;
274
275
    /**
276
     * Constructor method for addShipmentDelv
277
     *
278
     * @uses AddShipmentDelv::setPCs()
279
     * @uses AddShipmentDelv::setPassKey()
280
     * @uses AddShipmentDelv::setRefNo()
281
     * @uses AddShipmentDelv::setSentDate()
282
     * @uses AddShipmentDelv::setIdNo()
283
     * @uses AddShipmentDelv::setCName()
284
     * @uses AddShipmentDelv::setCntry()
285
     * @uses AddShipmentDelv::setCCity()
286
     * @uses AddShipmentDelv::setCZip()
287
     * @uses AddShipmentDelv::setCPOBox()
288
     * @uses AddShipmentDelv::setCMobile()
289
     * @uses AddShipmentDelv::setCTel1()
290
     * @uses AddShipmentDelv::setCTel2()
291
     * @uses AddShipmentDelv::setCAddr1()
292
     * @uses AddShipmentDelv::setCAddr2()
293
     * @uses AddShipmentDelv::setShipType()
294
     * @uses AddShipmentDelv::setCEmail()
295
     * @uses AddShipmentDelv::setCarrValue()
296
     * @uses AddShipmentDelv::setCarrCurr()
297
     * @uses AddShipmentDelv::setCodAmt()
298
     * @uses AddShipmentDelv::setWeight()
299
     * @uses AddShipmentDelv::setCustVal()
300
     * @uses AddShipmentDelv::setCustCurr()
301
     * @uses AddShipmentDelv::setInsrAmt()
302
     * @uses AddShipmentDelv::setInsrCurr()
303
     * @uses AddShipmentDelv::setItemDesc()
304
     * @uses AddShipmentDelv::setPrefDelvDate()
305
     * @uses AddShipmentDelv::setGpsPoints()
306
     *
307
     * @param int    $pCs
308
     * @param string $passKey
309
     * @param string $refNo
310
     * @param string $sentDate
311
     * @param string $idNo
312
     * @param string $cName
313
     * @param string $cntry
314
     * @param string $cCity
315
     * @param string $cZip
316
     * @param string $cPOBox
317
     * @param string $cMobile
318
     * @param string $cTel1
319
     * @param string $cTel2
320
     * @param string $cAddr1
321
     * @param string $cAddr2
322
     * @param string $shipType
323
     * @param string $cEmail
324
     * @param string $carrValue
325
     * @param string $carrCurr
326
     * @param string $codAmt
327
     * @param string $weight
328
     * @param string $custVal
329
     * @param string $custCurr
330
     * @param string $insrAmt
331
     * @param string $insrCurr
332
     * @param string $itemDesc
333
     * @param string $prefDelvDate
334
     * @param string $gpsPoints
335
     */
336
    public function __construct($pCs = null, $passKey = null, $refNo = null, $sentDate = null, $idNo = null, $cName = null, $cntry = null, $cCity = null, $cZip = null, $cPOBox = null, $cMobile = null, $cTel1 = null, $cTel2 = null, $cAddr1 = null, $cAddr2 = null, $shipType = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null, $prefDelvDate = null, $gpsPoints = null)
337
    {
338
        $this
339
            ->setPCs($pCs)
340
            ->setPassKey($passKey)
341
            ->setRefNo($refNo)
342
            ->setSentDate($sentDate)
343
            ->setIdNo($idNo)
344
            ->setCName($cName)
345
            ->setCntry($cntry)
346
            ->setCCity($cCity)
347
            ->setCZip($cZip)
348
            ->setCPOBox($cPOBox)
349
            ->setCMobile($cMobile)
350
            ->setCTel1($cTel1)
351
            ->setCTel2($cTel2)
352
            ->setCAddr1($cAddr1)
353
            ->setCAddr2($cAddr2)
354
            ->setShipType($shipType)
355
            ->setCEmail($cEmail)
356
            ->setCarrValue($carrValue)
357
            ->setCarrCurr($carrCurr)
358
            ->setCodAmt($codAmt)
359
            ->setWeight($weight)
360
            ->setCustVal($custVal)
361
            ->setCustCurr($custCurr)
362
            ->setInsrAmt($insrAmt)
363
            ->setInsrCurr($insrCurr)
364
            ->setItemDesc($itemDesc)
365
            ->setPrefDelvDate($prefDelvDate)
366
            ->setGpsPoints($gpsPoints);
367
    }
368
369
    /**
370
     * Get PCs value
371
     *
372
     * @return int
373
     */
374
    public function getPCs()
375
    {
376
        return $this->PCs;
377
    }
378
379
    /**
380
     * Set PCs value
381
     *
382
     * @param int $pCs
383
     *
384
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
385
     */
386
    public function setPCs($pCs = null)
387
    {
388
        // validation for constraint: int
389
        if (!is_null($pCs) && !is_numeric($pCs)) {
390
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($pCs)), __LINE__);
391
        }
392
        $this->PCs = $pCs;
0 ignored issues
show
Documentation Bug introduced by
It seems like $pCs can also be of type double or string. However, the property $PCs is declared as type integer. Maybe add an additional type 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 mixed type is assigned to a property that is type hinted more strictly.

For example, imagine you have a variable $accountId that can either hold an Id object or false (if there is no account id yet). Your code now assigns that value to the id property of an instance of the Account class. This class holds a proper account, so the id value must no longer be false.

Either this assignment is in error or a type check should be added for that assignment.

class Id
{
    public $id;

    public function __construct($id)
    {
        $this->id = $id;
    }

}

class Account
{
    /** @var  Id $id */
    public $id;
}

$account_id = false;

if (starsAreRight()) {
    $account_id = new Id(42);
}

$account = new Account();
if ($account instanceof Id)
{
    $account->id = $account_id;
}
Loading history...
393
394
        return $this;
395
    }
396
397
    /**
398
     * Get passKey value
399
     *
400
     * @return string|null
401
     */
402
    public function getPassKey()
403
    {
404
        return $this->passKey;
405
    }
406
407
    /**
408
     * Set passKey value
409
     *
410
     * @param string $passKey
411
     *
412
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
413
     */
414
    public function setPassKey($passKey = null)
415
    {
416
        // validation for constraint: string
417
        if (!is_null($passKey) && !is_string($passKey)) {
418
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($passKey)), __LINE__);
419
        }
420
        $this->passKey = $passKey;
421
422
        return $this;
423
    }
424
425
    /**
426
     * Get refNo value
427
     *
428
     * @return string|null
429
     */
430
    public function getRefNo()
431
    {
432
        return $this->refNo;
433
    }
434
435
    /**
436
     * Set refNo value
437
     *
438
     * @param string $refNo
439
     *
440
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
441
     */
442
    public function setRefNo($refNo = null)
443
    {
444
        // validation for constraint: string
445
        if (!is_null($refNo) && !is_string($refNo)) {
446
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($refNo)), __LINE__);
447
        }
448
        $this->refNo = $refNo;
449
450
        return $this;
451
    }
452
453
    /**
454
     * Get sentDate value
455
     *
456
     * @return string|null
457
     */
458
    public function getSentDate()
459
    {
460
        return $this->sentDate;
461
    }
462
463
    /**
464
     * Set sentDate value
465
     *
466
     * @param string $sentDate
467
     *
468
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
469
     */
470
    public function setSentDate($sentDate = null)
471
    {
472
        // validation for constraint: string
473
        if (!is_null($sentDate) && !is_string($sentDate)) {
474
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sentDate)), __LINE__);
475
        }
476
        $this->sentDate = $sentDate;
477
478
        return $this;
479
    }
480
481
    /**
482
     * Get idNo value
483
     *
484
     * @return string|null
485
     */
486
    public function getIdNo()
487
    {
488
        return $this->idNo;
489
    }
490
491
    /**
492
     * Set idNo value
493
     *
494
     * @param string $idNo
495
     *
496
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
497
     */
498
    public function setIdNo($idNo = null)
499
    {
500
        // validation for constraint: string
501
        if (!is_null($idNo) && !is_string($idNo)) {
502
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($idNo)), __LINE__);
503
        }
504
        $this->idNo = $idNo;
505
506
        return $this;
507
    }
508
509
    /**
510
     * Get cName value
511
     *
512
     * @return string|null
513
     */
514
    public function getCName()
515
    {
516
        return $this->cName;
517
    }
518
519
    /**
520
     * Set cName value
521
     *
522
     * @param string $cName
523
     *
524
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
525
     */
526
    public function setCName($cName = null)
527
    {
528
        // validation for constraint: string
529
        if (!is_null($cName) && !is_string($cName)) {
530
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cName)), __LINE__);
531
        }
532
        $this->cName = $cName;
533
534
        return $this;
535
    }
536
537
    /**
538
     * Get cntry value
539
     *
540
     * @return string|null
541
     */
542
    public function getCntry()
543
    {
544
        return $this->cntry;
545
    }
546
547
    /**
548
     * Set cntry value
549
     *
550
     * @param string $cntry
551
     *
552
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
553
     */
554
    public function setCntry($cntry = null)
555
    {
556
        // validation for constraint: string
557
        if (!is_null($cntry) && !is_string($cntry)) {
558
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cntry)), __LINE__);
559
        }
560
        $this->cntry = $cntry;
561
562
        return $this;
563
    }
564
565
    /**
566
     * Get cCity value
567
     *
568
     * @return string|null
569
     */
570
    public function getCCity()
571
    {
572
        return $this->cCity;
573
    }
574
575
    /**
576
     * Set cCity value
577
     *
578
     * @param string $cCity
579
     *
580
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
581
     */
582
    public function setCCity($cCity = null)
583
    {
584
        // validation for constraint: string
585
        if (!is_null($cCity) && !is_string($cCity)) {
586
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cCity)), __LINE__);
587
        }
588
        $this->cCity = $cCity;
589
590
        return $this;
591
    }
592
593
    /**
594
     * Get cZip value
595
     *
596
     * @return string|null
597
     */
598
    public function getCZip()
599
    {
600
        return $this->cZip;
601
    }
602
603
    /**
604
     * Set cZip value
605
     *
606
     * @param string $cZip
607
     *
608
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
609
     */
610
    public function setCZip($cZip = null)
611
    {
612
        // validation for constraint: string
613
        if (!is_null($cZip) && !is_string($cZip)) {
614
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cZip)), __LINE__);
615
        }
616
        $this->cZip = $cZip;
617
618
        return $this;
619
    }
620
621
    /**
622
     * Get cPOBox value
623
     *
624
     * @return string|null
625
     */
626
    public function getCPOBox()
627
    {
628
        return $this->cPOBox;
629
    }
630
631
    /**
632
     * Set cPOBox value
633
     *
634
     * @param string $cPOBox
635
     *
636
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
637
     */
638
    public function setCPOBox($cPOBox = null)
639
    {
640
        // validation for constraint: string
641
        if (!is_null($cPOBox) && !is_string($cPOBox)) {
642
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cPOBox)), __LINE__);
643
        }
644
        $this->cPOBox = $cPOBox;
645
646
        return $this;
647
    }
648
649
    /**
650
     * Get cMobile value
651
     *
652
     * @return string|null
653
     */
654
    public function getCMobile()
655
    {
656
        return $this->cMobile;
657
    }
658
659
    /**
660
     * Set cMobile value
661
     *
662
     * @param string $cMobile
663
     *
664
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
665
     */
666
    public function setCMobile($cMobile = null)
667
    {
668
        // validation for constraint: string
669
        if (!is_null($cMobile) && !is_string($cMobile)) {
670
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cMobile)), __LINE__);
671
        }
672
        $this->cMobile = $cMobile;
673
674
        return $this;
675
    }
676
677
    /**
678
     * Get cTel1 value
679
     *
680
     * @return string|null
681
     */
682
    public function getCTel1()
683
    {
684
        return $this->cTel1;
685
    }
686
687
    /**
688
     * Set cTel1 value
689
     *
690
     * @param string $cTel1
691
     *
692
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
693
     */
694
    public function setCTel1($cTel1 = null)
695
    {
696
        // validation for constraint: string
697
        if (!is_null($cTel1) && !is_string($cTel1)) {
698
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cTel1)), __LINE__);
699
        }
700
        $this->cTel1 = $cTel1;
701
702
        return $this;
703
    }
704
705
    /**
706
     * Get cTel2 value
707
     *
708
     * @return string|null
709
     */
710
    public function getCTel2()
711
    {
712
        return $this->cTel2;
713
    }
714
715
    /**
716
     * Set cTel2 value
717
     *
718
     * @param string $cTel2
719
     *
720
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
721
     */
722
    public function setCTel2($cTel2 = null)
723
    {
724
        // validation for constraint: string
725
        if (!is_null($cTel2) && !is_string($cTel2)) {
726
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cTel2)), __LINE__);
727
        }
728
        $this->cTel2 = $cTel2;
729
730
        return $this;
731
    }
732
733
    /**
734
     * Get cAddr1 value
735
     *
736
     * @return string|null
737
     */
738
    public function getCAddr1()
739
    {
740
        return $this->cAddr1;
741
    }
742
743
    /**
744
     * Set cAddr1 value
745
     *
746
     * @param string $cAddr1
747
     *
748
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
749
     */
750
    public function setCAddr1($cAddr1 = null)
751
    {
752
        // validation for constraint: string
753
        if (!is_null($cAddr1) && !is_string($cAddr1)) {
754
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cAddr1)), __LINE__);
755
        }
756
        $this->cAddr1 = $cAddr1;
757
758
        return $this;
759
    }
760
761
    /**
762
     * Get cAddr2 value
763
     *
764
     * @return string|null
765
     */
766
    public function getCAddr2()
767
    {
768
        return $this->cAddr2;
769
    }
770
771
    /**
772
     * Set cAddr2 value
773
     *
774
     * @param string $cAddr2
775
     *
776
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
777
     */
778
    public function setCAddr2($cAddr2 = null)
779
    {
780
        // validation for constraint: string
781
        if (!is_null($cAddr2) && !is_string($cAddr2)) {
782
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cAddr2)), __LINE__);
783
        }
784
        $this->cAddr2 = $cAddr2;
785
786
        return $this;
787
    }
788
789
    /**
790
     * Get shipType value
791
     *
792
     * @return string|null
793
     */
794
    public function getShipType()
795
    {
796
        return $this->shipType;
797
    }
798
799
    /**
800
     * Set shipType value
801
     *
802
     * @param string $shipType
803
     *
804
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
805
     */
806
    public function setShipType($shipType = null)
807
    {
808
        // validation for constraint: string
809
        if (!is_null($shipType) && !is_string($shipType)) {
810
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($shipType)), __LINE__);
811
        }
812
        $this->shipType = $shipType;
813
814
        return $this;
815
    }
816
817
    /**
818
     * Get cEmail value
819
     *
820
     * @return string|null
821
     */
822
    public function getCEmail()
823
    {
824
        return $this->cEmail;
825
    }
826
827
    /**
828
     * Set cEmail value
829
     *
830
     * @param string $cEmail
831
     *
832
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
833
     */
834
    public function setCEmail($cEmail = null)
835
    {
836
        // validation for constraint: string
837
        if (!is_null($cEmail) && !is_string($cEmail)) {
838
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cEmail)), __LINE__);
839
        }
840
        $this->cEmail = $cEmail;
841
842
        return $this;
843
    }
844
845
    /**
846
     * Get carrValue value
847
     *
848
     * @return string|null
849
     */
850
    public function getCarrValue()
851
    {
852
        return $this->carrValue;
853
    }
854
855
    /**
856
     * Set carrValue value
857
     *
858
     * @param string $carrValue
859
     *
860
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
861
     */
862
    public function setCarrValue($carrValue = null)
863
    {
864
        // validation for constraint: string
865
        if (!is_null($carrValue) && !is_string($carrValue)) {
866
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($carrValue)), __LINE__);
867
        }
868
        $this->carrValue = $carrValue;
869
870
        return $this;
871
    }
872
873
    /**
874
     * Get carrCurr value
875
     *
876
     * @return string|null
877
     */
878
    public function getCarrCurr()
879
    {
880
        return $this->carrCurr;
881
    }
882
883
    /**
884
     * Set carrCurr value
885
     *
886
     * @param string $carrCurr
887
     *
888
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
889
     */
890
    public function setCarrCurr($carrCurr = null)
891
    {
892
        // validation for constraint: string
893
        if (!is_null($carrCurr) && !is_string($carrCurr)) {
894
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($carrCurr)), __LINE__);
895
        }
896
        $this->carrCurr = $carrCurr;
897
898
        return $this;
899
    }
900
901
    /**
902
     * Get codAmt value
903
     *
904
     * @return string|null
905
     */
906
    public function getCodAmt()
907
    {
908
        return $this->codAmt;
909
    }
910
911
    /**
912
     * Set codAmt value
913
     *
914
     * @param string $codAmt
915
     *
916
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
917
     */
918
    public function setCodAmt($codAmt = null)
919
    {
920
        // validation for constraint: string
921
        if (!is_null($codAmt) && !is_string($codAmt)) {
922
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($codAmt)), __LINE__);
923
        }
924
        $this->codAmt = $codAmt;
925
926
        return $this;
927
    }
928
929
    /**
930
     * Get weight value
931
     *
932
     * @return string|null
933
     */
934
    public function getWeight()
935
    {
936
        return $this->weight;
937
    }
938
939
    /**
940
     * Set weight value
941
     *
942
     * @param string $weight
943
     *
944
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
945
     */
946
    public function setWeight($weight = null)
947
    {
948
        // validation for constraint: string
949
        if (!is_null($weight) && !is_string($weight)) {
950
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($weight)), __LINE__);
951
        }
952
        $this->weight = $weight;
953
954
        return $this;
955
    }
956
957
    /**
958
     * Get custVal value
959
     *
960
     * @return string|null
961
     */
962
    public function getCustVal()
963
    {
964
        return $this->custVal;
965
    }
966
967
    /**
968
     * Set custVal value
969
     *
970
     * @param string $custVal
971
     *
972
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
973
     */
974
    public function setCustVal($custVal = null)
975
    {
976
        // validation for constraint: string
977
        if (!is_null($custVal) && !is_string($custVal)) {
978
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($custVal)), __LINE__);
979
        }
980
        $this->custVal = $custVal;
981
982
        return $this;
983
    }
984
985
    /**
986
     * Get custCurr value
987
     *
988
     * @return string|null
989
     */
990
    public function getCustCurr()
991
    {
992
        return $this->custCurr;
993
    }
994
995
    /**
996
     * Set custCurr value
997
     *
998
     * @param string $custCurr
999
     *
1000
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1001
     */
1002
    public function setCustCurr($custCurr = null)
1003
    {
1004
        // validation for constraint: string
1005
        if (!is_null($custCurr) && !is_string($custCurr)) {
1006
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($custCurr)), __LINE__);
1007
        }
1008
        $this->custCurr = $custCurr;
1009
1010
        return $this;
1011
    }
1012
1013
    /**
1014
     * Get insrAmt value
1015
     *
1016
     * @return string|null
1017
     */
1018
    public function getInsrAmt()
1019
    {
1020
        return $this->insrAmt;
1021
    }
1022
1023
    /**
1024
     * Set insrAmt value
1025
     *
1026
     * @param string $insrAmt
1027
     *
1028
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1029
     */
1030
    public function setInsrAmt($insrAmt = null)
1031
    {
1032
        // validation for constraint: string
1033
        if (!is_null($insrAmt) && !is_string($insrAmt)) {
1034
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($insrAmt)), __LINE__);
1035
        }
1036
        $this->insrAmt = $insrAmt;
1037
1038
        return $this;
1039
    }
1040
1041
    /**
1042
     * Get insrCurr value
1043
     *
1044
     * @return string|null
1045
     */
1046
    public function getInsrCurr()
1047
    {
1048
        return $this->insrCurr;
1049
    }
1050
1051
    /**
1052
     * Set insrCurr value
1053
     *
1054
     * @param string $insrCurr
1055
     *
1056
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1057
     */
1058
    public function setInsrCurr($insrCurr = null)
1059
    {
1060
        // validation for constraint: string
1061
        if (!is_null($insrCurr) && !is_string($insrCurr)) {
1062
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($insrCurr)), __LINE__);
1063
        }
1064
        $this->insrCurr = $insrCurr;
1065
1066
        return $this;
1067
    }
1068
1069
    /**
1070
     * Get itemDesc value
1071
     *
1072
     * @return string|null
1073
     */
1074
    public function getItemDesc()
1075
    {
1076
        return $this->itemDesc;
1077
    }
1078
1079
    /**
1080
     * Set itemDesc value
1081
     *
1082
     * @param string $itemDesc
1083
     *
1084
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1085
     */
1086
    public function setItemDesc($itemDesc = null)
1087
    {
1088
        // validation for constraint: string
1089
        if (!is_null($itemDesc) && !is_string($itemDesc)) {
1090
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($itemDesc)), __LINE__);
1091
        }
1092
        $this->itemDesc = $itemDesc;
1093
1094
        return $this;
1095
    }
1096
1097
    /**
1098
     * Get prefDelvDate value
1099
     *
1100
     * @return string|null
1101
     */
1102
    public function getPrefDelvDate()
1103
    {
1104
        return $this->prefDelvDate;
1105
    }
1106
1107
    /**
1108
     * Set prefDelvDate value
1109
     *
1110
     * @param string $prefDelvDate
1111
     *
1112
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1113
     */
1114
    public function setPrefDelvDate($prefDelvDate = null)
1115
    {
1116
        // validation for constraint: string
1117
        if (!is_null($prefDelvDate) && !is_string($prefDelvDate)) {
1118
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($prefDelvDate)), __LINE__);
1119
        }
1120
        $this->prefDelvDate = $prefDelvDate;
1121
1122
        return $this;
1123
    }
1124
1125
    /**
1126
     * Get gpsPoints value
1127
     *
1128
     * @return string|null
1129
     */
1130
    public function getGpsPoints()
1131
    {
1132
        return $this->gpsPoints;
1133
    }
1134
1135
    /**
1136
     * Set gpsPoints value
1137
     *
1138
     * @param string $gpsPoints
1139
     *
1140
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1141
     */
1142
    public function setGpsPoints($gpsPoints = null)
1143
    {
1144
        // validation for constraint: string
1145
        if (!is_null($gpsPoints) && !is_string($gpsPoints)) {
1146
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($gpsPoints)), __LINE__);
1147
        }
1148
        $this->gpsPoints = $gpsPoints;
1149
1150
        return $this;
1151
    }
1152
1153
    /**
1154
     * Method called when an object has been exported with var_export() functions
1155
     * It allows to return an object instantiated with the values
1156
     *
1157
     * @see AbstractStructBase::__set_state()
1158
     *
1159
     * @uses AbstractStructBase::__set_state()
1160
     *
1161
     * @param array $array the exported values
1162
     *
1163
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv
1164
     */
1165
    public static function __set_state(array $array)
1166
    {
1167
        return parent::__set_state($array);
1168
    }
1169
1170
    /**
1171
     * Method returning the class name
1172
     *
1173
     * @return string __CLASS__
1174
     */
1175
    public function __toString()
1176
    {
1177
        return __CLASS__;
1178
    }
1179
}
1180