SaveReservationWithPaypalProcessedBackToBack   D
last analyzed

Complexity

Total Complexity 107

Size/Duplication

Total Lines 1300
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 107
lcom 2
cbo 0
dl 0
loc 1300
ccs 0
cts 529
cp 0
rs 4.4102
c 0
b 0
f 0

103 Methods

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

How to fix   Complexity   

Complex Class

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

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class SaveReservationWithPaypalProcessedBackToBack
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 IAB2BMode $BacktoBackMode
235
     */
236
    protected $BacktoBackMode = null;
237
238
    /**
239
     * @var boolean $IsApplySpecialOffers
240
     */
241
    protected $IsApplySpecialOffers = null;
242
243
    /**
244
     * @var string $strListSpecialOffertApplicable
245
     */
246
    protected $strListSpecialOffertApplicable = null;
247
248
    /**
249
     * @var int $intBusinessSourceID
250
     */
251
    protected $intBusinessSourceID = null;
252
253
    /**
254
     * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte
255
     */
256
    protected $dstServicesChargesALaCarte = null;
257
258
    /**
259
     * @var int $intSuiteConfigurationID
260
     */
261
    protected $intSuiteConfigurationID = null;
262
263
    /**
264
     * @param int $intGUID
265
     * @param string $strISOLanguage
266
     * @param string $strFirstName
267
     * @param string $strLastName
268
     * @param string $strCompany
269
     * @param string $strAddress1
270
     * @param string $strAddress2
271
     * @param string $strCity
272
     * @param string $strState
273
     * @param string $strCountry
274
     * @param string $strZip
275
     * @param string $strPhone
276
     * @param string $strEmail
277
     * @param string $strPaypalTransactionID
278
     * @param string $strReference
279
     * @param \DateTime $dtArrivalDate
280
     * @param \DateTime $dtDepartureDate
281
     * @param int $intGuestCount
282
     * @param string $strChildren
283
     * @param int $intRateID
284
     * @param int $intRoomTypeID
285
     * @param int $intPromoPushID
286
     * @param int $intPromoCodeID
287
     * @param string $strAttributes
288
     * @param string $strLocations
289
     * @param string $strSpecialRequests
290
     * @param string $strActivityStructure
291
     * @param int $intRoomQty
292
     * @param dstElements $dstElements
293
     * @param int $intTANo
294
     * @param string $strIATANo
295
     * @param int $intMemNo
296
     * @param dstGolfPackageItems $dstGolfPackageItems
297
     * @param int $intCondoOwnerId
298
     * @param int $intRoomId
299
     * @param int $intBookingCondoType
300
     * @param boolean $IsInsuranceAccepted
301
     * @param int $intBuildingID
302
     * @param float $ReservationAmount
303
     * @param string $ELMMarketingSource
304
     * @param string $DayOfBirth
305
     * @param string $MonthOfBirth
306
     * @param string $YearOfBirth
307
     * @param string $strComments
308
     * @param boolean $IsPaidByFOO
309
     * @param IAB2BMode $BacktoBackMode
310
     * @param boolean $IsApplySpecialOffers
311
     * @param string $strListSpecialOffertApplicable
312
     * @param int $intBusinessSourceID
313
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
314
     * @param int $intSuiteConfigurationID
315
     */
316
    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, $BacktoBackMode, $IsApplySpecialOffers, $strListSpecialOffertApplicable, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
317
    {
318
        $this->intGUID = $intGUID;
319
        $this->strISOLanguage = $strISOLanguage;
320
        $this->strFirstName = $strFirstName;
321
        $this->strLastName = $strLastName;
322
        $this->strCompany = $strCompany;
323
        $this->strAddress1 = $strAddress1;
324
        $this->strAddress2 = $strAddress2;
325
        $this->strCity = $strCity;
326
        $this->strState = $strState;
327
        $this->strCountry = $strCountry;
328
        $this->strZip = $strZip;
329
        $this->strPhone = $strPhone;
330
        $this->strEmail = $strEmail;
331
        $this->strPaypalTransactionID = $strPaypalTransactionID;
332
        $this->strReference = $strReference;
333
        $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...
334
        $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...
335
        $this->intGuestCount = $intGuestCount;
336
        $this->strChildren = $strChildren;
337
        $this->intRateID = $intRateID;
338
        $this->intRoomTypeID = $intRoomTypeID;
339
        $this->intPromoPushID = $intPromoPushID;
340
        $this->intPromoCodeID = $intPromoCodeID;
341
        $this->strAttributes = $strAttributes;
342
        $this->strLocations = $strLocations;
343
        $this->strSpecialRequests = $strSpecialRequests;
344
        $this->strActivityStructure = $strActivityStructure;
345
        $this->intRoomQty = $intRoomQty;
346
        $this->dstElements = $dstElements;
347
        $this->intTANo = $intTANo;
348
        $this->strIATANo = $strIATANo;
349
        $this->intMemNo = $intMemNo;
350
        $this->dstGolfPackageItems = $dstGolfPackageItems;
351
        $this->intCondoOwnerId = $intCondoOwnerId;
352
        $this->intRoomId = $intRoomId;
353
        $this->intBookingCondoType = $intBookingCondoType;
354
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
355
        $this->intBuildingID = $intBuildingID;
356
        $this->ReservationAmount = $ReservationAmount;
357
        $this->ELMMarketingSource = $ELMMarketingSource;
358
        $this->DayOfBirth = $DayOfBirth;
359
        $this->MonthOfBirth = $MonthOfBirth;
360
        $this->YearOfBirth = $YearOfBirth;
361
        $this->strComments = $strComments;
362
        $this->IsPaidByFOO = $IsPaidByFOO;
363
        $this->BacktoBackMode = $BacktoBackMode;
364
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
365
        $this->strListSpecialOffertApplicable = $strListSpecialOffertApplicable;
366
        $this->intBusinessSourceID = $intBusinessSourceID;
367
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
368
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
369
    }
370
371
    /**
372
     * @return int
373
     */
374
    public function getIntGUID()
375
    {
376
        return $this->intGUID;
377
    }
378
379
    /**
380
     * @param int $intGUID
381
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
382
     */
383
    public function setIntGUID($intGUID)
384
    {
385
        $this->intGUID = $intGUID;
386
        return $this;
387
    }
388
389
    /**
390
     * @return string
391
     */
392
    public function getStrISOLanguage()
393
    {
394
        return $this->strISOLanguage;
395
    }
396
397
    /**
398
     * @param string $strISOLanguage
399
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
400
     */
401
    public function setStrISOLanguage($strISOLanguage)
402
    {
403
        $this->strISOLanguage = $strISOLanguage;
404
        return $this;
405
    }
406
407
    /**
408
     * @return string
409
     */
410
    public function getStrFirstName()
411
    {
412
        return $this->strFirstName;
413
    }
414
415
    /**
416
     * @param string $strFirstName
417
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
418
     */
419
    public function setStrFirstName($strFirstName)
420
    {
421
        $this->strFirstName = $strFirstName;
422
        return $this;
423
    }
424
425
    /**
426
     * @return string
427
     */
428
    public function getStrLastName()
429
    {
430
        return $this->strLastName;
431
    }
432
433
    /**
434
     * @param string $strLastName
435
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
436
     */
437
    public function setStrLastName($strLastName)
438
    {
439
        $this->strLastName = $strLastName;
440
        return $this;
441
    }
442
443
    /**
444
     * @return string
445
     */
446
    public function getStrCompany()
447
    {
448
        return $this->strCompany;
449
    }
450
451
    /**
452
     * @param string $strCompany
453
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
454
     */
455
    public function setStrCompany($strCompany)
456
    {
457
        $this->strCompany = $strCompany;
458
        return $this;
459
    }
460
461
    /**
462
     * @return string
463
     */
464
    public function getStrAddress1()
465
    {
466
        return $this->strAddress1;
467
    }
468
469
    /**
470
     * @param string $strAddress1
471
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
472
     */
473
    public function setStrAddress1($strAddress1)
474
    {
475
        $this->strAddress1 = $strAddress1;
476
        return $this;
477
    }
478
479
    /**
480
     * @return string
481
     */
482
    public function getStrAddress2()
483
    {
484
        return $this->strAddress2;
485
    }
486
487
    /**
488
     * @param string $strAddress2
489
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
490
     */
491
    public function setStrAddress2($strAddress2)
492
    {
493
        $this->strAddress2 = $strAddress2;
494
        return $this;
495
    }
496
497
    /**
498
     * @return string
499
     */
500
    public function getStrCity()
501
    {
502
        return $this->strCity;
503
    }
504
505
    /**
506
     * @param string $strCity
507
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
508
     */
509
    public function setStrCity($strCity)
510
    {
511
        $this->strCity = $strCity;
512
        return $this;
513
    }
514
515
    /**
516
     * @return string
517
     */
518
    public function getStrState()
519
    {
520
        return $this->strState;
521
    }
522
523
    /**
524
     * @param string $strState
525
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
526
     */
527
    public function setStrState($strState)
528
    {
529
        $this->strState = $strState;
530
        return $this;
531
    }
532
533
    /**
534
     * @return string
535
     */
536
    public function getStrCountry()
537
    {
538
        return $this->strCountry;
539
    }
540
541
    /**
542
     * @param string $strCountry
543
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
544
     */
545
    public function setStrCountry($strCountry)
546
    {
547
        $this->strCountry = $strCountry;
548
        return $this;
549
    }
550
551
    /**
552
     * @return string
553
     */
554
    public function getStrZip()
555
    {
556
        return $this->strZip;
557
    }
558
559
    /**
560
     * @param string $strZip
561
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
562
     */
563
    public function setStrZip($strZip)
564
    {
565
        $this->strZip = $strZip;
566
        return $this;
567
    }
568
569
    /**
570
     * @return string
571
     */
572
    public function getStrPhone()
573
    {
574
        return $this->strPhone;
575
    }
576
577
    /**
578
     * @param string $strPhone
579
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
580
     */
581
    public function setStrPhone($strPhone)
582
    {
583
        $this->strPhone = $strPhone;
584
        return $this;
585
    }
586
587
    /**
588
     * @return string
589
     */
590
    public function getStrEmail()
591
    {
592
        return $this->strEmail;
593
    }
594
595
    /**
596
     * @param string $strEmail
597
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
598
     */
599
    public function setStrEmail($strEmail)
600
    {
601
        $this->strEmail = $strEmail;
602
        return $this;
603
    }
604
605
    /**
606
     * @return string
607
     */
608
    public function getStrPaypalTransactionID()
609
    {
610
        return $this->strPaypalTransactionID;
611
    }
612
613
    /**
614
     * @param string $strPaypalTransactionID
615
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
616
     */
617
    public function setStrPaypalTransactionID($strPaypalTransactionID)
618
    {
619
        $this->strPaypalTransactionID = $strPaypalTransactionID;
620
        return $this;
621
    }
622
623
    /**
624
     * @return string
625
     */
626
    public function getStrReference()
627
    {
628
        return $this->strReference;
629
    }
630
631
    /**
632
     * @param string $strReference
633
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
634
     */
635
    public function setStrReference($strReference)
636
    {
637
        $this->strReference = $strReference;
638
        return $this;
639
    }
640
641
    /**
642
     * @return \DateTime
643
     */
644
    public function getDtArrivalDate()
645
    {
646
        if ($this->dtArrivalDate == null) {
647
            return null;
648
        } else {
649
            try {
650
                return new \DateTime($this->dtArrivalDate);
651
            } catch (\Exception $e) {
652
                return false;
653
            }
654
        }
655
    }
656
657
    /**
658
     * @param \DateTime $dtArrivalDate
659
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
660
     */
661
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
662
    {
663
        $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...
664
        return $this;
665
    }
666
667
    /**
668
     * @return \DateTime
669
     */
670
    public function getDtDepartureDate()
671
    {
672
        if ($this->dtDepartureDate == null) {
673
            return null;
674
        } else {
675
            try {
676
                return new \DateTime($this->dtDepartureDate);
677
            } catch (\Exception $e) {
678
                return false;
679
            }
680
        }
681
    }
682
683
    /**
684
     * @param \DateTime $dtDepartureDate
685
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
686
     */
687
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
688
    {
689
        $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...
690
        return $this;
691
    }
692
693
    /**
694
     * @return int
695
     */
696
    public function getIntGuestCount()
697
    {
698
        return $this->intGuestCount;
699
    }
700
701
    /**
702
     * @param int $intGuestCount
703
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
704
     */
705
    public function setIntGuestCount($intGuestCount)
706
    {
707
        $this->intGuestCount = $intGuestCount;
708
        return $this;
709
    }
710
711
    /**
712
     * @return string
713
     */
714
    public function getStrChildren()
715
    {
716
        return $this->strChildren;
717
    }
718
719
    /**
720
     * @param string $strChildren
721
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
722
     */
723
    public function setStrChildren($strChildren)
724
    {
725
        $this->strChildren = $strChildren;
726
        return $this;
727
    }
728
729
    /**
730
     * @return int
731
     */
732
    public function getIntRateID()
733
    {
734
        return $this->intRateID;
735
    }
736
737
    /**
738
     * @param int $intRateID
739
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
740
     */
741
    public function setIntRateID($intRateID)
742
    {
743
        $this->intRateID = $intRateID;
744
        return $this;
745
    }
746
747
    /**
748
     * @return int
749
     */
750
    public function getIntRoomTypeID()
751
    {
752
        return $this->intRoomTypeID;
753
    }
754
755
    /**
756
     * @param int $intRoomTypeID
757
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
758
     */
759
    public function setIntRoomTypeID($intRoomTypeID)
760
    {
761
        $this->intRoomTypeID = $intRoomTypeID;
762
        return $this;
763
    }
764
765
    /**
766
     * @return int
767
     */
768
    public function getIntPromoPushID()
769
    {
770
        return $this->intPromoPushID;
771
    }
772
773
    /**
774
     * @param int $intPromoPushID
775
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
776
     */
777
    public function setIntPromoPushID($intPromoPushID)
778
    {
779
        $this->intPromoPushID = $intPromoPushID;
780
        return $this;
781
    }
782
783
    /**
784
     * @return int
785
     */
786
    public function getIntPromoCodeID()
787
    {
788
        return $this->intPromoCodeID;
789
    }
790
791
    /**
792
     * @param int $intPromoCodeID
793
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
794
     */
795
    public function setIntPromoCodeID($intPromoCodeID)
796
    {
797
        $this->intPromoCodeID = $intPromoCodeID;
798
        return $this;
799
    }
800
801
    /**
802
     * @return string
803
     */
804
    public function getStrAttributes()
805
    {
806
        return $this->strAttributes;
807
    }
808
809
    /**
810
     * @param string $strAttributes
811
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
812
     */
813
    public function setStrAttributes($strAttributes)
814
    {
815
        $this->strAttributes = $strAttributes;
816
        return $this;
817
    }
818
819
    /**
820
     * @return string
821
     */
822
    public function getStrLocations()
823
    {
824
        return $this->strLocations;
825
    }
826
827
    /**
828
     * @param string $strLocations
829
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
830
     */
831
    public function setStrLocations($strLocations)
832
    {
833
        $this->strLocations = $strLocations;
834
        return $this;
835
    }
836
837
    /**
838
     * @return string
839
     */
840
    public function getStrSpecialRequests()
841
    {
842
        return $this->strSpecialRequests;
843
    }
844
845
    /**
846
     * @param string $strSpecialRequests
847
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
848
     */
849
    public function setStrSpecialRequests($strSpecialRequests)
850
    {
851
        $this->strSpecialRequests = $strSpecialRequests;
852
        return $this;
853
    }
854
855
    /**
856
     * @return string
857
     */
858
    public function getStrActivityStructure()
859
    {
860
        return $this->strActivityStructure;
861
    }
862
863
    /**
864
     * @param string $strActivityStructure
865
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
866
     */
867
    public function setStrActivityStructure($strActivityStructure)
868
    {
869
        $this->strActivityStructure = $strActivityStructure;
870
        return $this;
871
    }
872
873
    /**
874
     * @return int
875
     */
876
    public function getIntRoomQty()
877
    {
878
        return $this->intRoomQty;
879
    }
880
881
    /**
882
     * @param int $intRoomQty
883
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
884
     */
885
    public function setIntRoomQty($intRoomQty)
886
    {
887
        $this->intRoomQty = $intRoomQty;
888
        return $this;
889
    }
890
891
    /**
892
     * @return dstElements
893
     */
894
    public function getDstElements()
895
    {
896
        return $this->dstElements;
897
    }
898
899
    /**
900
     * @param dstElements $dstElements
901
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
902
     */
903
    public function setDstElements($dstElements)
904
    {
905
        $this->dstElements = $dstElements;
906
        return $this;
907
    }
908
909
    /**
910
     * @return int
911
     */
912
    public function getIntTANo()
913
    {
914
        return $this->intTANo;
915
    }
916
917
    /**
918
     * @param int $intTANo
919
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
920
     */
921
    public function setIntTANo($intTANo)
922
    {
923
        $this->intTANo = $intTANo;
924
        return $this;
925
    }
926
927
    /**
928
     * @return string
929
     */
930
    public function getStrIATANo()
931
    {
932
        return $this->strIATANo;
933
    }
934
935
    /**
936
     * @param string $strIATANo
937
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
938
     */
939
    public function setStrIATANo($strIATANo)
940
    {
941
        $this->strIATANo = $strIATANo;
942
        return $this;
943
    }
944
945
    /**
946
     * @return int
947
     */
948
    public function getIntMemNo()
949
    {
950
        return $this->intMemNo;
951
    }
952
953
    /**
954
     * @param int $intMemNo
955
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
956
     */
957
    public function setIntMemNo($intMemNo)
958
    {
959
        $this->intMemNo = $intMemNo;
960
        return $this;
961
    }
962
963
    /**
964
     * @return dstGolfPackageItems
965
     */
966
    public function getDstGolfPackageItems()
967
    {
968
        return $this->dstGolfPackageItems;
969
    }
970
971
    /**
972
     * @param dstGolfPackageItems $dstGolfPackageItems
973
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
974
     */
975
    public function setDstGolfPackageItems($dstGolfPackageItems)
976
    {
977
        $this->dstGolfPackageItems = $dstGolfPackageItems;
978
        return $this;
979
    }
980
981
    /**
982
     * @return int
983
     */
984
    public function getIntCondoOwnerId()
985
    {
986
        return $this->intCondoOwnerId;
987
    }
988
989
    /**
990
     * @param int $intCondoOwnerId
991
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
992
     */
993
    public function setIntCondoOwnerId($intCondoOwnerId)
994
    {
995
        $this->intCondoOwnerId = $intCondoOwnerId;
996
        return $this;
997
    }
998
999
    /**
1000
     * @return int
1001
     */
1002
    public function getIntRoomId()
1003
    {
1004
        return $this->intRoomId;
1005
    }
1006
1007
    /**
1008
     * @param int $intRoomId
1009
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1010
     */
1011
    public function setIntRoomId($intRoomId)
1012
    {
1013
        $this->intRoomId = $intRoomId;
1014
        return $this;
1015
    }
1016
1017
    /**
1018
     * @return int
1019
     */
1020
    public function getIntBookingCondoType()
1021
    {
1022
        return $this->intBookingCondoType;
1023
    }
1024
1025
    /**
1026
     * @param int $intBookingCondoType
1027
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1028
     */
1029
    public function setIntBookingCondoType($intBookingCondoType)
1030
    {
1031
        $this->intBookingCondoType = $intBookingCondoType;
1032
        return $this;
1033
    }
1034
1035
    /**
1036
     * @return boolean
1037
     */
1038
    public function getIsInsuranceAccepted()
1039
    {
1040
        return $this->IsInsuranceAccepted;
1041
    }
1042
1043
    /**
1044
     * @param boolean $IsInsuranceAccepted
1045
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1046
     */
1047
    public function setIsInsuranceAccepted($IsInsuranceAccepted)
1048
    {
1049
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
1050
        return $this;
1051
    }
1052
1053
    /**
1054
     * @return int
1055
     */
1056
    public function getIntBuildingID()
1057
    {
1058
        return $this->intBuildingID;
1059
    }
1060
1061
    /**
1062
     * @param int $intBuildingID
1063
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1064
     */
1065
    public function setIntBuildingID($intBuildingID)
1066
    {
1067
        $this->intBuildingID = $intBuildingID;
1068
        return $this;
1069
    }
1070
1071
    /**
1072
     * @return float
1073
     */
1074
    public function getReservationAmount()
1075
    {
1076
        return $this->ReservationAmount;
1077
    }
1078
1079
    /**
1080
     * @param float $ReservationAmount
1081
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1082
     */
1083
    public function setReservationAmount($ReservationAmount)
1084
    {
1085
        $this->ReservationAmount = $ReservationAmount;
1086
        return $this;
1087
    }
1088
1089
    /**
1090
     * @return string
1091
     */
1092
    public function getELMMarketingSource()
1093
    {
1094
        return $this->ELMMarketingSource;
1095
    }
1096
1097
    /**
1098
     * @param string $ELMMarketingSource
1099
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1100
     */
1101
    public function setELMMarketingSource($ELMMarketingSource)
1102
    {
1103
        $this->ELMMarketingSource = $ELMMarketingSource;
1104
        return $this;
1105
    }
1106
1107
    /**
1108
     * @return string
1109
     */
1110
    public function getDayOfBirth()
1111
    {
1112
        return $this->DayOfBirth;
1113
    }
1114
1115
    /**
1116
     * @param string $DayOfBirth
1117
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1118
     */
1119
    public function setDayOfBirth($DayOfBirth)
1120
    {
1121
        $this->DayOfBirth = $DayOfBirth;
1122
        return $this;
1123
    }
1124
1125
    /**
1126
     * @return string
1127
     */
1128
    public function getMonthOfBirth()
1129
    {
1130
        return $this->MonthOfBirth;
1131
    }
1132
1133
    /**
1134
     * @param string $MonthOfBirth
1135
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1136
     */
1137
    public function setMonthOfBirth($MonthOfBirth)
1138
    {
1139
        $this->MonthOfBirth = $MonthOfBirth;
1140
        return $this;
1141
    }
1142
1143
    /**
1144
     * @return string
1145
     */
1146
    public function getYearOfBirth()
1147
    {
1148
        return $this->YearOfBirth;
1149
    }
1150
1151
    /**
1152
     * @param string $YearOfBirth
1153
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1154
     */
1155
    public function setYearOfBirth($YearOfBirth)
1156
    {
1157
        $this->YearOfBirth = $YearOfBirth;
1158
        return $this;
1159
    }
1160
1161
    /**
1162
     * @return string
1163
     */
1164
    public function getStrComments()
1165
    {
1166
        return $this->strComments;
1167
    }
1168
1169
    /**
1170
     * @param string $strComments
1171
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1172
     */
1173
    public function setStrComments($strComments)
1174
    {
1175
        $this->strComments = $strComments;
1176
        return $this;
1177
    }
1178
1179
    /**
1180
     * @return boolean
1181
     */
1182
    public function getIsPaidByFOO()
1183
    {
1184
        return $this->IsPaidByFOO;
1185
    }
1186
1187
    /**
1188
     * @param boolean $IsPaidByFOO
1189
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1190
     */
1191
    public function setIsPaidByFOO($IsPaidByFOO)
1192
    {
1193
        $this->IsPaidByFOO = $IsPaidByFOO;
1194
        return $this;
1195
    }
1196
1197
    /**
1198
     * @return IAB2BMode
1199
     */
1200
    public function getBacktoBackMode()
1201
    {
1202
        return $this->BacktoBackMode;
1203
    }
1204
1205
    /**
1206
     * @param IAB2BMode $BacktoBackMode
1207
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1208
     */
1209
    public function setBacktoBackMode($BacktoBackMode)
1210
    {
1211
        $this->BacktoBackMode = $BacktoBackMode;
1212
        return $this;
1213
    }
1214
1215
    /**
1216
     * @return boolean
1217
     */
1218
    public function getIsApplySpecialOffers()
1219
    {
1220
        return $this->IsApplySpecialOffers;
1221
    }
1222
1223
    /**
1224
     * @param boolean $IsApplySpecialOffers
1225
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1226
     */
1227
    public function setIsApplySpecialOffers($IsApplySpecialOffers)
1228
    {
1229
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
1230
        return $this;
1231
    }
1232
1233
    /**
1234
     * @return string
1235
     */
1236
    public function getStrListSpecialOffertApplicable()
1237
    {
1238
        return $this->strListSpecialOffertApplicable;
1239
    }
1240
1241
    /**
1242
     * @param string $strListSpecialOffertApplicable
1243
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1244
     */
1245
    public function setStrListSpecialOffertApplicable($strListSpecialOffertApplicable)
1246
    {
1247
        $this->strListSpecialOffertApplicable = $strListSpecialOffertApplicable;
1248
        return $this;
1249
    }
1250
1251
    /**
1252
     * @return int
1253
     */
1254
    public function getIntBusinessSourceID()
1255
    {
1256
        return $this->intBusinessSourceID;
1257
    }
1258
1259
    /**
1260
     * @param int $intBusinessSourceID
1261
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1262
     */
1263
    public function setIntBusinessSourceID($intBusinessSourceID)
1264
    {
1265
        $this->intBusinessSourceID = $intBusinessSourceID;
1266
        return $this;
1267
    }
1268
1269
    /**
1270
     * @return dstServicesChargesALaCarte
1271
     */
1272
    public function getDstServicesChargesALaCarte()
1273
    {
1274
        return $this->dstServicesChargesALaCarte;
1275
    }
1276
1277
    /**
1278
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
1279
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1280
     */
1281
    public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte)
1282
    {
1283
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
1284
        return $this;
1285
    }
1286
1287
    /**
1288
     * @return int
1289
     */
1290
    public function getIntSuiteConfigurationID()
1291
    {
1292
        return $this->intSuiteConfigurationID;
1293
    }
1294
1295
    /**
1296
     * @param int $intSuiteConfigurationID
1297
     * @return \Gueststream\PMS\IQWare\API\SaveReservationWithPaypalProcessedBackToBack
1298
     */
1299
    public function setIntSuiteConfigurationID($intSuiteConfigurationID)
1300
    {
1301
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
1302
        return $this;
1303
    }
1304
}
1305