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 SaveReservationWithECheckProcessedRBOBackToBack 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 SaveReservationWithECheckProcessedRBOBackToBack, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
5 | class SaveReservationWithECheckProcessedRBOBackToBack |
||
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 \DateTime $dtArrivalDate |
||
75 | */ |
||
76 | protected $dtArrivalDate = null; |
||
77 | |||
78 | /** |
||
79 | * @var \DateTime $dtDepartureDate |
||
80 | */ |
||
81 | protected $dtDepartureDate = null; |
||
82 | |||
83 | /** |
||
84 | * @var int $intGuestCount |
||
85 | */ |
||
86 | protected $intGuestCount = null; |
||
87 | |||
88 | /** |
||
89 | * @var string $strChildren |
||
90 | */ |
||
91 | protected $strChildren = null; |
||
92 | |||
93 | /** |
||
94 | * @var int $intRateID |
||
95 | */ |
||
96 | protected $intRateID = null; |
||
97 | |||
98 | /** |
||
99 | * @var int $intRoomTypeID |
||
100 | */ |
||
101 | protected $intRoomTypeID = null; |
||
102 | |||
103 | /** |
||
104 | * @var int $intPromoPushID |
||
105 | */ |
||
106 | protected $intPromoPushID = null; |
||
107 | |||
108 | /** |
||
109 | * @var int $intPromoCodeID |
||
110 | */ |
||
111 | protected $intPromoCodeID = null; |
||
112 | |||
113 | /** |
||
114 | * @var string $strAttributes |
||
115 | */ |
||
116 | protected $strAttributes = null; |
||
117 | |||
118 | /** |
||
119 | * @var string $strLocations |
||
120 | */ |
||
121 | protected $strLocations = null; |
||
122 | |||
123 | /** |
||
124 | * @var string $strSpecialRequests |
||
125 | */ |
||
126 | protected $strSpecialRequests = null; |
||
127 | |||
128 | /** |
||
129 | * @var string $strActivityStructure |
||
130 | */ |
||
131 | protected $strActivityStructure = null; |
||
132 | |||
133 | /** |
||
134 | * @var int $intRoomQty |
||
135 | */ |
||
136 | protected $intRoomQty = null; |
||
137 | |||
138 | /** |
||
139 | * @var dstElements $dstElements |
||
140 | */ |
||
141 | protected $dstElements = null; |
||
142 | |||
143 | /** |
||
144 | * @var int $intTANo |
||
145 | */ |
||
146 | protected $intTANo = null; |
||
147 | |||
148 | /** |
||
149 | * @var string $strIATANo |
||
150 | */ |
||
151 | protected $strIATANo = null; |
||
152 | |||
153 | /** |
||
154 | * @var int $intMemNo |
||
155 | */ |
||
156 | protected $intMemNo = null; |
||
157 | |||
158 | /** |
||
159 | * @var dstGolfPackageItems $dstGolfPackageItems |
||
160 | */ |
||
161 | protected $dstGolfPackageItems = null; |
||
162 | |||
163 | /** |
||
164 | * @var int $intCondoOwnerId |
||
165 | */ |
||
166 | protected $intCondoOwnerId = null; |
||
167 | |||
168 | /** |
||
169 | * @var int $intRoomId |
||
170 | */ |
||
171 | protected $intRoomId = null; |
||
172 | |||
173 | /** |
||
174 | * @var int $intBookingCondoType |
||
175 | */ |
||
176 | protected $intBookingCondoType = null; |
||
177 | |||
178 | /** |
||
179 | * @var boolean $IsInsuranceAccepted |
||
180 | */ |
||
181 | protected $IsInsuranceAccepted = null; |
||
182 | |||
183 | /** |
||
184 | * @var int $intBuildingID |
||
185 | */ |
||
186 | protected $intBuildingID = null; |
||
187 | |||
188 | /** |
||
189 | * @var float $ReservationAmount |
||
190 | */ |
||
191 | protected $ReservationAmount = null; |
||
192 | |||
193 | /** |
||
194 | * @var string $ELMMarketingSource |
||
195 | */ |
||
196 | protected $ELMMarketingSource = null; |
||
197 | |||
198 | /** |
||
199 | * @var string $DayOfBirth |
||
200 | */ |
||
201 | protected $DayOfBirth = null; |
||
202 | |||
203 | /** |
||
204 | * @var string $MonthOfBirth |
||
205 | */ |
||
206 | protected $MonthOfBirth = null; |
||
207 | |||
208 | /** |
||
209 | * @var string $YearOfBirth |
||
210 | */ |
||
211 | protected $YearOfBirth = 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 string $StrListSpecialOffertApplicable |
||
225 | */ |
||
226 | protected $StrListSpecialOffertApplicable = null; |
||
227 | |||
228 | /** |
||
229 | * @var dsDailyManualRates $dsDailyManualRates |
||
230 | */ |
||
231 | protected $dsDailyManualRates = null; |
||
232 | |||
233 | /** |
||
234 | * @var boolean $IsRBO |
||
235 | */ |
||
236 | protected $IsRBO = null; |
||
237 | |||
238 | /** |
||
239 | * @var int $ID_Member |
||
240 | */ |
||
241 | protected $ID_Member = null; |
||
242 | |||
243 | /** |
||
244 | * @var IAB2BMode $BackToBackMode |
||
245 | */ |
||
246 | protected $BackToBackMode = null; |
||
247 | |||
248 | /** |
||
249 | * @var boolean $IsApplySpecialOffers |
||
250 | */ |
||
251 | protected $IsApplySpecialOffers = null; |
||
252 | |||
253 | /** |
||
254 | * @var int $intBusinessSourceID |
||
255 | */ |
||
256 | protected $intBusinessSourceID = null; |
||
257 | |||
258 | /** |
||
259 | * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
260 | */ |
||
261 | protected $dstServicesChargesALaCarte = null; |
||
262 | |||
263 | /** |
||
264 | * @var string $strRootingNo |
||
265 | */ |
||
266 | protected $strRootingNo = null; |
||
267 | |||
268 | /** |
||
269 | * @var string $strBankAccountNo |
||
270 | */ |
||
271 | protected $strBankAccountNo = null; |
||
272 | |||
273 | /** |
||
274 | * @var IQBankAccountType $batCheckingType |
||
275 | */ |
||
276 | protected $batCheckingType = null; |
||
277 | |||
278 | /** |
||
279 | * @var string $strBankName |
||
280 | */ |
||
281 | protected $strBankName = null; |
||
282 | |||
283 | /** |
||
284 | * @var string $strAccountName |
||
285 | */ |
||
286 | protected $strAccountName = null; |
||
287 | |||
288 | /** |
||
289 | * @var string $strCheckNo |
||
290 | */ |
||
291 | protected $strCheckNo = null; |
||
292 | |||
293 | /** |
||
294 | * @var string $strBankInstitutNo |
||
295 | */ |
||
296 | protected $strBankInstitutNo = null; |
||
297 | |||
298 | /** |
||
299 | * @var int $intSuiteConfigurationID |
||
300 | */ |
||
301 | protected $intSuiteConfigurationID = null; |
||
302 | |||
303 | /** |
||
304 | * @param int $intGUID |
||
305 | * @param string $strISOLanguage |
||
306 | * @param string $strFirstName |
||
307 | * @param string $strLastName |
||
308 | * @param string $strCompany |
||
309 | * @param string $strAddress1 |
||
310 | * @param string $strAddress2 |
||
311 | * @param string $strCity |
||
312 | * @param string $strState |
||
313 | * @param string $strCountry |
||
314 | * @param string $strZip |
||
315 | * @param string $strPhone |
||
316 | * @param string $strEmail |
||
317 | * @param \DateTime $dtArrivalDate |
||
318 | * @param \DateTime $dtDepartureDate |
||
319 | * @param int $intGuestCount |
||
320 | * @param string $strChildren |
||
321 | * @param int $intRateID |
||
322 | * @param int $intRoomTypeID |
||
323 | * @param int $intPromoPushID |
||
324 | * @param int $intPromoCodeID |
||
325 | * @param string $strAttributes |
||
326 | * @param string $strLocations |
||
327 | * @param string $strSpecialRequests |
||
328 | * @param string $strActivityStructure |
||
329 | * @param int $intRoomQty |
||
330 | * @param dstElements $dstElements |
||
331 | * @param int $intTANo |
||
332 | * @param string $strIATANo |
||
333 | * @param int $intMemNo |
||
334 | * @param dstGolfPackageItems $dstGolfPackageItems |
||
335 | * @param int $intCondoOwnerId |
||
336 | * @param int $intRoomId |
||
337 | * @param int $intBookingCondoType |
||
338 | * @param boolean $IsInsuranceAccepted |
||
339 | * @param int $intBuildingID |
||
340 | * @param float $ReservationAmount |
||
341 | * @param string $ELMMarketingSource |
||
342 | * @param string $DayOfBirth |
||
343 | * @param string $MonthOfBirth |
||
344 | * @param string $YearOfBirth |
||
345 | * @param string $strComments |
||
346 | * @param boolean $IsPaidByFOO |
||
347 | * @param string $StrListSpecialOffertApplicable |
||
348 | * @param dsDailyManualRates $dsDailyManualRates |
||
349 | * @param boolean $IsRBO |
||
350 | * @param int $ID_Member |
||
351 | * @param IAB2BMode $BackToBackMode |
||
352 | * @param boolean $IsApplySpecialOffers |
||
353 | * @param int $intBusinessSourceID |
||
354 | * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
355 | * @param string $strRootingNo |
||
356 | * @param string $strBankAccountNo |
||
357 | * @param IQBankAccountType $batCheckingType |
||
358 | * @param string $strBankName |
||
359 | * @param string $strAccountName |
||
360 | * @param string $strCheckNo |
||
361 | * @param string $strBankInstitutNo |
||
362 | * @param int $intSuiteConfigurationID |
||
363 | */ |
||
364 | View Code Duplication | public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $strIATANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $IsInsuranceAccepted, $intBuildingID, $ReservationAmount, $ELMMarketingSource, $DayOfBirth, $MonthOfBirth, $YearOfBirth, $strComments, $IsPaidByFOO, $StrListSpecialOffertApplicable, $dsDailyManualRates, $IsRBO, $ID_Member, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $strRootingNo, $strBankAccountNo, $batCheckingType, $strBankName, $strAccountName, $strCheckNo, $strBankInstitutNo, $intSuiteConfigurationID) |
|
426 | |||
427 | /** |
||
428 | * @return int |
||
429 | */ |
||
430 | public function getIntGUID() |
||
434 | |||
435 | /** |
||
436 | * @param int $intGUID |
||
437 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
438 | */ |
||
439 | public function setIntGUID($intGUID) |
||
444 | |||
445 | /** |
||
446 | * @return string |
||
447 | */ |
||
448 | public function getStrISOLanguage() |
||
452 | |||
453 | /** |
||
454 | * @param string $strISOLanguage |
||
455 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
456 | */ |
||
457 | public function setStrISOLanguage($strISOLanguage) |
||
462 | |||
463 | /** |
||
464 | * @return string |
||
465 | */ |
||
466 | public function getStrFirstName() |
||
470 | |||
471 | /** |
||
472 | * @param string $strFirstName |
||
473 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
474 | */ |
||
475 | public function setStrFirstName($strFirstName) |
||
480 | |||
481 | /** |
||
482 | * @return string |
||
483 | */ |
||
484 | public function getStrLastName() |
||
488 | |||
489 | /** |
||
490 | * @param string $strLastName |
||
491 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
492 | */ |
||
493 | public function setStrLastName($strLastName) |
||
498 | |||
499 | /** |
||
500 | * @return string |
||
501 | */ |
||
502 | public function getStrCompany() |
||
506 | |||
507 | /** |
||
508 | * @param string $strCompany |
||
509 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
510 | */ |
||
511 | public function setStrCompany($strCompany) |
||
516 | |||
517 | /** |
||
518 | * @return string |
||
519 | */ |
||
520 | public function getStrAddress1() |
||
524 | |||
525 | /** |
||
526 | * @param string $strAddress1 |
||
527 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
528 | */ |
||
529 | public function setStrAddress1($strAddress1) |
||
534 | |||
535 | /** |
||
536 | * @return string |
||
537 | */ |
||
538 | public function getStrAddress2() |
||
542 | |||
543 | /** |
||
544 | * @param string $strAddress2 |
||
545 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
546 | */ |
||
547 | public function setStrAddress2($strAddress2) |
||
552 | |||
553 | /** |
||
554 | * @return string |
||
555 | */ |
||
556 | public function getStrCity() |
||
560 | |||
561 | /** |
||
562 | * @param string $strCity |
||
563 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
564 | */ |
||
565 | public function setStrCity($strCity) |
||
570 | |||
571 | /** |
||
572 | * @return string |
||
573 | */ |
||
574 | public function getStrState() |
||
578 | |||
579 | /** |
||
580 | * @param string $strState |
||
581 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
582 | */ |
||
583 | public function setStrState($strState) |
||
588 | |||
589 | /** |
||
590 | * @return string |
||
591 | */ |
||
592 | public function getStrCountry() |
||
596 | |||
597 | /** |
||
598 | * @param string $strCountry |
||
599 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
600 | */ |
||
601 | public function setStrCountry($strCountry) |
||
606 | |||
607 | /** |
||
608 | * @return string |
||
609 | */ |
||
610 | public function getStrZip() |
||
614 | |||
615 | /** |
||
616 | * @param string $strZip |
||
617 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
618 | */ |
||
619 | public function setStrZip($strZip) |
||
624 | |||
625 | /** |
||
626 | * @return string |
||
627 | */ |
||
628 | public function getStrPhone() |
||
632 | |||
633 | /** |
||
634 | * @param string $strPhone |
||
635 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
636 | */ |
||
637 | public function setStrPhone($strPhone) |
||
642 | |||
643 | /** |
||
644 | * @return string |
||
645 | */ |
||
646 | public function getStrEmail() |
||
650 | |||
651 | /** |
||
652 | * @param string $strEmail |
||
653 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
654 | */ |
||
655 | public function setStrEmail($strEmail) |
||
660 | |||
661 | /** |
||
662 | * @return \DateTime |
||
663 | */ |
||
664 | public function getDtArrivalDate() |
||
676 | |||
677 | /** |
||
678 | * @param \DateTime $dtArrivalDate |
||
679 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
680 | */ |
||
681 | public function setDtArrivalDate(\DateTime $dtArrivalDate) |
||
686 | |||
687 | /** |
||
688 | * @return \DateTime |
||
689 | */ |
||
690 | public function getDtDepartureDate() |
||
702 | |||
703 | /** |
||
704 | * @param \DateTime $dtDepartureDate |
||
705 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
706 | */ |
||
707 | public function setDtDepartureDate(\DateTime $dtDepartureDate) |
||
712 | |||
713 | /** |
||
714 | * @return int |
||
715 | */ |
||
716 | public function getIntGuestCount() |
||
720 | |||
721 | /** |
||
722 | * @param int $intGuestCount |
||
723 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
724 | */ |
||
725 | public function setIntGuestCount($intGuestCount) |
||
730 | |||
731 | /** |
||
732 | * @return string |
||
733 | */ |
||
734 | public function getStrChildren() |
||
738 | |||
739 | /** |
||
740 | * @param string $strChildren |
||
741 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
742 | */ |
||
743 | public function setStrChildren($strChildren) |
||
748 | |||
749 | /** |
||
750 | * @return int |
||
751 | */ |
||
752 | public function getIntRateID() |
||
756 | |||
757 | /** |
||
758 | * @param int $intRateID |
||
759 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
760 | */ |
||
761 | public function setIntRateID($intRateID) |
||
766 | |||
767 | /** |
||
768 | * @return int |
||
769 | */ |
||
770 | public function getIntRoomTypeID() |
||
774 | |||
775 | /** |
||
776 | * @param int $intRoomTypeID |
||
777 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
778 | */ |
||
779 | public function setIntRoomTypeID($intRoomTypeID) |
||
784 | |||
785 | /** |
||
786 | * @return int |
||
787 | */ |
||
788 | public function getIntPromoPushID() |
||
792 | |||
793 | /** |
||
794 | * @param int $intPromoPushID |
||
795 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
796 | */ |
||
797 | public function setIntPromoPushID($intPromoPushID) |
||
802 | |||
803 | /** |
||
804 | * @return int |
||
805 | */ |
||
806 | public function getIntPromoCodeID() |
||
810 | |||
811 | /** |
||
812 | * @param int $intPromoCodeID |
||
813 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
814 | */ |
||
815 | public function setIntPromoCodeID($intPromoCodeID) |
||
820 | |||
821 | /** |
||
822 | * @return string |
||
823 | */ |
||
824 | public function getStrAttributes() |
||
828 | |||
829 | /** |
||
830 | * @param string $strAttributes |
||
831 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
832 | */ |
||
833 | public function setStrAttributes($strAttributes) |
||
838 | |||
839 | /** |
||
840 | * @return string |
||
841 | */ |
||
842 | public function getStrLocations() |
||
846 | |||
847 | /** |
||
848 | * @param string $strLocations |
||
849 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
850 | */ |
||
851 | public function setStrLocations($strLocations) |
||
856 | |||
857 | /** |
||
858 | * @return string |
||
859 | */ |
||
860 | public function getStrSpecialRequests() |
||
864 | |||
865 | /** |
||
866 | * @param string $strSpecialRequests |
||
867 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
868 | */ |
||
869 | public function setStrSpecialRequests($strSpecialRequests) |
||
874 | |||
875 | /** |
||
876 | * @return string |
||
877 | */ |
||
878 | public function getStrActivityStructure() |
||
882 | |||
883 | /** |
||
884 | * @param string $strActivityStructure |
||
885 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
886 | */ |
||
887 | public function setStrActivityStructure($strActivityStructure) |
||
892 | |||
893 | /** |
||
894 | * @return int |
||
895 | */ |
||
896 | public function getIntRoomQty() |
||
900 | |||
901 | /** |
||
902 | * @param int $intRoomQty |
||
903 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
904 | */ |
||
905 | public function setIntRoomQty($intRoomQty) |
||
910 | |||
911 | /** |
||
912 | * @return dstElements |
||
913 | */ |
||
914 | public function getDstElements() |
||
918 | |||
919 | /** |
||
920 | * @param dstElements $dstElements |
||
921 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
922 | */ |
||
923 | public function setDstElements($dstElements) |
||
928 | |||
929 | /** |
||
930 | * @return int |
||
931 | */ |
||
932 | public function getIntTANo() |
||
936 | |||
937 | /** |
||
938 | * @param int $intTANo |
||
939 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
940 | */ |
||
941 | public function setIntTANo($intTANo) |
||
946 | |||
947 | /** |
||
948 | * @return string |
||
949 | */ |
||
950 | public function getStrIATANo() |
||
954 | |||
955 | /** |
||
956 | * @param string $strIATANo |
||
957 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
958 | */ |
||
959 | public function setStrIATANo($strIATANo) |
||
964 | |||
965 | /** |
||
966 | * @return int |
||
967 | */ |
||
968 | public function getIntMemNo() |
||
972 | |||
973 | /** |
||
974 | * @param int $intMemNo |
||
975 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
976 | */ |
||
977 | public function setIntMemNo($intMemNo) |
||
982 | |||
983 | /** |
||
984 | * @return dstGolfPackageItems |
||
985 | */ |
||
986 | public function getDstGolfPackageItems() |
||
990 | |||
991 | /** |
||
992 | * @param dstGolfPackageItems $dstGolfPackageItems |
||
993 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
994 | */ |
||
995 | public function setDstGolfPackageItems($dstGolfPackageItems) |
||
1000 | |||
1001 | /** |
||
1002 | * @return int |
||
1003 | */ |
||
1004 | public function getIntCondoOwnerId() |
||
1008 | |||
1009 | /** |
||
1010 | * @param int $intCondoOwnerId |
||
1011 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1012 | */ |
||
1013 | public function setIntCondoOwnerId($intCondoOwnerId) |
||
1018 | |||
1019 | /** |
||
1020 | * @return int |
||
1021 | */ |
||
1022 | public function getIntRoomId() |
||
1026 | |||
1027 | /** |
||
1028 | * @param int $intRoomId |
||
1029 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1030 | */ |
||
1031 | public function setIntRoomId($intRoomId) |
||
1036 | |||
1037 | /** |
||
1038 | * @return int |
||
1039 | */ |
||
1040 | public function getIntBookingCondoType() |
||
1044 | |||
1045 | /** |
||
1046 | * @param int $intBookingCondoType |
||
1047 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1048 | */ |
||
1049 | public function setIntBookingCondoType($intBookingCondoType) |
||
1054 | |||
1055 | /** |
||
1056 | * @return boolean |
||
1057 | */ |
||
1058 | public function getIsInsuranceAccepted() |
||
1062 | |||
1063 | /** |
||
1064 | * @param boolean $IsInsuranceAccepted |
||
1065 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1066 | */ |
||
1067 | public function setIsInsuranceAccepted($IsInsuranceAccepted) |
||
1072 | |||
1073 | /** |
||
1074 | * @return int |
||
1075 | */ |
||
1076 | public function getIntBuildingID() |
||
1080 | |||
1081 | /** |
||
1082 | * @param int $intBuildingID |
||
1083 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1084 | */ |
||
1085 | public function setIntBuildingID($intBuildingID) |
||
1090 | |||
1091 | /** |
||
1092 | * @return float |
||
1093 | */ |
||
1094 | public function getReservationAmount() |
||
1098 | |||
1099 | /** |
||
1100 | * @param float $ReservationAmount |
||
1101 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1102 | */ |
||
1103 | public function setReservationAmount($ReservationAmount) |
||
1108 | |||
1109 | /** |
||
1110 | * @return string |
||
1111 | */ |
||
1112 | public function getELMMarketingSource() |
||
1116 | |||
1117 | /** |
||
1118 | * @param string $ELMMarketingSource |
||
1119 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1120 | */ |
||
1121 | public function setELMMarketingSource($ELMMarketingSource) |
||
1126 | |||
1127 | /** |
||
1128 | * @return string |
||
1129 | */ |
||
1130 | public function getDayOfBirth() |
||
1134 | |||
1135 | /** |
||
1136 | * @param string $DayOfBirth |
||
1137 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1138 | */ |
||
1139 | public function setDayOfBirth($DayOfBirth) |
||
1144 | |||
1145 | /** |
||
1146 | * @return string |
||
1147 | */ |
||
1148 | public function getMonthOfBirth() |
||
1152 | |||
1153 | /** |
||
1154 | * @param string $MonthOfBirth |
||
1155 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1156 | */ |
||
1157 | public function setMonthOfBirth($MonthOfBirth) |
||
1162 | |||
1163 | /** |
||
1164 | * @return string |
||
1165 | */ |
||
1166 | public function getYearOfBirth() |
||
1170 | |||
1171 | /** |
||
1172 | * @param string $YearOfBirth |
||
1173 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1174 | */ |
||
1175 | public function setYearOfBirth($YearOfBirth) |
||
1180 | |||
1181 | /** |
||
1182 | * @return string |
||
1183 | */ |
||
1184 | public function getStrComments() |
||
1188 | |||
1189 | /** |
||
1190 | * @param string $strComments |
||
1191 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1192 | */ |
||
1193 | public function setStrComments($strComments) |
||
1198 | |||
1199 | /** |
||
1200 | * @return boolean |
||
1201 | */ |
||
1202 | public function getIsPaidByFOO() |
||
1206 | |||
1207 | /** |
||
1208 | * @param boolean $IsPaidByFOO |
||
1209 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1210 | */ |
||
1211 | public function setIsPaidByFOO($IsPaidByFOO) |
||
1216 | |||
1217 | /** |
||
1218 | * @return string |
||
1219 | */ |
||
1220 | public function getStrListSpecialOffertApplicable() |
||
1224 | |||
1225 | /** |
||
1226 | * @param string $StrListSpecialOffertApplicable |
||
1227 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1228 | */ |
||
1229 | public function setStrListSpecialOffertApplicable($StrListSpecialOffertApplicable) |
||
1234 | |||
1235 | /** |
||
1236 | * @return dsDailyManualRates |
||
1237 | */ |
||
1238 | public function getDsDailyManualRates() |
||
1242 | |||
1243 | /** |
||
1244 | * @param dsDailyManualRates $dsDailyManualRates |
||
1245 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1246 | */ |
||
1247 | public function setDsDailyManualRates($dsDailyManualRates) |
||
1252 | |||
1253 | /** |
||
1254 | * @return boolean |
||
1255 | */ |
||
1256 | public function getIsRBO() |
||
1260 | |||
1261 | /** |
||
1262 | * @param boolean $IsRBO |
||
1263 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1264 | */ |
||
1265 | public function setIsRBO($IsRBO) |
||
1270 | |||
1271 | /** |
||
1272 | * @return int |
||
1273 | */ |
||
1274 | public function getID_Member() |
||
1278 | |||
1279 | /** |
||
1280 | * @param int $ID_Member |
||
1281 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1282 | */ |
||
1283 | public function setID_Member($ID_Member) |
||
1288 | |||
1289 | /** |
||
1290 | * @return IAB2BMode |
||
1291 | */ |
||
1292 | public function getBackToBackMode() |
||
1296 | |||
1297 | /** |
||
1298 | * @param IAB2BMode $BackToBackMode |
||
1299 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1300 | */ |
||
1301 | public function setBackToBackMode($BackToBackMode) |
||
1306 | |||
1307 | /** |
||
1308 | * @return boolean |
||
1309 | */ |
||
1310 | public function getIsApplySpecialOffers() |
||
1314 | |||
1315 | /** |
||
1316 | * @param boolean $IsApplySpecialOffers |
||
1317 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1318 | */ |
||
1319 | public function setIsApplySpecialOffers($IsApplySpecialOffers) |
||
1324 | |||
1325 | /** |
||
1326 | * @return int |
||
1327 | */ |
||
1328 | public function getIntBusinessSourceID() |
||
1332 | |||
1333 | /** |
||
1334 | * @param int $intBusinessSourceID |
||
1335 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1336 | */ |
||
1337 | public function setIntBusinessSourceID($intBusinessSourceID) |
||
1342 | |||
1343 | /** |
||
1344 | * @return dstServicesChargesALaCarte |
||
1345 | */ |
||
1346 | public function getDstServicesChargesALaCarte() |
||
1350 | |||
1351 | /** |
||
1352 | * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte |
||
1353 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1354 | */ |
||
1355 | public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte) |
||
1360 | |||
1361 | /** |
||
1362 | * @return string |
||
1363 | */ |
||
1364 | public function getStrRootingNo() |
||
1368 | |||
1369 | /** |
||
1370 | * @param string $strRootingNo |
||
1371 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1372 | */ |
||
1373 | public function setStrRootingNo($strRootingNo) |
||
1378 | |||
1379 | /** |
||
1380 | * @return string |
||
1381 | */ |
||
1382 | public function getStrBankAccountNo() |
||
1386 | |||
1387 | /** |
||
1388 | * @param string $strBankAccountNo |
||
1389 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1390 | */ |
||
1391 | public function setStrBankAccountNo($strBankAccountNo) |
||
1396 | |||
1397 | /** |
||
1398 | * @return IQBankAccountType |
||
1399 | */ |
||
1400 | public function getBatCheckingType() |
||
1404 | |||
1405 | /** |
||
1406 | * @param IQBankAccountType $batCheckingType |
||
1407 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1408 | */ |
||
1409 | public function setBatCheckingType($batCheckingType) |
||
1414 | |||
1415 | /** |
||
1416 | * @return string |
||
1417 | */ |
||
1418 | public function getStrBankName() |
||
1422 | |||
1423 | /** |
||
1424 | * @param string $strBankName |
||
1425 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1426 | */ |
||
1427 | public function setStrBankName($strBankName) |
||
1432 | |||
1433 | /** |
||
1434 | * @return string |
||
1435 | */ |
||
1436 | public function getStrAccountName() |
||
1440 | |||
1441 | /** |
||
1442 | * @param string $strAccountName |
||
1443 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1444 | */ |
||
1445 | public function setStrAccountName($strAccountName) |
||
1450 | |||
1451 | /** |
||
1452 | * @return string |
||
1453 | */ |
||
1454 | public function getStrCheckNo() |
||
1458 | |||
1459 | /** |
||
1460 | * @param string $strCheckNo |
||
1461 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1462 | */ |
||
1463 | public function setStrCheckNo($strCheckNo) |
||
1468 | |||
1469 | /** |
||
1470 | * @return string |
||
1471 | */ |
||
1472 | public function getStrBankInstitutNo() |
||
1476 | |||
1477 | /** |
||
1478 | * @param string $strBankInstitutNo |
||
1479 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1480 | */ |
||
1481 | public function setStrBankInstitutNo($strBankInstitutNo) |
||
1486 | |||
1487 | /** |
||
1488 | * @return int |
||
1489 | */ |
||
1490 | public function getIntSuiteConfigurationID() |
||
1494 | |||
1495 | /** |
||
1496 | * @param int $intSuiteConfigurationID |
||
1497 | * @return \Gueststream\PMS\IQWare\API\SaveReservationWithECheckProcessedRBOBackToBack |
||
1498 | */ |
||
1499 | public function setIntSuiteConfigurationID($intSuiteConfigurationID) |
||
1504 | } |
||
1505 |
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.