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

addShipmentDelv   D

Complexity

Total Complexity 57

Size/Duplication

Total Lines 764
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 764
rs 4.1379
c 0
b 0
f 0
wmc 57
lcom 0
cbo 0

How to fix   Complexity   

Complex Class

Complex classes like addShipmentDelv 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. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

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 addShipmentDelv, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
namespace SmsaSDK\Methods;
4
5
class addShipmentDelv
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 $prefDelvDate = null;
141
142
    /**
143
     * @var string
144
     */
145
    protected $gpsPoints = null;
146
147
    /**
148
     * @param string $passKey
149
     * @param string $refNo
150
     * @param string $sentDate
151
     * @param string $idNo
152
     * @param string $cName
153
     * @param string $cntry
154
     * @param string $cCity
155
     * @param string $cZip
156
     * @param string $cPOBox
157
     * @param string $cMobile
158
     * @param string $cTel1
159
     * @param string $cTel2
160
     * @param string $cAddr1
161
     * @param string $cAddr2
162
     * @param string $shipType
163
     * @param int    $PCs
164
     * @param string $cEmail
165
     * @param string $carrValue
166
     * @param string $carrCurr
167
     * @param string $codAmt
168
     * @param string $weight
169
     * @param string $custVal
170
     * @param string $custCurr
171
     * @param string $insrAmt
172
     * @param string $insrCurr
173
     * @param string $itemDesc
174
     * @param string $prefDelvDate
175
     * @param string $gpsPoints
176
     */
177
    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, $prefDelvDate = null, $gpsPoints = null)
178
    {
179
        $this->passKey = $passKey;
180
        $this->refNo = $refNo;
181
        $this->sentDate = $sentDate;
182
        $this->idNo = $idNo;
183
        $this->cName = $cName;
184
        $this->cntry = $cntry;
185
        $this->cCity = $cCity;
186
        $this->cZip = $cZip;
187
        $this->cPOBox = $cPOBox;
188
        $this->cMobile = $cMobile;
189
        $this->cTel1 = $cTel1;
190
        $this->cTel2 = $cTel2;
191
        $this->cAddr1 = $cAddr1;
192
        $this->cAddr2 = $cAddr2;
193
        $this->shipType = $shipType;
194
        $this->PCs = $PCs;
195
        $this->cEmail = $cEmail;
196
        $this->carrValue = $carrValue;
197
        $this->carrCurr = $carrCurr;
198
        $this->codAmt = $codAmt;
199
        $this->weight = $weight;
200
        $this->custVal = $custVal;
201
        $this->custCurr = $custCurr;
202
        $this->insrAmt = $insrAmt;
203
        $this->insrCurr = $insrCurr;
204
        $this->itemDesc = $itemDesc;
205
        $this->prefDelvDate = $prefDelvDate;
206
        $this->gpsPoints = $gpsPoints;
207
    }
208
209
    /**
210
     * @return string
211
     */
212
    public function getPassKey()
213
    {
214
        return $this->passKey;
215
    }
216
217
    /**
218
     * @param string $passKey
219
     *
220
     * @return \SmsaSDK\Methods\addShipmentDelv
221
     */
222
    public function setPassKey($passKey)
223
    {
224
        $this->passKey = $passKey;
225
226
        return $this;
227
    }
228
229
    /**
230
     * @return string
231
     */
232
    public function getRefNo()
233
    {
234
        return $this->refNo;
235
    }
236
237
    /**
238
     * @param string $refNo
239
     *
240
     * @return \SmsaSDK\Methods\addShipmentDelv
241
     */
242
    public function setRefNo($refNo)
243
    {
244
        $this->refNo = $refNo;
245
246
        return $this;
247
    }
248
249
    /**
250
     * @return string
251
     */
252
    public function getSentDate()
253
    {
254
        return $this->sentDate;
255
    }
256
257
    /**
258
     * @param string $sentDate
259
     *
260
     * @return \SmsaSDK\Methods\addShipmentDelv
261
     */
262
    public function setSentDate($sentDate)
263
    {
264
        $this->sentDate = $sentDate;
265
266
        return $this;
267
    }
268
269
    /**
270
     * @return string
271
     */
272
    public function getIdNo()
273
    {
274
        return $this->idNo;
275
    }
276
277
    /**
278
     * @param string $idNo
279
     *
280
     * @return \SmsaSDK\Methods\addShipmentDelv
281
     */
282
    public function setIdNo($idNo)
283
    {
284
        $this->idNo = $idNo;
285
286
        return $this;
287
    }
288
289
    /**
290
     * @return string
291
     */
292
    public function getCName()
293
    {
294
        return $this->cName;
295
    }
296
297
    /**
298
     * @param string $cName
299
     *
300
     * @return \SmsaSDK\Methods\addShipmentDelv
301
     */
302
    public function setCName($cName)
303
    {
304
        $this->cName = $cName;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @return string
311
     */
312
    public function getCntry()
313
    {
314
        return $this->cntry;
315
    }
316
317
    /**
318
     * @param string $cntry
319
     *
320
     * @return \SmsaSDK\Methods\addShipmentDelv
321
     */
322
    public function setCntry($cntry)
323
    {
324
        $this->cntry = $cntry;
325
326
        return $this;
327
    }
328
329
    /**
330
     * @return string
331
     */
332
    public function getCCity()
333
    {
334
        return $this->cCity;
335
    }
336
337
    /**
338
     * @param string $cCity
339
     *
340
     * @return \SmsaSDK\Methods\addShipmentDelv
341
     */
342
    public function setCCity($cCity)
343
    {
344
        $this->cCity = $cCity;
345
346
        return $this;
347
    }
348
349
    /**
350
     * @return string
351
     */
352
    public function getCZip()
353
    {
354
        return $this->cZip;
355
    }
356
357
    /**
358
     * @param string $cZip
359
     *
360
     * @return \SmsaSDK\Methods\addShipmentDelv
361
     */
362
    public function setCZip($cZip)
363
    {
364
        $this->cZip = $cZip;
365
366
        return $this;
367
    }
368
369
    /**
370
     * @return string
371
     */
372
    public function getCPOBox()
373
    {
374
        return $this->cPOBox;
375
    }
376
377
    /**
378
     * @param string $cPOBox
379
     *
380
     * @return \SmsaSDK\Methods\addShipmentDelv
381
     */
382
    public function setCPOBox($cPOBox)
383
    {
384
        $this->cPOBox = $cPOBox;
385
386
        return $this;
387
    }
388
389
    /**
390
     * @return string
391
     */
392
    public function getCMobile()
393
    {
394
        return $this->cMobile;
395
    }
396
397
    /**
398
     * @param string $cMobile
399
     *
400
     * @return \SmsaSDK\Methods\addShipmentDelv
401
     */
402
    public function setCMobile($cMobile)
403
    {
404
        $this->cMobile = $cMobile;
405
406
        return $this;
407
    }
408
409
    /**
410
     * @return string
411
     */
412
    public function getCTel1()
413
    {
414
        return $this->cTel1;
415
    }
416
417
    /**
418
     * @param string $cTel1
419
     *
420
     * @return \SmsaSDK\Methods\addShipmentDelv
421
     */
422
    public function setCTel1($cTel1)
423
    {
424
        $this->cTel1 = $cTel1;
425
426
        return $this;
427
    }
428
429
    /**
430
     * @return string
431
     */
432
    public function getCTel2()
433
    {
434
        return $this->cTel2;
435
    }
436
437
    /**
438
     * @param string $cTel2
439
     *
440
     * @return \SmsaSDK\Methods\addShipmentDelv
441
     */
442
    public function setCTel2($cTel2)
443
    {
444
        $this->cTel2 = $cTel2;
445
446
        return $this;
447
    }
448
449
    /**
450
     * @return string
451
     */
452
    public function getCAddr1()
453
    {
454
        return $this->cAddr1;
455
    }
456
457
    /**
458
     * @param string $cAddr1
459
     *
460
     * @return \SmsaSDK\Methods\addShipmentDelv
461
     */
462
    public function setCAddr1($cAddr1)
463
    {
464
        $this->cAddr1 = $cAddr1;
465
466
        return $this;
467
    }
468
469
    /**
470
     * @return string
471
     */
472
    public function getCAddr2()
473
    {
474
        return $this->cAddr2;
475
    }
476
477
    /**
478
     * @param string $cAddr2
479
     *
480
     * @return \SmsaSDK\Methods\addShipmentDelv
481
     */
482
    public function setCAddr2($cAddr2)
483
    {
484
        $this->cAddr2 = $cAddr2;
485
486
        return $this;
487
    }
488
489
    /**
490
     * @return string
491
     */
492
    public function getShipType()
493
    {
494
        return $this->shipType;
495
    }
496
497
    /**
498
     * @param string $shipType
499
     *
500
     * @return \SmsaSDK\Methods\addShipmentDelv
501
     */
502
    public function setShipType($shipType)
503
    {
504
        $this->shipType = $shipType;
505
506
        return $this;
507
    }
508
509
    /**
510
     * @return int
511
     */
512
    public function getPCs()
513
    {
514
        return $this->PCs;
515
    }
516
517
    /**
518
     * @param int $PCs
519
     *
520
     * @return \SmsaSDK\Methods\addShipmentDelv
521
     */
522
    public function setPCs($PCs)
523
    {
524
        $this->PCs = $PCs;
525
526
        return $this;
527
    }
528
529
    /**
530
     * @return string
531
     */
532
    public function getCEmail()
533
    {
534
        return $this->cEmail;
535
    }
536
537
    /**
538
     * @param string $cEmail
539
     *
540
     * @return \SmsaSDK\Methods\addShipmentDelv
541
     */
542
    public function setCEmail($cEmail)
543
    {
544
        $this->cEmail = $cEmail;
545
546
        return $this;
547
    }
548
549
    /**
550
     * @return string
551
     */
552
    public function getCarrValue()
553
    {
554
        return $this->carrValue;
555
    }
556
557
    /**
558
     * @param string $carrValue
559
     *
560
     * @return \SmsaSDK\Methods\addShipmentDelv
561
     */
562
    public function setCarrValue($carrValue)
563
    {
564
        $this->carrValue = $carrValue;
565
566
        return $this;
567
    }
568
569
    /**
570
     * @return string
571
     */
572
    public function getCarrCurr()
573
    {
574
        return $this->carrCurr;
575
    }
576
577
    /**
578
     * @param string $carrCurr
579
     *
580
     * @return \SmsaSDK\Methods\addShipmentDelv
581
     */
582
    public function setCarrCurr($carrCurr)
583
    {
584
        $this->carrCurr = $carrCurr;
585
586
        return $this;
587
    }
588
589
    /**
590
     * @return string
591
     */
592
    public function getCodAmt()
593
    {
594
        return $this->codAmt;
595
    }
596
597
    /**
598
     * @param string $codAmt
599
     *
600
     * @return \SmsaSDK\Methods\addShipmentDelv
601
     */
602
    public function setCodAmt($codAmt)
603
    {
604
        $this->codAmt = $codAmt;
605
606
        return $this;
607
    }
608
609
    /**
610
     * @return string
611
     */
612
    public function getWeight()
613
    {
614
        return $this->weight;
615
    }
616
617
    /**
618
     * @param string $weight
619
     *
620
     * @return \SmsaSDK\Methods\addShipmentDelv
621
     */
622
    public function setWeight($weight)
623
    {
624
        $this->weight = $weight;
625
626
        return $this;
627
    }
628
629
    /**
630
     * @return string
631
     */
632
    public function getCustVal()
633
    {
634
        return $this->custVal;
635
    }
636
637
    /**
638
     * @param string $custVal
639
     *
640
     * @return \SmsaSDK\Methods\addShipmentDelv
641
     */
642
    public function setCustVal($custVal)
643
    {
644
        $this->custVal = $custVal;
645
646
        return $this;
647
    }
648
649
    /**
650
     * @return string
651
     */
652
    public function getCustCurr()
653
    {
654
        return $this->custCurr;
655
    }
656
657
    /**
658
     * @param string $custCurr
659
     *
660
     * @return \SmsaSDK\Methods\addShipmentDelv
661
     */
662
    public function setCustCurr($custCurr)
663
    {
664
        $this->custCurr = $custCurr;
665
666
        return $this;
667
    }
668
669
    /**
670
     * @return string
671
     */
672
    public function getInsrAmt()
673
    {
674
        return $this->insrAmt;
675
    }
676
677
    /**
678
     * @param string $insrAmt
679
     *
680
     * @return \SmsaSDK\Methods\addShipmentDelv
681
     */
682
    public function setInsrAmt($insrAmt)
683
    {
684
        $this->insrAmt = $insrAmt;
685
686
        return $this;
687
    }
688
689
    /**
690
     * @return string
691
     */
692
    public function getInsrCurr()
693
    {
694
        return $this->insrCurr;
695
    }
696
697
    /**
698
     * @param string $insrCurr
699
     *
700
     * @return \SmsaSDK\Methods\addShipmentDelv
701
     */
702
    public function setInsrCurr($insrCurr)
703
    {
704
        $this->insrCurr = $insrCurr;
705
706
        return $this;
707
    }
708
709
    /**
710
     * @return string
711
     */
712
    public function getItemDesc()
713
    {
714
        return $this->itemDesc;
715
    }
716
717
    /**
718
     * @param string $itemDesc
719
     *
720
     * @return \SmsaSDK\Methods\addShipmentDelv
721
     */
722
    public function setItemDesc($itemDesc)
723
    {
724
        $this->itemDesc = $itemDesc;
725
726
        return $this;
727
    }
728
729
    /**
730
     * @return string
731
     */
732
    public function getPrefDelvDate()
733
    {
734
        return $this->prefDelvDate;
735
    }
736
737
    /**
738
     * @param string $prefDelvDate
739
     *
740
     * @return \SmsaSDK\Methods\addShipmentDelv
741
     */
742
    public function setPrefDelvDate($prefDelvDate)
743
    {
744
        $this->prefDelvDate = $prefDelvDate;
745
746
        return $this;
747
    }
748
749
    /**
750
     * @return string
751
     */
752
    public function getGpsPoints()
753
    {
754
        return $this->gpsPoints;
755
    }
756
757
    /**
758
     * @param string $gpsPoints
759
     *
760
     * @return \SmsaSDK\Methods\addShipmentDelv
761
     */
762
    public function setGpsPoints($gpsPoints)
763
    {
764
        $this->gpsPoints = $gpsPoints;
765
766
        return $this;
767
    }
768
}
769