Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like AddShip 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 AddShip, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
20 | View Code Duplication | class AddShip 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 sName |
||
258 | * Meta informations extracted from the WSDL |
||
259 | * - maxOccurs: 1 |
||
260 | * - minOccurs: 0 |
||
261 | * |
||
262 | * @var string |
||
263 | */ |
||
264 | public $sName; |
||
265 | /** |
||
266 | * The sContact |
||
267 | * Meta informations extracted from the WSDL |
||
268 | * - maxOccurs: 1 |
||
269 | * - minOccurs: 0 |
||
270 | * |
||
271 | * @var string |
||
272 | */ |
||
273 | public $sContact; |
||
274 | /** |
||
275 | * The sAddr1 |
||
276 | * Meta informations extracted from the WSDL |
||
277 | * - maxOccurs: 1 |
||
278 | * - minOccurs: 0 |
||
279 | * |
||
280 | * @var string |
||
281 | */ |
||
282 | public $sAddr1; |
||
283 | /** |
||
284 | * The sAddr2 |
||
285 | * Meta informations extracted from the WSDL |
||
286 | * - maxOccurs: 1 |
||
287 | * - minOccurs: 0 |
||
288 | * |
||
289 | * @var string |
||
290 | */ |
||
291 | public $sAddr2; |
||
292 | /** |
||
293 | * The sCity |
||
294 | * Meta informations extracted from the WSDL |
||
295 | * - maxOccurs: 1 |
||
296 | * - minOccurs: 0 |
||
297 | * |
||
298 | * @var string |
||
299 | */ |
||
300 | public $sCity; |
||
301 | /** |
||
302 | * The sPhone |
||
303 | * Meta informations extracted from the WSDL |
||
304 | * - maxOccurs: 1 |
||
305 | * - minOccurs: 0 |
||
306 | * |
||
307 | * @var string |
||
308 | */ |
||
309 | public $sPhone; |
||
310 | /** |
||
311 | * The sCntry |
||
312 | * Meta informations extracted from the WSDL |
||
313 | * - maxOccurs: 1 |
||
314 | * - minOccurs: 0 |
||
315 | * |
||
316 | * @var string |
||
317 | */ |
||
318 | public $sCntry; |
||
319 | /** |
||
320 | * The prefDelvDate |
||
321 | * Meta informations extracted from the WSDL |
||
322 | * - maxOccurs: 1 |
||
323 | * - minOccurs: 0 |
||
324 | * |
||
325 | * @var string |
||
326 | */ |
||
327 | public $prefDelvDate; |
||
328 | /** |
||
329 | * The gpsPoints |
||
330 | * Meta informations extracted from the WSDL |
||
331 | * - maxOccurs: 1 |
||
332 | * - minOccurs: 0 |
||
333 | * |
||
334 | * @var string |
||
335 | */ |
||
336 | public $gpsPoints; |
||
337 | |||
338 | /** |
||
339 | * Constructor method for addShip |
||
340 | * |
||
341 | * @uses AddShip::setPCs() |
||
342 | * @uses AddShip::setPassKey() |
||
343 | * @uses AddShip::setRefNo() |
||
344 | * @uses AddShip::setSentDate() |
||
345 | * @uses AddShip::setIdNo() |
||
346 | * @uses AddShip::setCName() |
||
347 | * @uses AddShip::setCntry() |
||
348 | * @uses AddShip::setCCity() |
||
349 | * @uses AddShip::setCZip() |
||
350 | * @uses AddShip::setCPOBox() |
||
351 | * @uses AddShip::setCMobile() |
||
352 | * @uses AddShip::setCTel1() |
||
353 | * @uses AddShip::setCTel2() |
||
354 | * @uses AddShip::setCAddr1() |
||
355 | * @uses AddShip::setCAddr2() |
||
356 | * @uses AddShip::setShipType() |
||
357 | * @uses AddShip::setCEmail() |
||
358 | * @uses AddShip::setCarrValue() |
||
359 | * @uses AddShip::setCarrCurr() |
||
360 | * @uses AddShip::setCodAmt() |
||
361 | * @uses AddShip::setWeight() |
||
362 | * @uses AddShip::setCustVal() |
||
363 | * @uses AddShip::setCustCurr() |
||
364 | * @uses AddShip::setInsrAmt() |
||
365 | * @uses AddShip::setInsrCurr() |
||
366 | * @uses AddShip::setItemDesc() |
||
367 | * @uses AddShip::setSName() |
||
368 | * @uses AddShip::setSContact() |
||
369 | * @uses AddShip::setSAddr1() |
||
370 | * @uses AddShip::setSAddr2() |
||
371 | * @uses AddShip::setSCity() |
||
372 | * @uses AddShip::setSPhone() |
||
373 | * @uses AddShip::setSCntry() |
||
374 | * @uses AddShip::setPrefDelvDate() |
||
375 | * @uses AddShip::setGpsPoints() |
||
376 | * |
||
377 | * @param int $pCs |
||
378 | * @param string $passKey |
||
379 | * @param string $refNo |
||
380 | * @param string $sentDate |
||
381 | * @param string $idNo |
||
382 | * @param string $cName |
||
383 | * @param string $cntry |
||
384 | * @param string $cCity |
||
385 | * @param string $cZip |
||
386 | * @param string $cPOBox |
||
387 | * @param string $cMobile |
||
388 | * @param string $cTel1 |
||
389 | * @param string $cTel2 |
||
390 | * @param string $cAddr1 |
||
391 | * @param string $cAddr2 |
||
392 | * @param string $shipType |
||
393 | * @param string $cEmail |
||
394 | * @param string $carrValue |
||
395 | * @param string $carrCurr |
||
396 | * @param string $codAmt |
||
397 | * @param string $weight |
||
398 | * @param string $custVal |
||
399 | * @param string $custCurr |
||
400 | * @param string $insrAmt |
||
401 | * @param string $insrCurr |
||
402 | * @param string $itemDesc |
||
403 | * @param string $sName |
||
404 | * @param string $sContact |
||
405 | * @param string $sAddr1 |
||
406 | * @param string $sAddr2 |
||
407 | * @param string $sCity |
||
408 | * @param string $sPhone |
||
409 | * @param string $sCntry |
||
410 | * @param string $prefDelvDate |
||
411 | * @param string $gpsPoints |
||
412 | */ |
||
413 | 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, $sName = null, $sContact = null, $sAddr1 = null, $sAddr2 = null, $sCity = null, $sPhone = null, $sCntry = null, $prefDelvDate = null, $gpsPoints = null) |
||
452 | |||
453 | /** |
||
454 | * Get PCs value |
||
455 | * |
||
456 | * @return int |
||
457 | */ |
||
458 | public function getPCs() |
||
462 | |||
463 | /** |
||
464 | * Set PCs value |
||
465 | * |
||
466 | * @param int $pCs |
||
467 | * |
||
468 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
469 | */ |
||
470 | public function setPCs($pCs = null) |
||
480 | |||
481 | /** |
||
482 | * Get passKey value |
||
483 | * |
||
484 | * @return string|null |
||
485 | */ |
||
486 | public function getPassKey() |
||
490 | |||
491 | /** |
||
492 | * Set passKey value |
||
493 | * |
||
494 | * @param string $passKey |
||
495 | * |
||
496 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
497 | */ |
||
498 | public function setPassKey($passKey = null) |
||
508 | |||
509 | /** |
||
510 | * Get refNo value |
||
511 | * |
||
512 | * @return string|null |
||
513 | */ |
||
514 | public function getRefNo() |
||
518 | |||
519 | /** |
||
520 | * Set refNo value |
||
521 | * |
||
522 | * @param string $refNo |
||
523 | * |
||
524 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
525 | */ |
||
526 | public function setRefNo($refNo = null) |
||
536 | |||
537 | /** |
||
538 | * Get sentDate value |
||
539 | * |
||
540 | * @return string|null |
||
541 | */ |
||
542 | public function getSentDate() |
||
546 | |||
547 | /** |
||
548 | * Set sentDate value |
||
549 | * |
||
550 | * @param string $sentDate |
||
551 | * |
||
552 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
553 | */ |
||
554 | public function setSentDate($sentDate = null) |
||
564 | |||
565 | /** |
||
566 | * Get idNo value |
||
567 | * |
||
568 | * @return string|null |
||
569 | */ |
||
570 | public function getIdNo() |
||
574 | |||
575 | /** |
||
576 | * Set idNo value |
||
577 | * |
||
578 | * @param string $idNo |
||
579 | * |
||
580 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
581 | */ |
||
582 | public function setIdNo($idNo = null) |
||
592 | |||
593 | /** |
||
594 | * Get cName value |
||
595 | * |
||
596 | * @return string|null |
||
597 | */ |
||
598 | public function getCName() |
||
602 | |||
603 | /** |
||
604 | * Set cName value |
||
605 | * |
||
606 | * @param string $cName |
||
607 | * |
||
608 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
609 | */ |
||
610 | public function setCName($cName = null) |
||
620 | |||
621 | /** |
||
622 | * Get cntry value |
||
623 | * |
||
624 | * @return string|null |
||
625 | */ |
||
626 | public function getCntry() |
||
630 | |||
631 | /** |
||
632 | * Set cntry value |
||
633 | * |
||
634 | * @param string $cntry |
||
635 | * |
||
636 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
637 | */ |
||
638 | public function setCntry($cntry = null) |
||
648 | |||
649 | /** |
||
650 | * Get cCity value |
||
651 | * |
||
652 | * @return string|null |
||
653 | */ |
||
654 | public function getCCity() |
||
658 | |||
659 | /** |
||
660 | * Set cCity value |
||
661 | * |
||
662 | * @param string $cCity |
||
663 | * |
||
664 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
665 | */ |
||
666 | public function setCCity($cCity = null) |
||
676 | |||
677 | /** |
||
678 | * Get cZip value |
||
679 | * |
||
680 | * @return string|null |
||
681 | */ |
||
682 | public function getCZip() |
||
686 | |||
687 | /** |
||
688 | * Set cZip value |
||
689 | * |
||
690 | * @param string $cZip |
||
691 | * |
||
692 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
693 | */ |
||
694 | public function setCZip($cZip = null) |
||
704 | |||
705 | /** |
||
706 | * Get cPOBox value |
||
707 | * |
||
708 | * @return string|null |
||
709 | */ |
||
710 | public function getCPOBox() |
||
714 | |||
715 | /** |
||
716 | * Set cPOBox value |
||
717 | * |
||
718 | * @param string $cPOBox |
||
719 | * |
||
720 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
721 | */ |
||
722 | public function setCPOBox($cPOBox = null) |
||
732 | |||
733 | /** |
||
734 | * Get cMobile value |
||
735 | * |
||
736 | * @return string|null |
||
737 | */ |
||
738 | public function getCMobile() |
||
742 | |||
743 | /** |
||
744 | * Set cMobile value |
||
745 | * |
||
746 | * @param string $cMobile |
||
747 | * |
||
748 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
749 | */ |
||
750 | public function setCMobile($cMobile = null) |
||
760 | |||
761 | /** |
||
762 | * Get cTel1 value |
||
763 | * |
||
764 | * @return string|null |
||
765 | */ |
||
766 | public function getCTel1() |
||
770 | |||
771 | /** |
||
772 | * Set cTel1 value |
||
773 | * |
||
774 | * @param string $cTel1 |
||
775 | * |
||
776 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
777 | */ |
||
778 | public function setCTel1($cTel1 = null) |
||
788 | |||
789 | /** |
||
790 | * Get cTel2 value |
||
791 | * |
||
792 | * @return string|null |
||
793 | */ |
||
794 | public function getCTel2() |
||
798 | |||
799 | /** |
||
800 | * Set cTel2 value |
||
801 | * |
||
802 | * @param string $cTel2 |
||
803 | * |
||
804 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
805 | */ |
||
806 | public function setCTel2($cTel2 = null) |
||
816 | |||
817 | /** |
||
818 | * Get cAddr1 value |
||
819 | * |
||
820 | * @return string|null |
||
821 | */ |
||
822 | public function getCAddr1() |
||
826 | |||
827 | /** |
||
828 | * Set cAddr1 value |
||
829 | * |
||
830 | * @param string $cAddr1 |
||
831 | * |
||
832 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
833 | */ |
||
834 | public function setCAddr1($cAddr1 = null) |
||
844 | |||
845 | /** |
||
846 | * Get cAddr2 value |
||
847 | * |
||
848 | * @return string|null |
||
849 | */ |
||
850 | public function getCAddr2() |
||
854 | |||
855 | /** |
||
856 | * Set cAddr2 value |
||
857 | * |
||
858 | * @param string $cAddr2 |
||
859 | * |
||
860 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
861 | */ |
||
862 | public function setCAddr2($cAddr2 = null) |
||
872 | |||
873 | /** |
||
874 | * Get shipType value |
||
875 | * |
||
876 | * @return string|null |
||
877 | */ |
||
878 | public function getShipType() |
||
882 | |||
883 | /** |
||
884 | * Set shipType value |
||
885 | * |
||
886 | * @param string $shipType |
||
887 | * |
||
888 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
889 | */ |
||
890 | public function setShipType($shipType = null) |
||
900 | |||
901 | /** |
||
902 | * Get cEmail value |
||
903 | * |
||
904 | * @return string|null |
||
905 | */ |
||
906 | public function getCEmail() |
||
910 | |||
911 | /** |
||
912 | * Set cEmail value |
||
913 | * |
||
914 | * @param string $cEmail |
||
915 | * |
||
916 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
917 | */ |
||
918 | public function setCEmail($cEmail = null) |
||
928 | |||
929 | /** |
||
930 | * Get carrValue value |
||
931 | * |
||
932 | * @return string|null |
||
933 | */ |
||
934 | public function getCarrValue() |
||
938 | |||
939 | /** |
||
940 | * Set carrValue value |
||
941 | * |
||
942 | * @param string $carrValue |
||
943 | * |
||
944 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
945 | */ |
||
946 | public function setCarrValue($carrValue = null) |
||
956 | |||
957 | /** |
||
958 | * Get carrCurr value |
||
959 | * |
||
960 | * @return string|null |
||
961 | */ |
||
962 | public function getCarrCurr() |
||
966 | |||
967 | /** |
||
968 | * Set carrCurr value |
||
969 | * |
||
970 | * @param string $carrCurr |
||
971 | * |
||
972 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
973 | */ |
||
974 | public function setCarrCurr($carrCurr = null) |
||
984 | |||
985 | /** |
||
986 | * Get codAmt value |
||
987 | * |
||
988 | * @return string|null |
||
989 | */ |
||
990 | public function getCodAmt() |
||
994 | |||
995 | /** |
||
996 | * Set codAmt value |
||
997 | * |
||
998 | * @param string $codAmt |
||
999 | * |
||
1000 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1001 | */ |
||
1002 | public function setCodAmt($codAmt = null) |
||
1012 | |||
1013 | /** |
||
1014 | * Get weight value |
||
1015 | * |
||
1016 | * @return string|null |
||
1017 | */ |
||
1018 | public function getWeight() |
||
1022 | |||
1023 | /** |
||
1024 | * Set weight value |
||
1025 | * |
||
1026 | * @param string $weight |
||
1027 | * |
||
1028 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1029 | */ |
||
1030 | public function setWeight($weight = null) |
||
1040 | |||
1041 | /** |
||
1042 | * Get custVal value |
||
1043 | * |
||
1044 | * @return string|null |
||
1045 | */ |
||
1046 | public function getCustVal() |
||
1050 | |||
1051 | /** |
||
1052 | * Set custVal value |
||
1053 | * |
||
1054 | * @param string $custVal |
||
1055 | * |
||
1056 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1057 | */ |
||
1058 | public function setCustVal($custVal = null) |
||
1068 | |||
1069 | /** |
||
1070 | * Get custCurr value |
||
1071 | * |
||
1072 | * @return string|null |
||
1073 | */ |
||
1074 | public function getCustCurr() |
||
1078 | |||
1079 | /** |
||
1080 | * Set custCurr value |
||
1081 | * |
||
1082 | * @param string $custCurr |
||
1083 | * |
||
1084 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1085 | */ |
||
1086 | public function setCustCurr($custCurr = null) |
||
1096 | |||
1097 | /** |
||
1098 | * Get insrAmt value |
||
1099 | * |
||
1100 | * @return string|null |
||
1101 | */ |
||
1102 | public function getInsrAmt() |
||
1106 | |||
1107 | /** |
||
1108 | * Set insrAmt value |
||
1109 | * |
||
1110 | * @param string $insrAmt |
||
1111 | * |
||
1112 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1113 | */ |
||
1114 | public function setInsrAmt($insrAmt = null) |
||
1124 | |||
1125 | /** |
||
1126 | * Get insrCurr value |
||
1127 | * |
||
1128 | * @return string|null |
||
1129 | */ |
||
1130 | public function getInsrCurr() |
||
1134 | |||
1135 | /** |
||
1136 | * Set insrCurr value |
||
1137 | * |
||
1138 | * @param string $insrCurr |
||
1139 | * |
||
1140 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1141 | */ |
||
1142 | public function setInsrCurr($insrCurr = null) |
||
1152 | |||
1153 | /** |
||
1154 | * Get itemDesc value |
||
1155 | * |
||
1156 | * @return string|null |
||
1157 | */ |
||
1158 | public function getItemDesc() |
||
1162 | |||
1163 | /** |
||
1164 | * Set itemDesc value |
||
1165 | * |
||
1166 | * @param string $itemDesc |
||
1167 | * |
||
1168 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1169 | */ |
||
1170 | public function setItemDesc($itemDesc = null) |
||
1180 | |||
1181 | /** |
||
1182 | * Get sName value |
||
1183 | * |
||
1184 | * @return string|null |
||
1185 | */ |
||
1186 | public function getSName() |
||
1190 | |||
1191 | /** |
||
1192 | * Set sName value |
||
1193 | * |
||
1194 | * @param string $sName |
||
1195 | * |
||
1196 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1197 | */ |
||
1198 | public function setSName($sName = null) |
||
1208 | |||
1209 | /** |
||
1210 | * Get sContact value |
||
1211 | * |
||
1212 | * @return string|null |
||
1213 | */ |
||
1214 | public function getSContact() |
||
1218 | |||
1219 | /** |
||
1220 | * Set sContact value |
||
1221 | * |
||
1222 | * @param string $sContact |
||
1223 | * |
||
1224 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1225 | */ |
||
1226 | public function setSContact($sContact = null) |
||
1236 | |||
1237 | /** |
||
1238 | * Get sAddr1 value |
||
1239 | * |
||
1240 | * @return string|null |
||
1241 | */ |
||
1242 | public function getSAddr1() |
||
1246 | |||
1247 | /** |
||
1248 | * Set sAddr1 value |
||
1249 | * |
||
1250 | * @param string $sAddr1 |
||
1251 | * |
||
1252 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1253 | */ |
||
1254 | public function setSAddr1($sAddr1 = null) |
||
1264 | |||
1265 | /** |
||
1266 | * Get sAddr2 value |
||
1267 | * |
||
1268 | * @return string|null |
||
1269 | */ |
||
1270 | public function getSAddr2() |
||
1274 | |||
1275 | /** |
||
1276 | * Set sAddr2 value |
||
1277 | * |
||
1278 | * @param string $sAddr2 |
||
1279 | * |
||
1280 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1281 | */ |
||
1282 | public function setSAddr2($sAddr2 = null) |
||
1292 | |||
1293 | /** |
||
1294 | * Get sCity value |
||
1295 | * |
||
1296 | * @return string|null |
||
1297 | */ |
||
1298 | public function getSCity() |
||
1302 | |||
1303 | /** |
||
1304 | * Set sCity value |
||
1305 | * |
||
1306 | * @param string $sCity |
||
1307 | * |
||
1308 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1309 | */ |
||
1310 | public function setSCity($sCity = null) |
||
1320 | |||
1321 | /** |
||
1322 | * Get sPhone value |
||
1323 | * |
||
1324 | * @return string|null |
||
1325 | */ |
||
1326 | public function getSPhone() |
||
1330 | |||
1331 | /** |
||
1332 | * Set sPhone value |
||
1333 | * |
||
1334 | * @param string $sPhone |
||
1335 | * |
||
1336 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1337 | */ |
||
1338 | public function setSPhone($sPhone = null) |
||
1348 | |||
1349 | /** |
||
1350 | * Get sCntry value |
||
1351 | * |
||
1352 | * @return string|null |
||
1353 | */ |
||
1354 | public function getSCntry() |
||
1358 | |||
1359 | /** |
||
1360 | * Set sCntry value |
||
1361 | * |
||
1362 | * @param string $sCntry |
||
1363 | * |
||
1364 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1365 | */ |
||
1366 | public function setSCntry($sCntry = null) |
||
1376 | |||
1377 | /** |
||
1378 | * Get prefDelvDate value |
||
1379 | * |
||
1380 | * @return string|null |
||
1381 | */ |
||
1382 | public function getPrefDelvDate() |
||
1386 | |||
1387 | /** |
||
1388 | * Set prefDelvDate value |
||
1389 | * |
||
1390 | * @param string $prefDelvDate |
||
1391 | * |
||
1392 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1393 | */ |
||
1394 | public function setPrefDelvDate($prefDelvDate = null) |
||
1404 | |||
1405 | /** |
||
1406 | * Get gpsPoints value |
||
1407 | * |
||
1408 | * @return string|null |
||
1409 | */ |
||
1410 | public function getGpsPoints() |
||
1414 | |||
1415 | /** |
||
1416 | * Set gpsPoints value |
||
1417 | * |
||
1418 | * @param string $gpsPoints |
||
1419 | * |
||
1420 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1421 | */ |
||
1422 | public function setGpsPoints($gpsPoints = null) |
||
1432 | |||
1433 | /** |
||
1434 | * Method called when an object has been exported with var_export() functions |
||
1435 | * It allows to return an object instantiated with the values |
||
1436 | * |
||
1437 | * @see AbstractStructBase::__set_state() |
||
1438 | * |
||
1439 | * @uses AbstractStructBase::__set_state() |
||
1440 | * |
||
1441 | * @param array $array the exported values |
||
1442 | * |
||
1443 | * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShip |
||
1444 | */ |
||
1445 | public static function __set_state(array $array) |
||
1449 | |||
1450 | /** |
||
1451 | * Method returning the class name |
||
1452 | * |
||
1453 | * @return string __CLASS__ |
||
1454 | */ |
||
1455 | public function __toString() |
||
1459 | } |
||
1460 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.