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 WebRes_SaveReservation 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 WebRes_SaveReservation, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
5 | class WebRes_SaveReservation |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var int $intGUID |
||
10 | */ |
||
11 | protected $intGUID = null; |
||
12 | |||
13 | /** |
||
14 | * @var string $strISOLanguage |
||
15 | */ |
||
16 | protected $strISOLanguage = null; |
||
17 | |||
18 | /** |
||
19 | * @var string $strFirstName |
||
20 | */ |
||
21 | protected $strFirstName = null; |
||
22 | |||
23 | /** |
||
24 | * @var string $strLastName |
||
25 | */ |
||
26 | protected $strLastName = null; |
||
27 | |||
28 | /** |
||
29 | * @var string $strCompany |
||
30 | */ |
||
31 | protected $strCompany = null; |
||
32 | |||
33 | /** |
||
34 | * @var string $strAddress1 |
||
35 | */ |
||
36 | protected $strAddress1 = null; |
||
37 | |||
38 | /** |
||
39 | * @var string $strAddress2 |
||
40 | */ |
||
41 | protected $strAddress2 = null; |
||
42 | |||
43 | /** |
||
44 | * @var string $strCity |
||
45 | */ |
||
46 | protected $strCity = null; |
||
47 | |||
48 | /** |
||
49 | * @var string $strState |
||
50 | */ |
||
51 | protected $strState = null; |
||
52 | |||
53 | /** |
||
54 | * @var string $strCountry |
||
55 | */ |
||
56 | protected $strCountry = null; |
||
57 | |||
58 | /** |
||
59 | * @var string $strZip |
||
60 | */ |
||
61 | protected $strZip = null; |
||
62 | |||
63 | /** |
||
64 | * @var string $strPhone |
||
65 | */ |
||
66 | protected $strPhone = null; |
||
67 | |||
68 | /** |
||
69 | * @var string $strEmail |
||
70 | */ |
||
71 | protected $strEmail = null; |
||
72 | |||
73 | /** |
||
74 | * @var int $intCCType |
||
75 | */ |
||
76 | protected $intCCType = null; |
||
77 | |||
78 | /** |
||
79 | * @var string $strVaultTokenGuid |
||
80 | */ |
||
81 | protected $strVaultTokenGuid = null; |
||
82 | |||
83 | /** |
||
84 | * @var \DateTime $dtCCExp |
||
85 | */ |
||
86 | protected $dtCCExp = null; |
||
87 | |||
88 | /** |
||
89 | * @var \DateTime $dtArrivalDate |
||
90 | */ |
||
91 | protected $dtArrivalDate = null; |
||
92 | |||
93 | /** |
||
94 | * @var \DateTime $dtDepartureDate |
||
95 | */ |
||
96 | protected $dtDepartureDate = null; |
||
97 | |||
98 | /** |
||
99 | * @var int $intGuestCount |
||
100 | */ |
||
101 | protected $intGuestCount = null; |
||
102 | |||
103 | /** |
||
104 | * @var string $strChildren |
||
105 | */ |
||
106 | protected $strChildren = null; |
||
107 | |||
108 | /** |
||
109 | * @var int $intRateID |
||
110 | */ |
||
111 | protected $intRateID = null; |
||
112 | |||
113 | /** |
||
114 | * @var int $intRoomTypeID |
||
115 | */ |
||
116 | protected $intRoomTypeID = null; |
||
117 | |||
118 | /** |
||
119 | * @var int $intPromoPushID |
||
120 | */ |
||
121 | protected $intPromoPushID = null; |
||
122 | |||
123 | /** |
||
124 | * @var int $intPromoCodeID |
||
125 | */ |
||
126 | protected $intPromoCodeID = null; |
||
127 | |||
128 | /** |
||
129 | * @var string $strAttributes |
||
130 | */ |
||
131 | protected $strAttributes = null; |
||
132 | |||
133 | /** |
||
134 | * @var string $strLocations |
||
135 | */ |
||
136 | protected $strLocations = null; |
||
137 | |||
138 | /** |
||
139 | * @var string $strSpecialRequests |
||
140 | */ |
||
141 | protected $strSpecialRequests = null; |
||
142 | |||
143 | /** |
||
144 | * @var string $strActivityStructure |
||
145 | */ |
||
146 | protected $strActivityStructure = null; |
||
147 | |||
148 | /** |
||
149 | * @var int $intRoomQty |
||
150 | */ |
||
151 | protected $intRoomQty = null; |
||
152 | |||
153 | /** |
||
154 | * @var dstElements $dstElements |
||
155 | */ |
||
156 | protected $dstElements = null; |
||
157 | |||
158 | /** |
||
159 | * @var int $intTANo |
||
160 | */ |
||
161 | protected $intTANo = null; |
||
162 | |||
163 | /** |
||
164 | * @var int $intMemNo |
||
165 | */ |
||
166 | protected $intMemNo = null; |
||
167 | |||
168 | /** |
||
169 | * @var dstGolfPackageItems $dstGolfPackageItems |
||
170 | */ |
||
171 | protected $dstGolfPackageItems = null; |
||
172 | |||
173 | /** |
||
174 | * @var int $intCondoOwnerId |
||
175 | */ |
||
176 | protected $intCondoOwnerId = null; |
||
177 | |||
178 | /** |
||
179 | * @var int $intRoomId |
||
180 | */ |
||
181 | protected $intRoomId = null; |
||
182 | |||
183 | /** |
||
184 | * @var int $intBookingCondoType |
||
185 | */ |
||
186 | protected $intBookingCondoType = null; |
||
187 | |||
188 | /** |
||
189 | * @var int $GroupID |
||
190 | */ |
||
191 | protected $GroupID = null; |
||
192 | |||
193 | /** |
||
194 | * @var int $GroupPrivateGridID |
||
195 | */ |
||
196 | protected $GroupPrivateGridID = null; |
||
197 | |||
198 | /** |
||
199 | * @var TManualTypeBooking $ManualType |
||
200 | */ |
||
201 | protected $ManualType = null; |
||
202 | |||
203 | /** |
||
204 | * @var TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus |
||
205 | */ |
||
206 | protected $TvlInsSvcChargeStayStatus = null; |
||
207 | |||
208 | /** |
||
209 | * @var int $ID_Member |
||
210 | */ |
||
211 | protected $ID_Member = null; |
||
212 | |||
213 | /** |
||
214 | * @var string $strComments |
||
215 | */ |
||
216 | protected $strComments = null; |
||
217 | |||
218 | /** |
||
219 | * @var boolean $IsPaidByFOO |
||
220 | */ |
||
221 | protected $IsPaidByFOO = null; |
||
222 | |||
223 | /** |
||
224 | * @var boolean $IsApplySpecialOffers |
||
225 | */ |
||
226 | protected $IsApplySpecialOffers = null; |
||
227 | |||
228 | /** |
||
229 | * @var int $intBusinessSourceID |
||
230 | */ |
||
231 | protected $intBusinessSourceID = null; |
||
232 | |||
233 | /** |
||
234 | * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
235 | */ |
||
236 | protected $dstServicesChargesALaCarte = null; |
||
237 | |||
238 | /** |
||
239 | * @var int $intSuiteConfigurationID |
||
240 | */ |
||
241 | protected $intSuiteConfigurationID = null; |
||
242 | |||
243 | /** |
||
244 | * @param int $intGUID |
||
245 | * @param string $strISOLanguage |
||
246 | * @param string $strFirstName |
||
247 | * @param string $strLastName |
||
248 | * @param string $strCompany |
||
249 | * @param string $strAddress1 |
||
250 | * @param string $strAddress2 |
||
251 | * @param string $strCity |
||
252 | * @param string $strState |
||
253 | * @param string $strCountry |
||
254 | * @param string $strZip |
||
255 | * @param string $strPhone |
||
256 | * @param string $strEmail |
||
257 | * @param int $intCCType |
||
258 | * @param string $strVaultTokenGuid |
||
259 | * @param \DateTime $dtCCExp |
||
260 | * @param \DateTime $dtArrivalDate |
||
261 | * @param \DateTime $dtDepartureDate |
||
262 | * @param int $intGuestCount |
||
263 | * @param string $strChildren |
||
264 | * @param int $intRateID |
||
265 | * @param int $intRoomTypeID |
||
266 | * @param int $intPromoPushID |
||
267 | * @param int $intPromoCodeID |
||
268 | * @param string $strAttributes |
||
269 | * @param string $strLocations |
||
270 | * @param string $strSpecialRequests |
||
271 | * @param string $strActivityStructure |
||
272 | * @param int $intRoomQty |
||
273 | * @param dstElements $dstElements |
||
274 | * @param int $intTANo |
||
275 | * @param int $intMemNo |
||
276 | * @param dstGolfPackageItems $dstGolfPackageItems |
||
277 | * @param int $intCondoOwnerId |
||
278 | * @param int $intRoomId |
||
279 | * @param int $intBookingCondoType |
||
280 | * @param int $GroupID |
||
281 | * @param int $GroupPrivateGridID |
||
282 | * @param TManualTypeBooking $ManualType |
||
283 | * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus |
||
284 | * @param int $ID_Member |
||
285 | * @param string $strComments |
||
286 | * @param boolean $IsPaidByFOO |
||
287 | * @param boolean $IsApplySpecialOffers |
||
288 | * @param int $intBusinessSourceID |
||
289 | * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
290 | * @param int $intSuiteConfigurationID |
||
291 | */ |
||
292 | View Code Duplication | public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strVaultTokenGuid, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $TvlInsSvcChargeStayStatus, $ID_Member, $strComments, $IsPaidByFOO, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID) |
|
342 | |||
343 | /** |
||
344 | * @return int |
||
345 | */ |
||
346 | public function getIntGUID() |
||
350 | |||
351 | /** |
||
352 | * @param int $intGUID |
||
353 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
354 | */ |
||
355 | public function setIntGUID($intGUID) |
||
360 | |||
361 | /** |
||
362 | * @return string |
||
363 | */ |
||
364 | public function getStrISOLanguage() |
||
368 | |||
369 | /** |
||
370 | * @param string $strISOLanguage |
||
371 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
372 | */ |
||
373 | public function setStrISOLanguage($strISOLanguage) |
||
378 | |||
379 | /** |
||
380 | * @return string |
||
381 | */ |
||
382 | public function getStrFirstName() |
||
386 | |||
387 | /** |
||
388 | * @param string $strFirstName |
||
389 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
390 | */ |
||
391 | public function setStrFirstName($strFirstName) |
||
396 | |||
397 | /** |
||
398 | * @return string |
||
399 | */ |
||
400 | public function getStrLastName() |
||
404 | |||
405 | /** |
||
406 | * @param string $strLastName |
||
407 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
408 | */ |
||
409 | public function setStrLastName($strLastName) |
||
414 | |||
415 | /** |
||
416 | * @return string |
||
417 | */ |
||
418 | public function getStrCompany() |
||
422 | |||
423 | /** |
||
424 | * @param string $strCompany |
||
425 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
426 | */ |
||
427 | public function setStrCompany($strCompany) |
||
432 | |||
433 | /** |
||
434 | * @return string |
||
435 | */ |
||
436 | public function getStrAddress1() |
||
440 | |||
441 | /** |
||
442 | * @param string $strAddress1 |
||
443 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
444 | */ |
||
445 | public function setStrAddress1($strAddress1) |
||
450 | |||
451 | /** |
||
452 | * @return string |
||
453 | */ |
||
454 | public function getStrAddress2() |
||
458 | |||
459 | /** |
||
460 | * @param string $strAddress2 |
||
461 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
462 | */ |
||
463 | public function setStrAddress2($strAddress2) |
||
468 | |||
469 | /** |
||
470 | * @return string |
||
471 | */ |
||
472 | public function getStrCity() |
||
476 | |||
477 | /** |
||
478 | * @param string $strCity |
||
479 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
480 | */ |
||
481 | public function setStrCity($strCity) |
||
486 | |||
487 | /** |
||
488 | * @return string |
||
489 | */ |
||
490 | public function getStrState() |
||
494 | |||
495 | /** |
||
496 | * @param string $strState |
||
497 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
498 | */ |
||
499 | public function setStrState($strState) |
||
504 | |||
505 | /** |
||
506 | * @return string |
||
507 | */ |
||
508 | public function getStrCountry() |
||
512 | |||
513 | /** |
||
514 | * @param string $strCountry |
||
515 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
516 | */ |
||
517 | public function setStrCountry($strCountry) |
||
522 | |||
523 | /** |
||
524 | * @return string |
||
525 | */ |
||
526 | public function getStrZip() |
||
530 | |||
531 | /** |
||
532 | * @param string $strZip |
||
533 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
534 | */ |
||
535 | public function setStrZip($strZip) |
||
540 | |||
541 | /** |
||
542 | * @return string |
||
543 | */ |
||
544 | public function getStrPhone() |
||
548 | |||
549 | /** |
||
550 | * @param string $strPhone |
||
551 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
552 | */ |
||
553 | public function setStrPhone($strPhone) |
||
558 | |||
559 | /** |
||
560 | * @return string |
||
561 | */ |
||
562 | public function getStrEmail() |
||
566 | |||
567 | /** |
||
568 | * @param string $strEmail |
||
569 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
570 | */ |
||
571 | public function setStrEmail($strEmail) |
||
576 | |||
577 | /** |
||
578 | * @return int |
||
579 | */ |
||
580 | public function getIntCCType() |
||
584 | |||
585 | /** |
||
586 | * @param int $intCCType |
||
587 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
588 | */ |
||
589 | public function setIntCCType($intCCType) |
||
594 | |||
595 | /** |
||
596 | * @return string |
||
597 | */ |
||
598 | public function getStrVaultTokenGuid() |
||
602 | |||
603 | /** |
||
604 | * @param string $strVaultTokenGuid |
||
605 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
606 | */ |
||
607 | public function setStrVaultTokenGuid($strVaultTokenGuid) |
||
612 | |||
613 | /** |
||
614 | * @return \DateTime |
||
615 | */ |
||
616 | public function getDtCCExp() |
||
628 | |||
629 | /** |
||
630 | * @param \DateTime $dtCCExp |
||
631 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
632 | */ |
||
633 | public function setDtCCExp(\DateTime $dtCCExp) |
||
638 | |||
639 | /** |
||
640 | * @return \DateTime |
||
641 | */ |
||
642 | public function getDtArrivalDate() |
||
654 | |||
655 | /** |
||
656 | * @param \DateTime $dtArrivalDate |
||
657 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
658 | */ |
||
659 | public function setDtArrivalDate(\DateTime $dtArrivalDate) |
||
664 | |||
665 | /** |
||
666 | * @return \DateTime |
||
667 | */ |
||
668 | public function getDtDepartureDate() |
||
680 | |||
681 | /** |
||
682 | * @param \DateTime $dtDepartureDate |
||
683 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
684 | */ |
||
685 | public function setDtDepartureDate(\DateTime $dtDepartureDate) |
||
690 | |||
691 | /** |
||
692 | * @return int |
||
693 | */ |
||
694 | public function getIntGuestCount() |
||
698 | |||
699 | /** |
||
700 | * @param int $intGuestCount |
||
701 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
702 | */ |
||
703 | public function setIntGuestCount($intGuestCount) |
||
708 | |||
709 | /** |
||
710 | * @return string |
||
711 | */ |
||
712 | public function getStrChildren() |
||
716 | |||
717 | /** |
||
718 | * @param string $strChildren |
||
719 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
720 | */ |
||
721 | public function setStrChildren($strChildren) |
||
726 | |||
727 | /** |
||
728 | * @return int |
||
729 | */ |
||
730 | public function getIntRateID() |
||
734 | |||
735 | /** |
||
736 | * @param int $intRateID |
||
737 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
738 | */ |
||
739 | public function setIntRateID($intRateID) |
||
744 | |||
745 | /** |
||
746 | * @return int |
||
747 | */ |
||
748 | public function getIntRoomTypeID() |
||
752 | |||
753 | /** |
||
754 | * @param int $intRoomTypeID |
||
755 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
756 | */ |
||
757 | public function setIntRoomTypeID($intRoomTypeID) |
||
762 | |||
763 | /** |
||
764 | * @return int |
||
765 | */ |
||
766 | public function getIntPromoPushID() |
||
770 | |||
771 | /** |
||
772 | * @param int $intPromoPushID |
||
773 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
774 | */ |
||
775 | public function setIntPromoPushID($intPromoPushID) |
||
780 | |||
781 | /** |
||
782 | * @return int |
||
783 | */ |
||
784 | public function getIntPromoCodeID() |
||
788 | |||
789 | /** |
||
790 | * @param int $intPromoCodeID |
||
791 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
792 | */ |
||
793 | public function setIntPromoCodeID($intPromoCodeID) |
||
798 | |||
799 | /** |
||
800 | * @return string |
||
801 | */ |
||
802 | public function getStrAttributes() |
||
806 | |||
807 | /** |
||
808 | * @param string $strAttributes |
||
809 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
810 | */ |
||
811 | public function setStrAttributes($strAttributes) |
||
816 | |||
817 | /** |
||
818 | * @return string |
||
819 | */ |
||
820 | public function getStrLocations() |
||
824 | |||
825 | /** |
||
826 | * @param string $strLocations |
||
827 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
828 | */ |
||
829 | public function setStrLocations($strLocations) |
||
834 | |||
835 | /** |
||
836 | * @return string |
||
837 | */ |
||
838 | public function getStrSpecialRequests() |
||
842 | |||
843 | /** |
||
844 | * @param string $strSpecialRequests |
||
845 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
846 | */ |
||
847 | public function setStrSpecialRequests($strSpecialRequests) |
||
852 | |||
853 | /** |
||
854 | * @return string |
||
855 | */ |
||
856 | public function getStrActivityStructure() |
||
860 | |||
861 | /** |
||
862 | * @param string $strActivityStructure |
||
863 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
864 | */ |
||
865 | public function setStrActivityStructure($strActivityStructure) |
||
870 | |||
871 | /** |
||
872 | * @return int |
||
873 | */ |
||
874 | public function getIntRoomQty() |
||
878 | |||
879 | /** |
||
880 | * @param int $intRoomQty |
||
881 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
882 | */ |
||
883 | public function setIntRoomQty($intRoomQty) |
||
888 | |||
889 | /** |
||
890 | * @return dstElements |
||
891 | */ |
||
892 | public function getDstElements() |
||
896 | |||
897 | /** |
||
898 | * @param dstElements $dstElements |
||
899 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
900 | */ |
||
901 | public function setDstElements($dstElements) |
||
906 | |||
907 | /** |
||
908 | * @return int |
||
909 | */ |
||
910 | public function getIntTANo() |
||
914 | |||
915 | /** |
||
916 | * @param int $intTANo |
||
917 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
918 | */ |
||
919 | public function setIntTANo($intTANo) |
||
924 | |||
925 | /** |
||
926 | * @return int |
||
927 | */ |
||
928 | public function getIntMemNo() |
||
932 | |||
933 | /** |
||
934 | * @param int $intMemNo |
||
935 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
936 | */ |
||
937 | public function setIntMemNo($intMemNo) |
||
942 | |||
943 | /** |
||
944 | * @return dstGolfPackageItems |
||
945 | */ |
||
946 | public function getDstGolfPackageItems() |
||
950 | |||
951 | /** |
||
952 | * @param dstGolfPackageItems $dstGolfPackageItems |
||
953 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
954 | */ |
||
955 | public function setDstGolfPackageItems($dstGolfPackageItems) |
||
960 | |||
961 | /** |
||
962 | * @return int |
||
963 | */ |
||
964 | public function getIntCondoOwnerId() |
||
968 | |||
969 | /** |
||
970 | * @param int $intCondoOwnerId |
||
971 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
972 | */ |
||
973 | public function setIntCondoOwnerId($intCondoOwnerId) |
||
978 | |||
979 | /** |
||
980 | * @return int |
||
981 | */ |
||
982 | public function getIntRoomId() |
||
986 | |||
987 | /** |
||
988 | * @param int $intRoomId |
||
989 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
990 | */ |
||
991 | public function setIntRoomId($intRoomId) |
||
996 | |||
997 | /** |
||
998 | * @return int |
||
999 | */ |
||
1000 | public function getIntBookingCondoType() |
||
1004 | |||
1005 | /** |
||
1006 | * @param int $intBookingCondoType |
||
1007 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1008 | */ |
||
1009 | public function setIntBookingCondoType($intBookingCondoType) |
||
1014 | |||
1015 | /** |
||
1016 | * @return int |
||
1017 | */ |
||
1018 | public function getGroupID() |
||
1022 | |||
1023 | /** |
||
1024 | * @param int $GroupID |
||
1025 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1026 | */ |
||
1027 | public function setGroupID($GroupID) |
||
1032 | |||
1033 | /** |
||
1034 | * @return int |
||
1035 | */ |
||
1036 | public function getGroupPrivateGridID() |
||
1040 | |||
1041 | /** |
||
1042 | * @param int $GroupPrivateGridID |
||
1043 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1044 | */ |
||
1045 | public function setGroupPrivateGridID($GroupPrivateGridID) |
||
1050 | |||
1051 | /** |
||
1052 | * @return TManualTypeBooking |
||
1053 | */ |
||
1054 | public function getManualType() |
||
1058 | |||
1059 | /** |
||
1060 | * @param TManualTypeBooking $ManualType |
||
1061 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1062 | */ |
||
1063 | public function setManualType($ManualType) |
||
1068 | |||
1069 | /** |
||
1070 | * @return TSBDSvcChargeStayStatus |
||
1071 | */ |
||
1072 | public function getTvlInsSvcChargeStayStatus() |
||
1076 | |||
1077 | /** |
||
1078 | * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus |
||
1079 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1080 | */ |
||
1081 | public function setTvlInsSvcChargeStayStatus($TvlInsSvcChargeStayStatus) |
||
1086 | |||
1087 | /** |
||
1088 | * @return int |
||
1089 | */ |
||
1090 | public function getID_Member() |
||
1094 | |||
1095 | /** |
||
1096 | * @param int $ID_Member |
||
1097 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1098 | */ |
||
1099 | public function setID_Member($ID_Member) |
||
1104 | |||
1105 | /** |
||
1106 | * @return string |
||
1107 | */ |
||
1108 | public function getStrComments() |
||
1112 | |||
1113 | /** |
||
1114 | * @param string $strComments |
||
1115 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1116 | */ |
||
1117 | public function setStrComments($strComments) |
||
1122 | |||
1123 | /** |
||
1124 | * @return boolean |
||
1125 | */ |
||
1126 | public function getIsPaidByFOO() |
||
1130 | |||
1131 | /** |
||
1132 | * @param boolean $IsPaidByFOO |
||
1133 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1134 | */ |
||
1135 | public function setIsPaidByFOO($IsPaidByFOO) |
||
1140 | |||
1141 | /** |
||
1142 | * @return boolean |
||
1143 | */ |
||
1144 | public function getIsApplySpecialOffers() |
||
1148 | |||
1149 | /** |
||
1150 | * @param boolean $IsApplySpecialOffers |
||
1151 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1152 | */ |
||
1153 | public function setIsApplySpecialOffers($IsApplySpecialOffers) |
||
1158 | |||
1159 | /** |
||
1160 | * @return int |
||
1161 | */ |
||
1162 | public function getIntBusinessSourceID() |
||
1166 | |||
1167 | /** |
||
1168 | * @param int $intBusinessSourceID |
||
1169 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1170 | */ |
||
1171 | public function setIntBusinessSourceID($intBusinessSourceID) |
||
1176 | |||
1177 | /** |
||
1178 | * @return dstServicesChargesALaCarte |
||
1179 | */ |
||
1180 | public function getDstServicesChargesALaCarte() |
||
1184 | |||
1185 | /** |
||
1186 | * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
1187 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1188 | */ |
||
1189 | public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte) |
||
1194 | |||
1195 | /** |
||
1196 | * @return int |
||
1197 | */ |
||
1198 | public function getIntSuiteConfigurationID() |
||
1202 | |||
1203 | /** |
||
1204 | * @param int $intSuiteConfigurationID |
||
1205 | * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation |
||
1206 | */ |
||
1207 | public function setIntSuiteConfigurationID($intSuiteConfigurationID) |
||
1212 | } |
||
1213 |
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.