SaveReservationWithPaypalProcessedRBOBackToBack   D
last analyzed

Complexity

Total Complexity 113

Size/Duplication

Total Lines 1375
Duplicated Lines 100 %

Coupling/Cohesion

Components 2
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 113
lcom 2
cbo 0
dl 1375
loc 1375
ccs 0
cts 559
cp 0
rs 4.4102
c 0
b 0
f 0

109 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 57 57 1
A getIntGUID() 4 4 1
A setIntGUID() 5 5 1
A getStrISOLanguage() 4 4 1
A setStrISOLanguage() 5 5 1
A getStrFirstName() 4 4 1
A setStrFirstName() 5 5 1
A getStrLastName() 4 4 1
A setStrLastName() 5 5 1
A getStrCompany() 4 4 1
A setStrCompany() 5 5 1
A getStrAddress1() 4 4 1
A setStrAddress1() 5 5 1
A getStrAddress2() 4 4 1
A setStrAddress2() 5 5 1
A getStrCity() 4 4 1
A setStrCity() 5 5 1
A getStrState() 4 4 1
A setStrState() 5 5 1
A getStrCountry() 4 4 1
A setStrCountry() 5 5 1
A getStrZip() 4 4 1
A setStrZip() 5 5 1
A getStrPhone() 4 4 1
A setStrPhone() 5 5 1
A getStrEmail() 4 4 1
A setStrEmail() 5 5 1
A getStrPaypalTransactionID() 4 4 1
A setStrPaypalTransactionID() 5 5 1
A getStrReference() 4 4 1
A setStrReference() 5 5 1
A getDtArrivalDate() 12 12 3
A setDtArrivalDate() 5 5 1
A getDtDepartureDate() 12 12 3
A setDtDepartureDate() 5 5 1
A getIntGuestCount() 4 4 1
A setIntGuestCount() 5 5 1
A getStrChildren() 4 4 1
A setStrChildren() 5 5 1
A getIntRateID() 4 4 1
A setIntRateID() 5 5 1
A getIntRoomTypeID() 4 4 1
A setIntRoomTypeID() 5 5 1
A getIntPromoPushID() 4 4 1
A setIntPromoPushID() 5 5 1
A getIntPromoCodeID() 4 4 1
A setIntPromoCodeID() 5 5 1
A getStrAttributes() 4 4 1
A setStrAttributes() 5 5 1
A getStrLocations() 4 4 1
A setStrLocations() 5 5 1
A getStrSpecialRequests() 4 4 1
A setStrSpecialRequests() 5 5 1
A getStrActivityStructure() 4 4 1
A setStrActivityStructure() 5 5 1
A getIntRoomQty() 4 4 1
A setIntRoomQty() 5 5 1
A getDstElements() 4 4 1
A setDstElements() 5 5 1
A getIntTANo() 4 4 1
A setIntTANo() 5 5 1
A getStrIATANo() 4 4 1
A setStrIATANo() 5 5 1
A getIntMemNo() 4 4 1
A setIntMemNo() 5 5 1
A getDstGolfPackageItems() 4 4 1
A setDstGolfPackageItems() 5 5 1
A getIntCondoOwnerId() 4 4 1
A setIntCondoOwnerId() 5 5 1
A getIntRoomId() 4 4 1
A setIntRoomId() 5 5 1
A getIntBookingCondoType() 4 4 1
A setIntBookingCondoType() 5 5 1
A getIsInsuranceAccepted() 4 4 1
A setIsInsuranceAccepted() 5 5 1
A getIntBuildingID() 4 4 1
A setIntBuildingID() 5 5 1
A getReservationAmount() 4 4 1
A setReservationAmount() 5 5 1
A getELMMarketingSource() 4 4 1
A setELMMarketingSource() 5 5 1
A getDayOfBirth() 4 4 1
A setDayOfBirth() 5 5 1
A getMonthOfBirth() 4 4 1
A setMonthOfBirth() 5 5 1
A getYearOfBirth() 4 4 1
A setYearOfBirth() 5 5 1
A getStrComments() 4 4 1
A setStrComments() 5 5 1
A getIsPaidByFOO() 4 4 1
A setIsPaidByFOO() 5 5 1
A getStrListSpecialOffertApplicable() 4 4 1
A setStrListSpecialOffertApplicable() 5 5 1
A getDsDailyManualRates() 4 4 1
A setDsDailyManualRates() 5 5 1
A getIsRBO() 4 4 1
A setIsRBO() 5 5 1
A getID_Member() 4 4 1
A setID_Member() 5 5 1
A getBackToBackMode() 4 4 1
A setBackToBackMode() 5 5 1
A getIsApplySpecialOffers() 4 4 1
A setIsApplySpecialOffers() 5 5 1
A getIntBusinessSourceID() 4 4 1
A setIntBusinessSourceID() 5 5 1
A getDstServicesChargesALaCarte() 4 4 1
A setDstServicesChargesALaCarte() 5 5 1
A getIntSuiteConfigurationID() 4 4 1
A setIntSuiteConfigurationID() 5 5 1

How to fix   Duplicated Code    Complexity   

Duplicated Code

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 Class

 Tip:   Before tackling complexity, make sure that you eliminate any duplication first. This often can reduce the size of classes significantly.

Complex classes like SaveReservationWithPaypalProcessedRBOBackToBack 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 SaveReservationWithPaypalProcessedRBOBackToBack, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class SaveReservationWithPaypalProcessedRBOBackToBack
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

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.

Loading history...
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 string $strPaypalTransactionID
75
     */
76
    protected $strPaypalTransactionID = null;
77
78
    /**
79
     * @var string $strReference
80
     */
81
    protected $strReference = null;
82
83
    /**
84
     * @var \DateTime $dtArrivalDate
85
     */
86
    protected $dtArrivalDate = null;
87
88
    /**
89
     * @var \DateTime $dtDepartureDate
90
     */
91
    protected $dtDepartureDate = null;
92
93
    /**
94
     * @var int $intGuestCount
95
     */
96
    protected $intGuestCount = null;
97
98
    /**
99
     * @var string $strChildren
100
     */
101
    protected $strChildren = null;
102
103
    /**
104
     * @var int $intRateID
105
     */
106
    protected $intRateID = null;
107
108
    /**
109
     * @var int $intRoomTypeID
110
     */
111
    protected $intRoomTypeID = null;
112
113
    /**
114
     * @var int $intPromoPushID
115
     */
116
    protected $intPromoPushID = null;
117
118
    /**
119
     * @var int $intPromoCodeID
120
     */
121
    protected $intPromoCodeID = null;
122
123
    /**
124
     * @var string $strAttributes
125
     */
126
    protected $strAttributes = null;
127
128
    /**
129
     * @var string $strLocations
130
     */
131
    protected $strLocations = null;
132
133
    /**
134
     * @var string $strSpecialRequests
135
     */
136
    protected $strSpecialRequests = null;
137
138
    /**
139
     * @var string $strActivityStructure
140
     */
141
    protected $strActivityStructure = null;
142
143
    /**
144
     * @var int $intRoomQty
145
     */
146
    protected $intRoomQty = null;
147
148
    /**
149
     * @var dstElements $dstElements
150
     */
151
    protected $dstElements = null;
152
153
    /**
154
     * @var int $intTANo
155
     */
156
    protected $intTANo = null;
157
158
    /**
159
     * @var string $strIATANo
160
     */
161
    protected $strIATANo = 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 boolean $IsInsuranceAccepted
190
     */
191
    protected $IsInsuranceAccepted = null;
192
193
    /**
194
     * @var int $intBuildingID
195
     */
196
    protected $intBuildingID = null;
197
198
    /**
199
     * @var float $ReservationAmount
200
     */
201
    protected $ReservationAmount = null;
202
203
    /**
204
     * @var string $ELMMarketingSource
205
     */
206
    protected $ELMMarketingSource = null;
207
208
    /**
209
     * @var string $DayOfBirth
210
     */
211
    protected $DayOfBirth = null;
212
213
    /**
214
     * @var string $MonthOfBirth
215
     */
216
    protected $MonthOfBirth = null;
217
218
    /**
219
     * @var string $YearOfBirth
220
     */
221
    protected $YearOfBirth = null;
222
223
    /**
224
     * @var string $strComments
225
     */
226
    protected $strComments = null;
227
228
    /**
229
     * @var boolean $IsPaidByFOO
230
     */
231
    protected $IsPaidByFOO = null;
232
233
    /**
234
     * @var string $StrListSpecialOffertApplicable
235
     */
236
    protected $StrListSpecialOffertApplicable = null;
237
238
    /**
239
     * @var dsDailyManualRates $dsDailyManualRates
240
     */
241
    protected $dsDailyManualRates = null;
242
243
    /**
244
     * @var boolean $IsRBO
245
     */
246
    protected $IsRBO = null;
247
248
    /**
249
     * @var int $ID_Member
250
     */
251
    protected $ID_Member = null;
252
253
    /**
254
     * @var IAB2BMode $BackToBackMode
255
     */
256
    protected $BackToBackMode = null;
257
258
    /**
259
     * @var boolean $IsApplySpecialOffers
260
     */
261
    protected $IsApplySpecialOffers = null;
262
263
    /**
264
     * @var int $intBusinessSourceID
265
     */
266
    protected $intBusinessSourceID = null;
267
268
    /**
269
     * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte
270
     */
271
    protected $dstServicesChargesALaCarte = null;
272
273
    /**
274
     * @var int $intSuiteConfigurationID
275
     */
276
    protected $intSuiteConfigurationID = null;
277
278
    /**
279
     * @param int $intGUID
280
     * @param string $strISOLanguage
281
     * @param string $strFirstName
282
     * @param string $strLastName
283
     * @param string $strCompany
284
     * @param string $strAddress1
285
     * @param string $strAddress2
286
     * @param string $strCity
287
     * @param string $strState
288
     * @param string $strCountry
289
     * @param string $strZip
290
     * @param string $strPhone
291
     * @param string $strEmail
292
     * @param string $strPaypalTransactionID
293
     * @param string $strReference
294
     * @param \DateTime $dtArrivalDate
295
     * @param \DateTime $dtDepartureDate
296
     * @param int $intGuestCount
297
     * @param string $strChildren
298
     * @param int $intRateID
299
     * @param int $intRoomTypeID
300
     * @param int $intPromoPushID
301
     * @param int $intPromoCodeID
302
     * @param string $strAttributes
303
     * @param string $strLocations
304
     * @param string $strSpecialRequests
305
     * @param string $strActivityStructure
306
     * @param int $intRoomQty
307
     * @param dstElements $dstElements
308
     * @param int $intTANo
309
     * @param string $strIATANo
310
     * @param int $intMemNo
311
     * @param dstGolfPackageItems $dstGolfPackageItems
312
     * @param int $intCondoOwnerId
313
     * @param int $intRoomId
314
     * @param int $intBookingCondoType
315
     * @param boolean $IsInsuranceAccepted
316
     * @param int $intBuildingID
317
     * @param float $ReservationAmount
318
     * @param string $ELMMarketingSource
319
     * @param string $DayOfBirth
320
     * @param string $MonthOfBirth
321
     * @param string $YearOfBirth
322
     * @param string $strComments
323
     * @param boolean $IsPaidByFOO
324
     * @param string $StrListSpecialOffertApplicable
325
     * @param dsDailyManualRates $dsDailyManualRates
326
     * @param boolean $IsRBO
327
     * @param int $ID_Member
328
     * @param IAB2BMode $BackToBackMode
329
     * @param boolean $IsApplySpecialOffers
330
     * @param int $intBusinessSourceID
331
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
332
     * @param int $intSuiteConfigurationID
333
     */
334
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $strPaypalTransactionID, $strReference, \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, $intSuiteConfigurationID)
335
    {
336
        $this->intGUID = $intGUID;
337
        $this->strISOLanguage = $strISOLanguage;
338
        $this->strFirstName = $strFirstName;
339
        $this->strLastName = $strLastName;
340
        $this->strCompany = $strCompany;
341
        $this->strAddress1 = $strAddress1;
342
        $this->strAddress2 = $strAddress2;
343
        $this->strCity = $strCity;
344
        $this->strState = $strState;
345
        $this->strCountry = $strCountry;
346
        $this->strZip = $strZip;
347
        $this->strPhone = $strPhone;
348
        $this->strEmail = $strEmail;
349
        $this->strPaypalTransactionID = $strPaypalTransactionID;
350
        $this->strReference = $strReference;
351
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtArrivalDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
352
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtDepartureDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtDepartureDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
353
        $this->intGuestCount = $intGuestCount;
354
        $this->strChildren = $strChildren;
355
        $this->intRateID = $intRateID;
356
        $this->intRoomTypeID = $intRoomTypeID;
357
        $this->intPromoPushID = $intPromoPushID;
358
        $this->intPromoCodeID = $intPromoCodeID;
359
        $this->strAttributes = $strAttributes;
360
        $this->strLocations = $strLocations;
361
        $this->strSpecialRequests = $strSpecialRequests;
362
        $this->strActivityStructure = $strActivityStructure;
363
        $this->intRoomQty = $intRoomQty;
364
        $this->dstElements = $dstElements;
365
        $this->intTANo = $intTANo;
366
        $this->strIATANo = $strIATANo;
367
        $this->intMemNo = $intMemNo;
368
        $this->dstGolfPackageItems = $dstGolfPackageItems;
369
        $this->intCondoOwnerId = $intCondoOwnerId;
370
        $this->intRoomId = $intRoomId;
371
        $this->intBookingCondoType = $intBookingCondoType;
372
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
373
        $this->intBuildingID = $intBuildingID;
374
        $this->ReservationAmount = $ReservationAmount;
375
        $this->ELMMarketingSource = $ELMMarketingSource;
376
        $this->DayOfBirth = $DayOfBirth;
377
        $this->MonthOfBirth = $MonthOfBirth;
378
        $this->YearOfBirth = $YearOfBirth;
379
        $this->strComments = $strComments;
380
        $this->IsPaidByFOO = $IsPaidByFOO;
381
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
382
        $this->dsDailyManualRates = $dsDailyManualRates;
383
        $this->IsRBO = $IsRBO;
384
        $this->ID_Member = $ID_Member;
385
        $this->BackToBackMode = $BackToBackMode;
386
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
387
        $this->intBusinessSourceID = $intBusinessSourceID;
388
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
389
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
390
    }
391
392
    /**
393
     * @return int
394
     */
395
    public function getIntGUID()
396
    {
397
        return $this->intGUID;
398
    }
399
400
    /**
401
     * @param int $intGUID
402
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
403
     */
404
    public function setIntGUID($intGUID)
405
    {
406
        $this->intGUID = $intGUID;
407
        return $this;
408
    }
409
410
    /**
411
     * @return string
412
     */
413
    public function getStrISOLanguage()
414
    {
415
        return $this->strISOLanguage;
416
    }
417
418
    /**
419
     * @param string $strISOLanguage
420
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
421
     */
422
    public function setStrISOLanguage($strISOLanguage)
423
    {
424
        $this->strISOLanguage = $strISOLanguage;
425
        return $this;
426
    }
427
428
    /**
429
     * @return string
430
     */
431
    public function getStrFirstName()
432
    {
433
        return $this->strFirstName;
434
    }
435
436
    /**
437
     * @param string $strFirstName
438
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
439
     */
440
    public function setStrFirstName($strFirstName)
441
    {
442
        $this->strFirstName = $strFirstName;
443
        return $this;
444
    }
445
446
    /**
447
     * @return string
448
     */
449
    public function getStrLastName()
450
    {
451
        return $this->strLastName;
452
    }
453
454
    /**
455
     * @param string $strLastName
456
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
457
     */
458
    public function setStrLastName($strLastName)
459
    {
460
        $this->strLastName = $strLastName;
461
        return $this;
462
    }
463
464
    /**
465
     * @return string
466
     */
467
    public function getStrCompany()
468
    {
469
        return $this->strCompany;
470
    }
471
472
    /**
473
     * @param string $strCompany
474
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
475
     */
476
    public function setStrCompany($strCompany)
477
    {
478
        $this->strCompany = $strCompany;
479
        return $this;
480
    }
481
482
    /**
483
     * @return string
484
     */
485
    public function getStrAddress1()
486
    {
487
        return $this->strAddress1;
488
    }
489
490
    /**
491
     * @param string $strAddress1
492
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
493
     */
494
    public function setStrAddress1($strAddress1)
495
    {
496
        $this->strAddress1 = $strAddress1;
497
        return $this;
498
    }
499
500
    /**
501
     * @return string
502
     */
503
    public function getStrAddress2()
504
    {
505
        return $this->strAddress2;
506
    }
507
508
    /**
509
     * @param string $strAddress2
510
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
511
     */
512
    public function setStrAddress2($strAddress2)
513
    {
514
        $this->strAddress2 = $strAddress2;
515
        return $this;
516
    }
517
518
    /**
519
     * @return string
520
     */
521
    public function getStrCity()
522
    {
523
        return $this->strCity;
524
    }
525
526
    /**
527
     * @param string $strCity
528
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
529
     */
530
    public function setStrCity($strCity)
531
    {
532
        $this->strCity = $strCity;
533
        return $this;
534
    }
535
536
    /**
537
     * @return string
538
     */
539
    public function getStrState()
540
    {
541
        return $this->strState;
542
    }
543
544
    /**
545
     * @param string $strState
546
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
547
     */
548
    public function setStrState($strState)
549
    {
550
        $this->strState = $strState;
551
        return $this;
552
    }
553
554
    /**
555
     * @return string
556
     */
557
    public function getStrCountry()
558
    {
559
        return $this->strCountry;
560
    }
561
562
    /**
563
     * @param string $strCountry
564
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
565
     */
566
    public function setStrCountry($strCountry)
567
    {
568
        $this->strCountry = $strCountry;
569
        return $this;
570
    }
571
572
    /**
573
     * @return string
574
     */
575
    public function getStrZip()
576
    {
577
        return $this->strZip;
578
    }
579
580
    /**
581
     * @param string $strZip
582
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
583
     */
584
    public function setStrZip($strZip)
585
    {
586
        $this->strZip = $strZip;
587
        return $this;
588
    }
589
590
    /**
591
     * @return string
592
     */
593
    public function getStrPhone()
594
    {
595
        return $this->strPhone;
596
    }
597
598
    /**
599
     * @param string $strPhone
600
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
601
     */
602
    public function setStrPhone($strPhone)
603
    {
604
        $this->strPhone = $strPhone;
605
        return $this;
606
    }
607
608
    /**
609
     * @return string
610
     */
611
    public function getStrEmail()
612
    {
613
        return $this->strEmail;
614
    }
615
616
    /**
617
     * @param string $strEmail
618
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
619
     */
620
    public function setStrEmail($strEmail)
621
    {
622
        $this->strEmail = $strEmail;
623
        return $this;
624
    }
625
626
    /**
627
     * @return string
628
     */
629
    public function getStrPaypalTransactionID()
630
    {
631
        return $this->strPaypalTransactionID;
632
    }
633
634
    /**
635
     * @param string $strPaypalTransactionID
636
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
637
     */
638
    public function setStrPaypalTransactionID($strPaypalTransactionID)
639
    {
640
        $this->strPaypalTransactionID = $strPaypalTransactionID;
641
        return $this;
642
    }
643
644
    /**
645
     * @return string
646
     */
647
    public function getStrReference()
648
    {
649
        return $this->strReference;
650
    }
651
652
    /**
653
     * @param string $strReference
654
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
655
     */
656
    public function setStrReference($strReference)
657
    {
658
        $this->strReference = $strReference;
659
        return $this;
660
    }
661
662
    /**
663
     * @return \DateTime
664
     */
665
    public function getDtArrivalDate()
666
    {
667
        if ($this->dtArrivalDate == null) {
668
            return null;
669
        } else {
670
            try {
671
                return new \DateTime($this->dtArrivalDate);
672
            } catch (\Exception $e) {
673
                return false;
674
            }
675
        }
676
    }
677
678
    /**
679
     * @param \DateTime $dtArrivalDate
680
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
681
     */
682
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
683
    {
684
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtArrivalDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
685
        return $this;
686
    }
687
688
    /**
689
     * @return \DateTime
690
     */
691
    public function getDtDepartureDate()
692
    {
693
        if ($this->dtDepartureDate == null) {
694
            return null;
695
        } else {
696
            try {
697
                return new \DateTime($this->dtDepartureDate);
698
            } catch (\Exception $e) {
699
                return false;
700
            }
701
        }
702
    }
703
704
    /**
705
     * @param \DateTime $dtDepartureDate
706
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
707
     */
708
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
709
    {
710
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtDepartureDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtDepartureDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
711
        return $this;
712
    }
713
714
    /**
715
     * @return int
716
     */
717
    public function getIntGuestCount()
718
    {
719
        return $this->intGuestCount;
720
    }
721
722
    /**
723
     * @param int $intGuestCount
724
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
725
     */
726
    public function setIntGuestCount($intGuestCount)
727
    {
728
        $this->intGuestCount = $intGuestCount;
729
        return $this;
730
    }
731
732
    /**
733
     * @return string
734
     */
735
    public function getStrChildren()
736
    {
737
        return $this->strChildren;
738
    }
739
740
    /**
741
     * @param string $strChildren
742
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
743
     */
744
    public function setStrChildren($strChildren)
745
    {
746
        $this->strChildren = $strChildren;
747
        return $this;
748
    }
749
750
    /**
751
     * @return int
752
     */
753
    public function getIntRateID()
754
    {
755
        return $this->intRateID;
756
    }
757
758
    /**
759
     * @param int $intRateID
760
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
761
     */
762
    public function setIntRateID($intRateID)
763
    {
764
        $this->intRateID = $intRateID;
765
        return $this;
766
    }
767
768
    /**
769
     * @return int
770
     */
771
    public function getIntRoomTypeID()
772
    {
773
        return $this->intRoomTypeID;
774
    }
775
776
    /**
777
     * @param int $intRoomTypeID
778
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
779
     */
780
    public function setIntRoomTypeID($intRoomTypeID)
781
    {
782
        $this->intRoomTypeID = $intRoomTypeID;
783
        return $this;
784
    }
785
786
    /**
787
     * @return int
788
     */
789
    public function getIntPromoPushID()
790
    {
791
        return $this->intPromoPushID;
792
    }
793
794
    /**
795
     * @param int $intPromoPushID
796
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
797
     */
798
    public function setIntPromoPushID($intPromoPushID)
799
    {
800
        $this->intPromoPushID = $intPromoPushID;
801
        return $this;
802
    }
803
804
    /**
805
     * @return int
806
     */
807
    public function getIntPromoCodeID()
808
    {
809
        return $this->intPromoCodeID;
810
    }
811
812
    /**
813
     * @param int $intPromoCodeID
814
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
815
     */
816
    public function setIntPromoCodeID($intPromoCodeID)
817
    {
818
        $this->intPromoCodeID = $intPromoCodeID;
819
        return $this;
820
    }
821
822
    /**
823
     * @return string
824
     */
825
    public function getStrAttributes()
826
    {
827
        return $this->strAttributes;
828
    }
829
830
    /**
831
     * @param string $strAttributes
832
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
833
     */
834
    public function setStrAttributes($strAttributes)
835
    {
836
        $this->strAttributes = $strAttributes;
837
        return $this;
838
    }
839
840
    /**
841
     * @return string
842
     */
843
    public function getStrLocations()
844
    {
845
        return $this->strLocations;
846
    }
847
848
    /**
849
     * @param string $strLocations
850
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
851
     */
852
    public function setStrLocations($strLocations)
853
    {
854
        $this->strLocations = $strLocations;
855
        return $this;
856
    }
857
858
    /**
859
     * @return string
860
     */
861
    public function getStrSpecialRequests()
862
    {
863
        return $this->strSpecialRequests;
864
    }
865
866
    /**
867
     * @param string $strSpecialRequests
868
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
869
     */
870
    public function setStrSpecialRequests($strSpecialRequests)
871
    {
872
        $this->strSpecialRequests = $strSpecialRequests;
873
        return $this;
874
    }
875
876
    /**
877
     * @return string
878
     */
879
    public function getStrActivityStructure()
880
    {
881
        return $this->strActivityStructure;
882
    }
883
884
    /**
885
     * @param string $strActivityStructure
886
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
887
     */
888
    public function setStrActivityStructure($strActivityStructure)
889
    {
890
        $this->strActivityStructure = $strActivityStructure;
891
        return $this;
892
    }
893
894
    /**
895
     * @return int
896
     */
897
    public function getIntRoomQty()
898
    {
899
        return $this->intRoomQty;
900
    }
901
902
    /**
903
     * @param int $intRoomQty
904
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
905
     */
906
    public function setIntRoomQty($intRoomQty)
907
    {
908
        $this->intRoomQty = $intRoomQty;
909
        return $this;
910
    }
911
912
    /**
913
     * @return dstElements
914
     */
915
    public function getDstElements()
916
    {
917
        return $this->dstElements;
918
    }
919
920
    /**
921
     * @param dstElements $dstElements
922
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
923
     */
924
    public function setDstElements($dstElements)
925
    {
926
        $this->dstElements = $dstElements;
927
        return $this;
928
    }
929
930
    /**
931
     * @return int
932
     */
933
    public function getIntTANo()
934
    {
935
        return $this->intTANo;
936
    }
937
938
    /**
939
     * @param int $intTANo
940
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
941
     */
942
    public function setIntTANo($intTANo)
943
    {
944
        $this->intTANo = $intTANo;
945
        return $this;
946
    }
947
948
    /**
949
     * @return string
950
     */
951
    public function getStrIATANo()
952
    {
953
        return $this->strIATANo;
954
    }
955
956
    /**
957
     * @param string $strIATANo
958
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
959
     */
960
    public function setStrIATANo($strIATANo)
961
    {
962
        $this->strIATANo = $strIATANo;
963
        return $this;
964
    }
965
966
    /**
967
     * @return int
968
     */
969
    public function getIntMemNo()
970
    {
971
        return $this->intMemNo;
972
    }
973
974
    /**
975
     * @param int $intMemNo
976
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
977
     */
978
    public function setIntMemNo($intMemNo)
979
    {
980
        $this->intMemNo = $intMemNo;
981
        return $this;
982
    }
983
984
    /**
985
     * @return dstGolfPackageItems
986
     */
987
    public function getDstGolfPackageItems()
988
    {
989
        return $this->dstGolfPackageItems;
990
    }
991
992
    /**
993
     * @param dstGolfPackageItems $dstGolfPackageItems
994
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
995
     */
996
    public function setDstGolfPackageItems($dstGolfPackageItems)
997
    {
998
        $this->dstGolfPackageItems = $dstGolfPackageItems;
999
        return $this;
1000
    }
1001
1002
    /**
1003
     * @return int
1004
     */
1005
    public function getIntCondoOwnerId()
1006
    {
1007
        return $this->intCondoOwnerId;
1008
    }
1009
1010
    /**
1011
     * @param int $intCondoOwnerId
1012
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1013
     */
1014
    public function setIntCondoOwnerId($intCondoOwnerId)
1015
    {
1016
        $this->intCondoOwnerId = $intCondoOwnerId;
1017
        return $this;
1018
    }
1019
1020
    /**
1021
     * @return int
1022
     */
1023
    public function getIntRoomId()
1024
    {
1025
        return $this->intRoomId;
1026
    }
1027
1028
    /**
1029
     * @param int $intRoomId
1030
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1031
     */
1032
    public function setIntRoomId($intRoomId)
1033
    {
1034
        $this->intRoomId = $intRoomId;
1035
        return $this;
1036
    }
1037
1038
    /**
1039
     * @return int
1040
     */
1041
    public function getIntBookingCondoType()
1042
    {
1043
        return $this->intBookingCondoType;
1044
    }
1045
1046
    /**
1047
     * @param int $intBookingCondoType
1048
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1049
     */
1050
    public function setIntBookingCondoType($intBookingCondoType)
1051
    {
1052
        $this->intBookingCondoType = $intBookingCondoType;
1053
        return $this;
1054
    }
1055
1056
    /**
1057
     * @return boolean
1058
     */
1059
    public function getIsInsuranceAccepted()
1060
    {
1061
        return $this->IsInsuranceAccepted;
1062
    }
1063
1064
    /**
1065
     * @param boolean $IsInsuranceAccepted
1066
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1067
     */
1068
    public function setIsInsuranceAccepted($IsInsuranceAccepted)
1069
    {
1070
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
1071
        return $this;
1072
    }
1073
1074
    /**
1075
     * @return int
1076
     */
1077
    public function getIntBuildingID()
1078
    {
1079
        return $this->intBuildingID;
1080
    }
1081
1082
    /**
1083
     * @param int $intBuildingID
1084
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1085
     */
1086
    public function setIntBuildingID($intBuildingID)
1087
    {
1088
        $this->intBuildingID = $intBuildingID;
1089
        return $this;
1090
    }
1091
1092
    /**
1093
     * @return float
1094
     */
1095
    public function getReservationAmount()
1096
    {
1097
        return $this->ReservationAmount;
1098
    }
1099
1100
    /**
1101
     * @param float $ReservationAmount
1102
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1103
     */
1104
    public function setReservationAmount($ReservationAmount)
1105
    {
1106
        $this->ReservationAmount = $ReservationAmount;
1107
        return $this;
1108
    }
1109
1110
    /**
1111
     * @return string
1112
     */
1113
    public function getELMMarketingSource()
1114
    {
1115
        return $this->ELMMarketingSource;
1116
    }
1117
1118
    /**
1119
     * @param string $ELMMarketingSource
1120
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1121
     */
1122
    public function setELMMarketingSource($ELMMarketingSource)
1123
    {
1124
        $this->ELMMarketingSource = $ELMMarketingSource;
1125
        return $this;
1126
    }
1127
1128
    /**
1129
     * @return string
1130
     */
1131
    public function getDayOfBirth()
1132
    {
1133
        return $this->DayOfBirth;
1134
    }
1135
1136
    /**
1137
     * @param string $DayOfBirth
1138
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1139
     */
1140
    public function setDayOfBirth($DayOfBirth)
1141
    {
1142
        $this->DayOfBirth = $DayOfBirth;
1143
        return $this;
1144
    }
1145
1146
    /**
1147
     * @return string
1148
     */
1149
    public function getMonthOfBirth()
1150
    {
1151
        return $this->MonthOfBirth;
1152
    }
1153
1154
    /**
1155
     * @param string $MonthOfBirth
1156
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1157
     */
1158
    public function setMonthOfBirth($MonthOfBirth)
1159
    {
1160
        $this->MonthOfBirth = $MonthOfBirth;
1161
        return $this;
1162
    }
1163
1164
    /**
1165
     * @return string
1166
     */
1167
    public function getYearOfBirth()
1168
    {
1169
        return $this->YearOfBirth;
1170
    }
1171
1172
    /**
1173
     * @param string $YearOfBirth
1174
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1175
     */
1176
    public function setYearOfBirth($YearOfBirth)
1177
    {
1178
        $this->YearOfBirth = $YearOfBirth;
1179
        return $this;
1180
    }
1181
1182
    /**
1183
     * @return string
1184
     */
1185
    public function getStrComments()
1186
    {
1187
        return $this->strComments;
1188
    }
1189
1190
    /**
1191
     * @param string $strComments
1192
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1193
     */
1194
    public function setStrComments($strComments)
1195
    {
1196
        $this->strComments = $strComments;
1197
        return $this;
1198
    }
1199
1200
    /**
1201
     * @return boolean
1202
     */
1203
    public function getIsPaidByFOO()
1204
    {
1205
        return $this->IsPaidByFOO;
1206
    }
1207
1208
    /**
1209
     * @param boolean $IsPaidByFOO
1210
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1211
     */
1212
    public function setIsPaidByFOO($IsPaidByFOO)
1213
    {
1214
        $this->IsPaidByFOO = $IsPaidByFOO;
1215
        return $this;
1216
    }
1217
1218
    /**
1219
     * @return string
1220
     */
1221
    public function getStrListSpecialOffertApplicable()
1222
    {
1223
        return $this->StrListSpecialOffertApplicable;
1224
    }
1225
1226
    /**
1227
     * @param string $StrListSpecialOffertApplicable
1228
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1229
     */
1230
    public function setStrListSpecialOffertApplicable($StrListSpecialOffertApplicable)
1231
    {
1232
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
1233
        return $this;
1234
    }
1235
1236
    /**
1237
     * @return dsDailyManualRates
1238
     */
1239
    public function getDsDailyManualRates()
1240
    {
1241
        return $this->dsDailyManualRates;
1242
    }
1243
1244
    /**
1245
     * @param dsDailyManualRates $dsDailyManualRates
1246
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1247
     */
1248
    public function setDsDailyManualRates($dsDailyManualRates)
1249
    {
1250
        $this->dsDailyManualRates = $dsDailyManualRates;
1251
        return $this;
1252
    }
1253
1254
    /**
1255
     * @return boolean
1256
     */
1257
    public function getIsRBO()
1258
    {
1259
        return $this->IsRBO;
1260
    }
1261
1262
    /**
1263
     * @param boolean $IsRBO
1264
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1265
     */
1266
    public function setIsRBO($IsRBO)
1267
    {
1268
        $this->IsRBO = $IsRBO;
1269
        return $this;
1270
    }
1271
1272
    /**
1273
     * @return int
1274
     */
1275
    public function getID_Member()
1276
    {
1277
        return $this->ID_Member;
1278
    }
1279
1280
    /**
1281
     * @param int $ID_Member
1282
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1283
     */
1284
    public function setID_Member($ID_Member)
1285
    {
1286
        $this->ID_Member = $ID_Member;
1287
        return $this;
1288
    }
1289
1290
    /**
1291
     * @return IAB2BMode
1292
     */
1293
    public function getBackToBackMode()
1294
    {
1295
        return $this->BackToBackMode;
1296
    }
1297
1298
    /**
1299
     * @param IAB2BMode $BackToBackMode
1300
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1301
     */
1302
    public function setBackToBackMode($BackToBackMode)
1303
    {
1304
        $this->BackToBackMode = $BackToBackMode;
1305
        return $this;
1306
    }
1307
1308
    /**
1309
     * @return boolean
1310
     */
1311
    public function getIsApplySpecialOffers()
1312
    {
1313
        return $this->IsApplySpecialOffers;
1314
    }
1315
1316
    /**
1317
     * @param boolean $IsApplySpecialOffers
1318
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1319
     */
1320
    public function setIsApplySpecialOffers($IsApplySpecialOffers)
1321
    {
1322
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
1323
        return $this;
1324
    }
1325
1326
    /**
1327
     * @return int
1328
     */
1329
    public function getIntBusinessSourceID()
1330
    {
1331
        return $this->intBusinessSourceID;
1332
    }
1333
1334
    /**
1335
     * @param int $intBusinessSourceID
1336
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1337
     */
1338
    public function setIntBusinessSourceID($intBusinessSourceID)
1339
    {
1340
        $this->intBusinessSourceID = $intBusinessSourceID;
1341
        return $this;
1342
    }
1343
1344
    /**
1345
     * @return dstServicesChargesALaCarte
1346
     */
1347
    public function getDstServicesChargesALaCarte()
1348
    {
1349
        return $this->dstServicesChargesALaCarte;
1350
    }
1351
1352
    /**
1353
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
1354
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1355
     */
1356
    public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte)
1357
    {
1358
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
1359
        return $this;
1360
    }
1361
1362
    /**
1363
     * @return int
1364
     */
1365
    public function getIntSuiteConfigurationID()
1366
    {
1367
        return $this->intSuiteConfigurationID;
1368
    }
1369
1370
    /**
1371
     * @param int $intSuiteConfigurationID
1372
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedRBOBackToBack
1373
     */
1374
    public function setIntSuiteConfigurationID($intSuiteConfigurationID)
1375
    {
1376
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
1377
        return $this;
1378
    }
1379
}
1380