GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (77762a)
by Mohannad
13:57 queued 03:59
created

addShipMPS::__construct()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 38
Code Lines 36

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 36
nc 1
nop 35
dl 0
loc 38
rs 8.8571
c 0
b 0
f 0

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
3
namespace SmsaSDK\Methods;
4
5
class addShipMPS
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $passKey = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $refNo = null;
16
17
    /**
18
     * @var string
19
     */
20
    protected $sentDate = null;
21
22
    /**
23
     * @var string
24
     */
25
    protected $idNo = null;
26
27
    /**
28
     * @var string
29
     */
30
    protected $cName = null;
31
32
    /**
33
     * @var string
34
     */
35
    protected $cntry = null;
36
37
    /**
38
     * @var string
39
     */
40
    protected $cCity = null;
41
42
    /**
43
     * @var string
44
     */
45
    protected $cZip = null;
46
47
    /**
48
     * @var string
49
     */
50
    protected $cPOBox = null;
51
52
    /**
53
     * @var string
54
     */
55
    protected $cMobile = null;
56
57
    /**
58
     * @var string
59
     */
60
    protected $cTel1 = null;
61
62
    /**
63
     * @var string
64
     */
65
    protected $cTel2 = null;
66
67
    /**
68
     * @var string
69
     */
70
    protected $cAddr1 = null;
71
72
    /**
73
     * @var string
74
     */
75
    protected $cAddr2 = null;
76
77
    /**
78
     * @var string
79
     */
80
    protected $shipType = null;
81
82
    /**
83
     * @var int
84
     */
85
    protected $PCs = null;
86
87
    /**
88
     * @var string
89
     */
90
    protected $cEmail = null;
91
92
    /**
93
     * @var string
94
     */
95
    protected $carrValue = null;
96
97
    /**
98
     * @var string
99
     */
100
    protected $carrCurr = null;
101
102
    /**
103
     * @var string
104
     */
105
    protected $codAmt = null;
106
107
    /**
108
     * @var string
109
     */
110
    protected $weight = null;
111
112
    /**
113
     * @var string
114
     */
115
    protected $custVal = null;
116
117
    /**
118
     * @var string
119
     */
120
    protected $custCurr = null;
121
122
    /**
123
     * @var string
124
     */
125
    protected $insrAmt = null;
126
127
    /**
128
     * @var string
129
     */
130
    protected $insrCurr = null;
131
132
    /**
133
     * @var string
134
     */
135
    protected $itemDesc = null;
136
137
    /**
138
     * @var string
139
     */
140
    protected $sName = null;
141
142
    /**
143
     * @var string
144
     */
145
    protected $sContact = null;
146
147
    /**
148
     * @var string
149
     */
150
    protected $sAddr1 = null;
151
152
    /**
153
     * @var string
154
     */
155
    protected $sAddr2 = null;
156
157
    /**
158
     * @var string
159
     */
160
    protected $sCity = null;
161
162
    /**
163
     * @var string
164
     */
165
    protected $sPhone = null;
166
167
    /**
168
     * @var string
169
     */
170
    protected $sCntry = null;
171
172
    /**
173
     * @var string
174
     */
175
    protected $prefDelvDate = null;
176
177
    /**
178
     * @var string
179
     */
180
    protected $gpsPoints = null;
181
182
    /**
183
     * @param string $passKey
184
     * @param string $refNo
185
     * @param string $sentDate
186
     * @param string $idNo
187
     * @param string $cName
188
     * @param string $cntry
189
     * @param string $cCity
190
     * @param string $cZip
191
     * @param string $cPOBox
192
     * @param string $cMobile
193
     * @param string $cTel1
194
     * @param string $cTel2
195
     * @param string $cAddr1
196
     * @param string $cAddr2
197
     * @param string $shipType
198
     * @param int    $PCs
199
     * @param string $cEmail
200
     * @param string $carrValue
201
     * @param string $carrCurr
202
     * @param string $codAmt
203
     * @param string $weight
204
     * @param string $custVal
205
     * @param string $custCurr
206
     * @param string $insrAmt
207
     * @param string $insrCurr
208
     * @param string $itemDesc
209
     * @param string $sName
210
     * @param string $sContact
211
     * @param string $sAddr1
212
     * @param string $sAddr2
213
     * @param string $sCity
214
     * @param string $sPhone
215
     * @param string $sCntry
216
     * @param string $prefDelvDate
217
     * @param string $gpsPoints
218
     */
219
    public function __construct($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, $PCs = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null, $sName = null, $sContact = null, $sAddr1 = null, $sAddr2 = null, $sCity = null, $sPhone = null, $sCntry = null, $prefDelvDate = null, $gpsPoints = null)
220
    {
221
        $this->passKey = $passKey;
222
        $this->refNo = $refNo;
223
        $this->sentDate = $sentDate;
224
        $this->idNo = $idNo;
225
        $this->cName = $cName;
226
        $this->cntry = $cntry;
227
        $this->cCity = $cCity;
228
        $this->cZip = $cZip;
229
        $this->cPOBox = $cPOBox;
230
        $this->cMobile = $cMobile;
231
        $this->cTel1 = $cTel1;
232
        $this->cTel2 = $cTel2;
233
        $this->cAddr1 = $cAddr1;
234
        $this->cAddr2 = $cAddr2;
235
        $this->shipType = $shipType;
236
        $this->PCs = $PCs;
237
        $this->cEmail = $cEmail;
238
        $this->carrValue = $carrValue;
239
        $this->carrCurr = $carrCurr;
240
        $this->codAmt = $codAmt;
241
        $this->weight = $weight;
242
        $this->custVal = $custVal;
243
        $this->custCurr = $custCurr;
244
        $this->insrAmt = $insrAmt;
245
        $this->insrCurr = $insrCurr;
246
        $this->itemDesc = $itemDesc;
247
        $this->sName = $sName;
248
        $this->sContact = $sContact;
249
        $this->sAddr1 = $sAddr1;
250
        $this->sAddr2 = $sAddr2;
251
        $this->sCity = $sCity;
252
        $this->sPhone = $sPhone;
253
        $this->sCntry = $sCntry;
254
        $this->prefDelvDate = $prefDelvDate;
255
        $this->gpsPoints = $gpsPoints;
256
    }
257
258
    /**
259
     * @return string
260
     */
261
    public function getPassKey()
262
    {
263
        return $this->passKey;
264
    }
265
266
    /**
267
     * @param string $passKey
268
     *
269
     * @return \SmsaSDK\Methods\addShipMPS
270
     */
271
    public function setPassKey($passKey)
272
    {
273
        $this->passKey = $passKey;
274
275
        return $this;
276
    }
277
278
    /**
279
     * @return string
280
     */
281
    public function getRefNo()
282
    {
283
        return $this->refNo;
284
    }
285
286
    /**
287
     * @param string $refNo
288
     *
289
     * @return \SmsaSDK\Methods\addShipMPS
290
     */
291
    public function setRefNo($refNo)
292
    {
293
        $this->refNo = $refNo;
294
295
        return $this;
296
    }
297
298
    /**
299
     * @return string
300
     */
301
    public function getSentDate()
302
    {
303
        return $this->sentDate;
304
    }
305
306
    /**
307
     * @param string $sentDate
308
     *
309
     * @return \SmsaSDK\Methods\addShipMPS
310
     */
311
    public function setSentDate($sentDate)
312
    {
313
        $this->sentDate = $sentDate;
314
315
        return $this;
316
    }
317
318
    /**
319
     * @return string
320
     */
321
    public function getIdNo()
322
    {
323
        return $this->idNo;
324
    }
325
326
    /**
327
     * @param string $idNo
328
     *
329
     * @return \SmsaSDK\Methods\addShipMPS
330
     */
331
    public function setIdNo($idNo)
332
    {
333
        $this->idNo = $idNo;
334
335
        return $this;
336
    }
337
338
    /**
339
     * @return string
340
     */
341
    public function getCName()
342
    {
343
        return $this->cName;
344
    }
345
346
    /**
347
     * @param string $cName
348
     *
349
     * @return \SmsaSDK\Methods\addShipMPS
350
     */
351
    public function setCName($cName)
352
    {
353
        $this->cName = $cName;
354
355
        return $this;
356
    }
357
358
    /**
359
     * @return string
360
     */
361
    public function getCntry()
362
    {
363
        return $this->cntry;
364
    }
365
366
    /**
367
     * @param string $cntry
368
     *
369
     * @return \SmsaSDK\Methods\addShipMPS
370
     */
371
    public function setCntry($cntry)
372
    {
373
        $this->cntry = $cntry;
374
375
        return $this;
376
    }
377
378
    /**
379
     * @return string
380
     */
381
    public function getCCity()
382
    {
383
        return $this->cCity;
384
    }
385
386
    /**
387
     * @param string $cCity
388
     *
389
     * @return \SmsaSDK\Methods\addShipMPS
390
     */
391
    public function setCCity($cCity)
392
    {
393
        $this->cCity = $cCity;
394
395
        return $this;
396
    }
397
398
    /**
399
     * @return string
400
     */
401
    public function getCZip()
402
    {
403
        return $this->cZip;
404
    }
405
406
    /**
407
     * @param string $cZip
408
     *
409
     * @return \SmsaSDK\Methods\addShipMPS
410
     */
411
    public function setCZip($cZip)
412
    {
413
        $this->cZip = $cZip;
414
415
        return $this;
416
    }
417
418
    /**
419
     * @return string
420
     */
421
    public function getCPOBox()
422
    {
423
        return $this->cPOBox;
424
    }
425
426
    /**
427
     * @param string $cPOBox
428
     *
429
     * @return \SmsaSDK\Methods\addShipMPS
430
     */
431
    public function setCPOBox($cPOBox)
432
    {
433
        $this->cPOBox = $cPOBox;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @return string
440
     */
441
    public function getCMobile()
442
    {
443
        return $this->cMobile;
444
    }
445
446
    /**
447
     * @param string $cMobile
448
     *
449
     * @return \SmsaSDK\Methods\addShipMPS
450
     */
451
    public function setCMobile($cMobile)
452
    {
453
        $this->cMobile = $cMobile;
454
455
        return $this;
456
    }
457
458
    /**
459
     * @return string
460
     */
461
    public function getCTel1()
462
    {
463
        return $this->cTel1;
464
    }
465
466
    /**
467
     * @param string $cTel1
468
     *
469
     * @return \SmsaSDK\Methods\addShipMPS
470
     */
471
    public function setCTel1($cTel1)
472
    {
473
        $this->cTel1 = $cTel1;
474
475
        return $this;
476
    }
477
478
    /**
479
     * @return string
480
     */
481
    public function getCTel2()
482
    {
483
        return $this->cTel2;
484
    }
485
486
    /**
487
     * @param string $cTel2
488
     *
489
     * @return \SmsaSDK\Methods\addShipMPS
490
     */
491
    public function setCTel2($cTel2)
492
    {
493
        $this->cTel2 = $cTel2;
494
495
        return $this;
496
    }
497
498
    /**
499
     * @return string
500
     */
501
    public function getCAddr1()
502
    {
503
        return $this->cAddr1;
504
    }
505
506
    /**
507
     * @param string $cAddr1
508
     *
509
     * @return \SmsaSDK\Methods\addShipMPS
510
     */
511
    public function setCAddr1($cAddr1)
512
    {
513
        $this->cAddr1 = $cAddr1;
514
515
        return $this;
516
    }
517
518
    /**
519
     * @return string
520
     */
521
    public function getCAddr2()
522
    {
523
        return $this->cAddr2;
524
    }
525
526
    /**
527
     * @param string $cAddr2
528
     *
529
     * @return \SmsaSDK\Methods\addShipMPS
530
     */
531
    public function setCAddr2($cAddr2)
532
    {
533
        $this->cAddr2 = $cAddr2;
534
535
        return $this;
536
    }
537
538
    /**
539
     * @return string
540
     */
541
    public function getShipType()
542
    {
543
        return $this->shipType;
544
    }
545
546
    /**
547
     * @param string $shipType
548
     *
549
     * @return \SmsaSDK\Methods\addShipMPS
550
     */
551
    public function setShipType($shipType)
552
    {
553
        $this->shipType = $shipType;
554
555
        return $this;
556
    }
557
558
    /**
559
     * @return int
560
     */
561
    public function getPCs()
562
    {
563
        return $this->PCs;
564
    }
565
566
    /**
567
     * @param int $PCs
568
     *
569
     * @return \SmsaSDK\Methods\addShipMPS
570
     */
571
    public function setPCs($PCs)
572
    {
573
        $this->PCs = $PCs;
574
575
        return $this;
576
    }
577
578
    /**
579
     * @return string
580
     */
581
    public function getCEmail()
582
    {
583
        return $this->cEmail;
584
    }
585
586
    /**
587
     * @param string $cEmail
588
     *
589
     * @return \SmsaSDK\Methods\addShipMPS
590
     */
591
    public function setCEmail($cEmail)
592
    {
593
        $this->cEmail = $cEmail;
594
595
        return $this;
596
    }
597
598
    /**
599
     * @return string
600
     */
601
    public function getCarrValue()
602
    {
603
        return $this->carrValue;
604
    }
605
606
    /**
607
     * @param string $carrValue
608
     *
609
     * @return \SmsaSDK\Methods\addShipMPS
610
     */
611
    public function setCarrValue($carrValue)
612
    {
613
        $this->carrValue = $carrValue;
614
615
        return $this;
616
    }
617
618
    /**
619
     * @return string
620
     */
621
    public function getCarrCurr()
622
    {
623
        return $this->carrCurr;
624
    }
625
626
    /**
627
     * @param string $carrCurr
628
     *
629
     * @return \SmsaSDK\Methods\addShipMPS
630
     */
631
    public function setCarrCurr($carrCurr)
632
    {
633
        $this->carrCurr = $carrCurr;
634
635
        return $this;
636
    }
637
638
    /**
639
     * @return string
640
     */
641
    public function getCodAmt()
642
    {
643
        return $this->codAmt;
644
    }
645
646
    /**
647
     * @param string $codAmt
648
     *
649
     * @return \SmsaSDK\Methods\addShipMPS
650
     */
651
    public function setCodAmt($codAmt)
652
    {
653
        $this->codAmt = $codAmt;
654
655
        return $this;
656
    }
657
658
    /**
659
     * @return string
660
     */
661
    public function getWeight()
662
    {
663
        return $this->weight;
664
    }
665
666
    /**
667
     * @param string $weight
668
     *
669
     * @return \SmsaSDK\Methods\addShipMPS
670
     */
671
    public function setWeight($weight)
672
    {
673
        $this->weight = $weight;
674
675
        return $this;
676
    }
677
678
    /**
679
     * @return string
680
     */
681
    public function getCustVal()
682
    {
683
        return $this->custVal;
684
    }
685
686
    /**
687
     * @param string $custVal
688
     *
689
     * @return \SmsaSDK\Methods\addShipMPS
690
     */
691
    public function setCustVal($custVal)
692
    {
693
        $this->custVal = $custVal;
694
695
        return $this;
696
    }
697
698
    /**
699
     * @return string
700
     */
701
    public function getCustCurr()
702
    {
703
        return $this->custCurr;
704
    }
705
706
    /**
707
     * @param string $custCurr
708
     *
709
     * @return \SmsaSDK\Methods\addShipMPS
710
     */
711
    public function setCustCurr($custCurr)
712
    {
713
        $this->custCurr = $custCurr;
714
715
        return $this;
716
    }
717
718
    /**
719
     * @return string
720
     */
721
    public function getInsrAmt()
722
    {
723
        return $this->insrAmt;
724
    }
725
726
    /**
727
     * @param string $insrAmt
728
     *
729
     * @return \SmsaSDK\Methods\addShipMPS
730
     */
731
    public function setInsrAmt($insrAmt)
732
    {
733
        $this->insrAmt = $insrAmt;
734
735
        return $this;
736
    }
737
738
    /**
739
     * @return string
740
     */
741
    public function getInsrCurr()
742
    {
743
        return $this->insrCurr;
744
    }
745
746
    /**
747
     * @param string $insrCurr
748
     *
749
     * @return \SmsaSDK\Methods\addShipMPS
750
     */
751
    public function setInsrCurr($insrCurr)
752
    {
753
        $this->insrCurr = $insrCurr;
754
755
        return $this;
756
    }
757
758
    /**
759
     * @return string
760
     */
761
    public function getItemDesc()
762
    {
763
        return $this->itemDesc;
764
    }
765
766
    /**
767
     * @param string $itemDesc
768
     *
769
     * @return \SmsaSDK\Methods\addShipMPS
770
     */
771
    public function setItemDesc($itemDesc)
772
    {
773
        $this->itemDesc = $itemDesc;
774
775
        return $this;
776
    }
777
778
    /**
779
     * @return string
780
     */
781
    public function getSName()
782
    {
783
        return $this->sName;
784
    }
785
786
    /**
787
     * @param string $sName
788
     *
789
     * @return \SmsaSDK\Methods\addShipMPS
790
     */
791
    public function setSName($sName)
792
    {
793
        $this->sName = $sName;
794
795
        return $this;
796
    }
797
798
    /**
799
     * @return string
800
     */
801
    public function getSContact()
802
    {
803
        return $this->sContact;
804
    }
805
806
    /**
807
     * @param string $sContact
808
     *
809
     * @return \SmsaSDK\Methods\addShipMPS
810
     */
811
    public function setSContact($sContact)
812
    {
813
        $this->sContact = $sContact;
814
815
        return $this;
816
    }
817
818
    /**
819
     * @return string
820
     */
821
    public function getSAddr1()
822
    {
823
        return $this->sAddr1;
824
    }
825
826
    /**
827
     * @param string $sAddr1
828
     *
829
     * @return \SmsaSDK\Methods\addShipMPS
830
     */
831
    public function setSAddr1($sAddr1)
832
    {
833
        $this->sAddr1 = $sAddr1;
834
835
        return $this;
836
    }
837
838
    /**
839
     * @return string
840
     */
841
    public function getSAddr2()
842
    {
843
        return $this->sAddr2;
844
    }
845
846
    /**
847
     * @param string $sAddr2
848
     *
849
     * @return \SmsaSDK\Methods\addShipMPS
850
     */
851
    public function setSAddr2($sAddr2)
852
    {
853
        $this->sAddr2 = $sAddr2;
854
855
        return $this;
856
    }
857
858
    /**
859
     * @return string
860
     */
861
    public function getSCity()
862
    {
863
        return $this->sCity;
864
    }
865
866
    /**
867
     * @param string $sCity
868
     *
869
     * @return \SmsaSDK\Methods\addShipMPS
870
     */
871
    public function setSCity($sCity)
872
    {
873
        $this->sCity = $sCity;
874
875
        return $this;
876
    }
877
878
    /**
879
     * @return string
880
     */
881
    public function getSPhone()
882
    {
883
        return $this->sPhone;
884
    }
885
886
    /**
887
     * @param string $sPhone
888
     *
889
     * @return \SmsaSDK\Methods\addShipMPS
890
     */
891
    public function setSPhone($sPhone)
892
    {
893
        $this->sPhone = $sPhone;
894
895
        return $this;
896
    }
897
898
    /**
899
     * @return string
900
     */
901
    public function getSCntry()
902
    {
903
        return $this->sCntry;
904
    }
905
906
    /**
907
     * @param string $sCntry
908
     *
909
     * @return \SmsaSDK\Methods\addShipMPS
910
     */
911
    public function setSCntry($sCntry)
912
    {
913
        $this->sCntry = $sCntry;
914
915
        return $this;
916
    }
917
918
    /**
919
     * @return string
920
     */
921
    public function getPrefDelvDate()
922
    {
923
        return $this->prefDelvDate;
924
    }
925
926
    /**
927
     * @param string $prefDelvDate
928
     *
929
     * @return \SmsaSDK\Methods\addShipMPS
930
     */
931
    public function setPrefDelvDate($prefDelvDate)
932
    {
933
        $this->prefDelvDate = $prefDelvDate;
934
935
        return $this;
936
    }
937
938
    /**
939
     * @return string
940
     */
941
    public function getGpsPoints()
942
    {
943
        return $this->gpsPoints;
944
    }
945
946
    /**
947
     * @param string $gpsPoints
948
     *
949
     * @return \SmsaSDK\Methods\addShipMPS
950
     */
951
    public function setGpsPoints($gpsPoints)
952
    {
953
        $this->gpsPoints = $gpsPoints;
954
955
        return $this;
956
    }
957
}
958