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 |
||
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) |
||
368 | |||
369 | /** |
||
370 | * Get PCs value |
||
371 | * |
||
372 | * @return int |
||
373 | */ |
||
374 | public function getPCs() |
||
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) |
||
396 | |||
397 | /** |
||
398 | * Get passKey value |
||
399 | * |
||
400 | * @return string|null |
||
401 | */ |
||
402 | public function getPassKey() |
||
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) |
||
424 | |||
425 | /** |
||
426 | * Get refNo value |
||
427 | * |
||
428 | * @return string|null |
||
429 | */ |
||
430 | public function getRefNo() |
||
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) |
||
452 | |||
453 | /** |
||
454 | * Get sentDate value |
||
455 | * |
||
456 | * @return string|null |
||
457 | */ |
||
458 | public function getSentDate() |
||
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) |
||
480 | |||
481 | /** |
||
482 | * Get idNo value |
||
483 | * |
||
484 | * @return string|null |
||
485 | */ |
||
486 | public function getIdNo() |
||
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) |
||
508 | |||
509 | /** |
||
510 | * Get cName value |
||
511 | * |
||
512 | * @return string|null |
||
513 | */ |
||
514 | public function getCName() |
||
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) |
||
536 | |||
537 | /** |
||
538 | * Get cntry value |
||
539 | * |
||
540 | * @return string|null |
||
541 | */ |
||
542 | public function getCntry() |
||
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) |
||
564 | |||
565 | /** |
||
566 | * Get cCity value |
||
567 | * |
||
568 | * @return string|null |
||
569 | */ |
||
570 | public function getCCity() |
||
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) |
||
592 | |||
593 | /** |
||
594 | * Get cZip value |
||
595 | * |
||
596 | * @return string|null |
||
597 | */ |
||
598 | public function getCZip() |
||
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) |
||
620 | |||
621 | /** |
||
622 | * Get cPOBox value |
||
623 | * |
||
624 | * @return string|null |
||
625 | */ |
||
626 | public function getCPOBox() |
||
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) |
||
648 | |||
649 | /** |
||
650 | * Get cMobile value |
||
651 | * |
||
652 | * @return string|null |
||
653 | */ |
||
654 | public function getCMobile() |
||
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) |
||
676 | |||
677 | /** |
||
678 | * Get cTel1 value |
||
679 | * |
||
680 | * @return string|null |
||
681 | */ |
||
682 | public function getCTel1() |
||
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) |
||
704 | |||
705 | /** |
||
706 | * Get cTel2 value |
||
707 | * |
||
708 | * @return string|null |
||
709 | */ |
||
710 | public function getCTel2() |
||
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) |
||
732 | |||
733 | /** |
||
734 | * Get cAddr1 value |
||
735 | * |
||
736 | * @return string|null |
||
737 | */ |
||
738 | public function getCAddr1() |
||
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) |
||
760 | |||
761 | /** |
||
762 | * Get cAddr2 value |
||
763 | * |
||
764 | * @return string|null |
||
765 | */ |
||
766 | public function getCAddr2() |
||
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) |
||
788 | |||
789 | /** |
||
790 | * Get shipType value |
||
791 | * |
||
792 | * @return string|null |
||
793 | */ |
||
794 | public function getShipType() |
||
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) |
||
816 | |||
817 | /** |
||
818 | * Get cEmail value |
||
819 | * |
||
820 | * @return string|null |
||
821 | */ |
||
822 | public function getCEmail() |
||
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) |
||
844 | |||
845 | /** |
||
846 | * Get carrValue value |
||
847 | * |
||
848 | * @return string|null |
||
849 | */ |
||
850 | public function getCarrValue() |
||
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) |
||
872 | |||
873 | /** |
||
874 | * Get carrCurr value |
||
875 | * |
||
876 | * @return string|null |
||
877 | */ |
||
878 | public function getCarrCurr() |
||
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) |
||
900 | |||
901 | /** |
||
902 | * Get codAmt value |
||
903 | * |
||
904 | * @return string|null |
||
905 | */ |
||
906 | public function getCodAmt() |
||
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) |
||
928 | |||
929 | /** |
||
930 | * Get weight value |
||
931 | * |
||
932 | * @return string|null |
||
933 | */ |
||
934 | public function getWeight() |
||
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) |
||
956 | |||
957 | /** |
||
958 | * Get custVal value |
||
959 | * |
||
960 | * @return string|null |
||
961 | */ |
||
962 | public function getCustVal() |
||
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) |
||
984 | |||
985 | /** |
||
986 | * Get custCurr value |
||
987 | * |
||
988 | * @return string|null |
||
989 | */ |
||
990 | public function getCustCurr() |
||
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) |
||
1012 | |||
1013 | /** |
||
1014 | * Get insrAmt value |
||
1015 | * |
||
1016 | * @return string|null |
||
1017 | */ |
||
1018 | public function getInsrAmt() |
||
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) |
||
1040 | |||
1041 | /** |
||
1042 | * Get insrCurr value |
||
1043 | * |
||
1044 | * @return string|null |
||
1045 | */ |
||
1046 | public function getInsrCurr() |
||
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) |
||
1068 | |||
1069 | /** |
||
1070 | * Get itemDesc value |
||
1071 | * |
||
1072 | * @return string|null |
||
1073 | */ |
||
1074 | public function getItemDesc() |
||
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) |
||
1096 | |||
1097 | /** |
||
1098 | * Get prefDelvDate value |
||
1099 | * |
||
1100 | * @return string|null |
||
1101 | */ |
||
1102 | public function getPrefDelvDate() |
||
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) |
||
1124 | |||
1125 | /** |
||
1126 | * Get gpsPoints value |
||
1127 | * |
||
1128 | * @return string|null |
||
1129 | */ |
||
1130 | public function getGpsPoints() |
||
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) |
||
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) |
||
1169 | |||
1170 | /** |
||
1171 | * Method returning the class name |
||
1172 | * |
||
1173 | * @return string __CLASS__ |
||
1174 | */ |
||
1175 | public function __toString() |
||
1179 | } |
||
1180 |
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 theid
property of an instance of theAccount
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.