WebRes_SaveReservationBackToBack   D
last analyzed

Complexity

Total Complexity 103

Size/Duplication

Total Lines 1233
Duplicated Lines 4.14 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 103
lcom 3
cbo 0
dl 51
loc 1233
ccs 0
cts 507
cp 0
rs 4.4102
c 0
b 0
f 0

97 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 51 51 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 getIntCCType() 0 4 1
A setIntCCType() 0 5 1
A getStrVaultTokenGuid() 0 4 1
A setStrVaultTokenGuid() 0 5 1
A getDtCCExp() 0 12 3
A setDtCCExp() 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 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 getGroupID() 0 4 1
A setGroupID() 0 5 1
A getGroupPrivateGridID() 0 4 1
A setGroupPrivateGridID() 0 5 1
A getManualType() 0 4 1
A setManualType() 0 5 1
A getTvlInsSvcChargeStayStatus() 0 4 1
A setTvlInsSvcChargeStayStatus() 0 5 1
A getID_Member() 0 4 1
A setID_Member() 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 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   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 WebRes_SaveReservationBackToBack often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use WebRes_SaveReservationBackToBack, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class WebRes_SaveReservationBackToBack
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var string $strISOLanguage
15
     */
16
    protected $strISOLanguage = null;
17
18
    /**
19
     * @var string $strFirstName
20
     */
21
    protected $strFirstName = null;
22
23
    /**
24
     * @var string $strLastName
25
     */
26
    protected $strLastName = null;
27
28
    /**
29
     * @var string $strCompany
30
     */
31
    protected $strCompany = null;
32
33
    /**
34
     * @var string $strAddress1
35
     */
36
    protected $strAddress1 = null;
37
38
    /**
39
     * @var string $strAddress2
40
     */
41
    protected $strAddress2 = null;
42
43
    /**
44
     * @var string $strCity
45
     */
46
    protected $strCity = null;
47
48
    /**
49
     * @var string $strState
50
     */
51
    protected $strState = null;
52
53
    /**
54
     * @var string $strCountry
55
     */
56
    protected $strCountry = null;
57
58
    /**
59
     * @var string $strZip
60
     */
61
    protected $strZip = null;
62
63
    /**
64
     * @var string $strPhone
65
     */
66
    protected $strPhone = null;
67
68
    /**
69
     * @var string $strEmail
70
     */
71
    protected $strEmail = null;
72
73
    /**
74
     * @var int $intCCType
75
     */
76
    protected $intCCType = null;
77
78
    /**
79
     * @var string $strVaultTokenGuid
80
     */
81
    protected $strVaultTokenGuid = null;
82
83
    /**
84
     * @var \DateTime $dtCCExp
85
     */
86
    protected $dtCCExp = null;
87
88
    /**
89
     * @var \DateTime $dtArrivalDate
90
     */
91
    protected $dtArrivalDate = null;
92
93
    /**
94
     * @var \DateTime $dtDepartureDate
95
     */
96
    protected $dtDepartureDate = null;
97
98
    /**
99
     * @var int $intGuestCount
100
     */
101
    protected $intGuestCount = null;
102
103
    /**
104
     * @var string $strChildren
105
     */
106
    protected $strChildren = null;
107
108
    /**
109
     * @var int $intRateID
110
     */
111
    protected $intRateID = null;
112
113
    /**
114
     * @var int $intRoomTypeID
115
     */
116
    protected $intRoomTypeID = null;
117
118
    /**
119
     * @var int $intPromoPushID
120
     */
121
    protected $intPromoPushID = null;
122
123
    /**
124
     * @var int $intPromoCodeID
125
     */
126
    protected $intPromoCodeID = null;
127
128
    /**
129
     * @var string $strAttributes
130
     */
131
    protected $strAttributes = null;
132
133
    /**
134
     * @var string $strLocations
135
     */
136
    protected $strLocations = null;
137
138
    /**
139
     * @var string $strSpecialRequests
140
     */
141
    protected $strSpecialRequests = null;
142
143
    /**
144
     * @var string $strActivityStructure
145
     */
146
    protected $strActivityStructure = null;
147
148
    /**
149
     * @var int $intRoomQty
150
     */
151
    protected $intRoomQty = null;
152
153
    /**
154
     * @var dstElements $dstElements
155
     */
156
    protected $dstElements = null;
157
158
    /**
159
     * @var int $intTANo
160
     */
161
    protected $intTANo = null;
162
163
    /**
164
     * @var int $intMemNo
165
     */
166
    protected $intMemNo = null;
167
168
    /**
169
     * @var dstGolfPackageItems $dstGolfPackageItems
170
     */
171
    protected $dstGolfPackageItems = null;
172
173
    /**
174
     * @var int $intCondoOwnerId
175
     */
176
    protected $intCondoOwnerId = null;
177
178
    /**
179
     * @var int $intRoomId
180
     */
181
    protected $intRoomId = null;
182
183
    /**
184
     * @var int $intBookingCondoType
185
     */
186
    protected $intBookingCondoType = null;
187
188
    /**
189
     * @var int $GroupID
190
     */
191
    protected $GroupID = null;
192
193
    /**
194
     * @var int $GroupPrivateGridID
195
     */
196
    protected $GroupPrivateGridID = null;
197
198
    /**
199
     * @var TManualTypeBooking $ManualType
200
     */
201
    protected $ManualType = null;
202
203
    /**
204
     * @var TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
205
     */
206
    protected $TvlInsSvcChargeStayStatus = null;
207
208
    /**
209
     * @var int $ID_Member
210
     */
211
    protected $ID_Member = null;
212
213
    /**
214
     * @var string $strComments
215
     */
216
    protected $strComments = null;
217
218
    /**
219
     * @var boolean $IsPaidByFOO
220
     */
221
    protected $IsPaidByFOO = null;
222
223
    /**
224
     * @var IAB2BMode $BackToBackMode
225
     */
226
    protected $BackToBackMode = null;
227
228
    /**
229
     * @var boolean $IsApplySpecialOffers
230
     */
231
    protected $IsApplySpecialOffers = null;
232
233
    /**
234
     * @var int $intBusinessSourceID
235
     */
236
    protected $intBusinessSourceID = null;
237
238
    /**
239
     * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte
240
     */
241
    protected $dstServicesChargesALaCarte = null;
242
243
    /**
244
     * @var int $intSuiteConfigurationID
245
     */
246
    protected $intSuiteConfigurationID = null;
247
248
    /**
249
     * @param int $intGUID
250
     * @param string $strISOLanguage
251
     * @param string $strFirstName
252
     * @param string $strLastName
253
     * @param string $strCompany
254
     * @param string $strAddress1
255
     * @param string $strAddress2
256
     * @param string $strCity
257
     * @param string $strState
258
     * @param string $strCountry
259
     * @param string $strZip
260
     * @param string $strPhone
261
     * @param string $strEmail
262
     * @param int $intCCType
263
     * @param string $strVaultTokenGuid
264
     * @param \DateTime $dtCCExp
265
     * @param \DateTime $dtArrivalDate
266
     * @param \DateTime $dtDepartureDate
267
     * @param int $intGuestCount
268
     * @param string $strChildren
269
     * @param int $intRateID
270
     * @param int $intRoomTypeID
271
     * @param int $intPromoPushID
272
     * @param int $intPromoCodeID
273
     * @param string $strAttributes
274
     * @param string $strLocations
275
     * @param string $strSpecialRequests
276
     * @param string $strActivityStructure
277
     * @param int $intRoomQty
278
     * @param dstElements $dstElements
279
     * @param int $intTANo
280
     * @param int $intMemNo
281
     * @param dstGolfPackageItems $dstGolfPackageItems
282
     * @param int $intCondoOwnerId
283
     * @param int $intRoomId
284
     * @param int $intBookingCondoType
285
     * @param int $GroupID
286
     * @param int $GroupPrivateGridID
287
     * @param TManualTypeBooking $ManualType
288
     * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
289
     * @param int $ID_Member
290
     * @param string $strComments
291
     * @param boolean $IsPaidByFOO
292
     * @param IAB2BMode $BackToBackMode
293
     * @param boolean $IsApplySpecialOffers
294
     * @param int $intBusinessSourceID
295
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
296
     * @param int $intSuiteConfigurationID
297
     */
298 View Code Duplication
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strVaultTokenGuid, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $TvlInsSvcChargeStayStatus, $ID_Member, $strComments, $IsPaidByFOO, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
0 ignored issues
show
Duplication introduced by
This method 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...
299
    {
300
        $this->intGUID = $intGUID;
301
        $this->strISOLanguage = $strISOLanguage;
302
        $this->strFirstName = $strFirstName;
303
        $this->strLastName = $strLastName;
304
        $this->strCompany = $strCompany;
305
        $this->strAddress1 = $strAddress1;
306
        $this->strAddress2 = $strAddress2;
307
        $this->strCity = $strCity;
308
        $this->strState = $strState;
309
        $this->strCountry = $strCountry;
310
        $this->strZip = $strZip;
311
        $this->strPhone = $strPhone;
312
        $this->strEmail = $strEmail;
313
        $this->intCCType = $intCCType;
314
        $this->strVaultTokenGuid = $strVaultTokenGuid;
315
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtCCExp->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtCCExp.

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...
316
        $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...
317
        $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...
318
        $this->intGuestCount = $intGuestCount;
319
        $this->strChildren = $strChildren;
320
        $this->intRateID = $intRateID;
321
        $this->intRoomTypeID = $intRoomTypeID;
322
        $this->intPromoPushID = $intPromoPushID;
323
        $this->intPromoCodeID = $intPromoCodeID;
324
        $this->strAttributes = $strAttributes;
325
        $this->strLocations = $strLocations;
326
        $this->strSpecialRequests = $strSpecialRequests;
327
        $this->strActivityStructure = $strActivityStructure;
328
        $this->intRoomQty = $intRoomQty;
329
        $this->dstElements = $dstElements;
330
        $this->intTANo = $intTANo;
331
        $this->intMemNo = $intMemNo;
332
        $this->dstGolfPackageItems = $dstGolfPackageItems;
333
        $this->intCondoOwnerId = $intCondoOwnerId;
334
        $this->intRoomId = $intRoomId;
335
        $this->intBookingCondoType = $intBookingCondoType;
336
        $this->GroupID = $GroupID;
337
        $this->GroupPrivateGridID = $GroupPrivateGridID;
338
        $this->ManualType = $ManualType;
339
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
340
        $this->ID_Member = $ID_Member;
341
        $this->strComments = $strComments;
342
        $this->IsPaidByFOO = $IsPaidByFOO;
343
        $this->BackToBackMode = $BackToBackMode;
344
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
345
        $this->intBusinessSourceID = $intBusinessSourceID;
346
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
347
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
348
    }
349
350
    /**
351
     * @return int
352
     */
353
    public function getIntGUID()
354
    {
355
        return $this->intGUID;
356
    }
357
358
    /**
359
     * @param int $intGUID
360
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
361
     */
362
    public function setIntGUID($intGUID)
363
    {
364
        $this->intGUID = $intGUID;
365
        return $this;
366
    }
367
368
    /**
369
     * @return string
370
     */
371
    public function getStrISOLanguage()
372
    {
373
        return $this->strISOLanguage;
374
    }
375
376
    /**
377
     * @param string $strISOLanguage
378
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
379
     */
380
    public function setStrISOLanguage($strISOLanguage)
381
    {
382
        $this->strISOLanguage = $strISOLanguage;
383
        return $this;
384
    }
385
386
    /**
387
     * @return string
388
     */
389
    public function getStrFirstName()
390
    {
391
        return $this->strFirstName;
392
    }
393
394
    /**
395
     * @param string $strFirstName
396
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
397
     */
398
    public function setStrFirstName($strFirstName)
399
    {
400
        $this->strFirstName = $strFirstName;
401
        return $this;
402
    }
403
404
    /**
405
     * @return string
406
     */
407
    public function getStrLastName()
408
    {
409
        return $this->strLastName;
410
    }
411
412
    /**
413
     * @param string $strLastName
414
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
415
     */
416
    public function setStrLastName($strLastName)
417
    {
418
        $this->strLastName = $strLastName;
419
        return $this;
420
    }
421
422
    /**
423
     * @return string
424
     */
425
    public function getStrCompany()
426
    {
427
        return $this->strCompany;
428
    }
429
430
    /**
431
     * @param string $strCompany
432
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
433
     */
434
    public function setStrCompany($strCompany)
435
    {
436
        $this->strCompany = $strCompany;
437
        return $this;
438
    }
439
440
    /**
441
     * @return string
442
     */
443
    public function getStrAddress1()
444
    {
445
        return $this->strAddress1;
446
    }
447
448
    /**
449
     * @param string $strAddress1
450
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
451
     */
452
    public function setStrAddress1($strAddress1)
453
    {
454
        $this->strAddress1 = $strAddress1;
455
        return $this;
456
    }
457
458
    /**
459
     * @return string
460
     */
461
    public function getStrAddress2()
462
    {
463
        return $this->strAddress2;
464
    }
465
466
    /**
467
     * @param string $strAddress2
468
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
469
     */
470
    public function setStrAddress2($strAddress2)
471
    {
472
        $this->strAddress2 = $strAddress2;
473
        return $this;
474
    }
475
476
    /**
477
     * @return string
478
     */
479
    public function getStrCity()
480
    {
481
        return $this->strCity;
482
    }
483
484
    /**
485
     * @param string $strCity
486
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
487
     */
488
    public function setStrCity($strCity)
489
    {
490
        $this->strCity = $strCity;
491
        return $this;
492
    }
493
494
    /**
495
     * @return string
496
     */
497
    public function getStrState()
498
    {
499
        return $this->strState;
500
    }
501
502
    /**
503
     * @param string $strState
504
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
505
     */
506
    public function setStrState($strState)
507
    {
508
        $this->strState = $strState;
509
        return $this;
510
    }
511
512
    /**
513
     * @return string
514
     */
515
    public function getStrCountry()
516
    {
517
        return $this->strCountry;
518
    }
519
520
    /**
521
     * @param string $strCountry
522
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
523
     */
524
    public function setStrCountry($strCountry)
525
    {
526
        $this->strCountry = $strCountry;
527
        return $this;
528
    }
529
530
    /**
531
     * @return string
532
     */
533
    public function getStrZip()
534
    {
535
        return $this->strZip;
536
    }
537
538
    /**
539
     * @param string $strZip
540
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
541
     */
542
    public function setStrZip($strZip)
543
    {
544
        $this->strZip = $strZip;
545
        return $this;
546
    }
547
548
    /**
549
     * @return string
550
     */
551
    public function getStrPhone()
552
    {
553
        return $this->strPhone;
554
    }
555
556
    /**
557
     * @param string $strPhone
558
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
559
     */
560
    public function setStrPhone($strPhone)
561
    {
562
        $this->strPhone = $strPhone;
563
        return $this;
564
    }
565
566
    /**
567
     * @return string
568
     */
569
    public function getStrEmail()
570
    {
571
        return $this->strEmail;
572
    }
573
574
    /**
575
     * @param string $strEmail
576
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
577
     */
578
    public function setStrEmail($strEmail)
579
    {
580
        $this->strEmail = $strEmail;
581
        return $this;
582
    }
583
584
    /**
585
     * @return int
586
     */
587
    public function getIntCCType()
588
    {
589
        return $this->intCCType;
590
    }
591
592
    /**
593
     * @param int $intCCType
594
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
595
     */
596
    public function setIntCCType($intCCType)
597
    {
598
        $this->intCCType = $intCCType;
599
        return $this;
600
    }
601
602
    /**
603
     * @return string
604
     */
605
    public function getStrVaultTokenGuid()
606
    {
607
        return $this->strVaultTokenGuid;
608
    }
609
610
    /**
611
     * @param string $strVaultTokenGuid
612
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
613
     */
614
    public function setStrVaultTokenGuid($strVaultTokenGuid)
615
    {
616
        $this->strVaultTokenGuid = $strVaultTokenGuid;
617
        return $this;
618
    }
619
620
    /**
621
     * @return \DateTime
622
     */
623
    public function getDtCCExp()
624
    {
625
        if ($this->dtCCExp == null) {
626
            return null;
627
        } else {
628
            try {
629
                return new \DateTime($this->dtCCExp);
630
            } catch (\Exception $e) {
631
                return false;
632
            }
633
        }
634
    }
635
636
    /**
637
     * @param \DateTime $dtCCExp
638
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
639
     */
640
    public function setDtCCExp(\DateTime $dtCCExp)
641
    {
642
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtCCExp->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtCCExp.

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...
643
        return $this;
644
    }
645
646
    /**
647
     * @return \DateTime
648
     */
649
    public function getDtArrivalDate()
650
    {
651
        if ($this->dtArrivalDate == null) {
652
            return null;
653
        } else {
654
            try {
655
                return new \DateTime($this->dtArrivalDate);
656
            } catch (\Exception $e) {
657
                return false;
658
            }
659
        }
660
    }
661
662
    /**
663
     * @param \DateTime $dtArrivalDate
664
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
665
     */
666
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
667
    {
668
        $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...
669
        return $this;
670
    }
671
672
    /**
673
     * @return \DateTime
674
     */
675
    public function getDtDepartureDate()
676
    {
677
        if ($this->dtDepartureDate == null) {
678
            return null;
679
        } else {
680
            try {
681
                return new \DateTime($this->dtDepartureDate);
682
            } catch (\Exception $e) {
683
                return false;
684
            }
685
        }
686
    }
687
688
    /**
689
     * @param \DateTime $dtDepartureDate
690
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
691
     */
692
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
693
    {
694
        $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...
695
        return $this;
696
    }
697
698
    /**
699
     * @return int
700
     */
701
    public function getIntGuestCount()
702
    {
703
        return $this->intGuestCount;
704
    }
705
706
    /**
707
     * @param int $intGuestCount
708
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
709
     */
710
    public function setIntGuestCount($intGuestCount)
711
    {
712
        $this->intGuestCount = $intGuestCount;
713
        return $this;
714
    }
715
716
    /**
717
     * @return string
718
     */
719
    public function getStrChildren()
720
    {
721
        return $this->strChildren;
722
    }
723
724
    /**
725
     * @param string $strChildren
726
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
727
     */
728
    public function setStrChildren($strChildren)
729
    {
730
        $this->strChildren = $strChildren;
731
        return $this;
732
    }
733
734
    /**
735
     * @return int
736
     */
737
    public function getIntRateID()
738
    {
739
        return $this->intRateID;
740
    }
741
742
    /**
743
     * @param int $intRateID
744
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
745
     */
746
    public function setIntRateID($intRateID)
747
    {
748
        $this->intRateID = $intRateID;
749
        return $this;
750
    }
751
752
    /**
753
     * @return int
754
     */
755
    public function getIntRoomTypeID()
756
    {
757
        return $this->intRoomTypeID;
758
    }
759
760
    /**
761
     * @param int $intRoomTypeID
762
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
763
     */
764
    public function setIntRoomTypeID($intRoomTypeID)
765
    {
766
        $this->intRoomTypeID = $intRoomTypeID;
767
        return $this;
768
    }
769
770
    /**
771
     * @return int
772
     */
773
    public function getIntPromoPushID()
774
    {
775
        return $this->intPromoPushID;
776
    }
777
778
    /**
779
     * @param int $intPromoPushID
780
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
781
     */
782
    public function setIntPromoPushID($intPromoPushID)
783
    {
784
        $this->intPromoPushID = $intPromoPushID;
785
        return $this;
786
    }
787
788
    /**
789
     * @return int
790
     */
791
    public function getIntPromoCodeID()
792
    {
793
        return $this->intPromoCodeID;
794
    }
795
796
    /**
797
     * @param int $intPromoCodeID
798
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
799
     */
800
    public function setIntPromoCodeID($intPromoCodeID)
801
    {
802
        $this->intPromoCodeID = $intPromoCodeID;
803
        return $this;
804
    }
805
806
    /**
807
     * @return string
808
     */
809
    public function getStrAttributes()
810
    {
811
        return $this->strAttributes;
812
    }
813
814
    /**
815
     * @param string $strAttributes
816
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
817
     */
818
    public function setStrAttributes($strAttributes)
819
    {
820
        $this->strAttributes = $strAttributes;
821
        return $this;
822
    }
823
824
    /**
825
     * @return string
826
     */
827
    public function getStrLocations()
828
    {
829
        return $this->strLocations;
830
    }
831
832
    /**
833
     * @param string $strLocations
834
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
835
     */
836
    public function setStrLocations($strLocations)
837
    {
838
        $this->strLocations = $strLocations;
839
        return $this;
840
    }
841
842
    /**
843
     * @return string
844
     */
845
    public function getStrSpecialRequests()
846
    {
847
        return $this->strSpecialRequests;
848
    }
849
850
    /**
851
     * @param string $strSpecialRequests
852
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
853
     */
854
    public function setStrSpecialRequests($strSpecialRequests)
855
    {
856
        $this->strSpecialRequests = $strSpecialRequests;
857
        return $this;
858
    }
859
860
    /**
861
     * @return string
862
     */
863
    public function getStrActivityStructure()
864
    {
865
        return $this->strActivityStructure;
866
    }
867
868
    /**
869
     * @param string $strActivityStructure
870
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
871
     */
872
    public function setStrActivityStructure($strActivityStructure)
873
    {
874
        $this->strActivityStructure = $strActivityStructure;
875
        return $this;
876
    }
877
878
    /**
879
     * @return int
880
     */
881
    public function getIntRoomQty()
882
    {
883
        return $this->intRoomQty;
884
    }
885
886
    /**
887
     * @param int $intRoomQty
888
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
889
     */
890
    public function setIntRoomQty($intRoomQty)
891
    {
892
        $this->intRoomQty = $intRoomQty;
893
        return $this;
894
    }
895
896
    /**
897
     * @return dstElements
898
     */
899
    public function getDstElements()
900
    {
901
        return $this->dstElements;
902
    }
903
904
    /**
905
     * @param dstElements $dstElements
906
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
907
     */
908
    public function setDstElements($dstElements)
909
    {
910
        $this->dstElements = $dstElements;
911
        return $this;
912
    }
913
914
    /**
915
     * @return int
916
     */
917
    public function getIntTANo()
918
    {
919
        return $this->intTANo;
920
    }
921
922
    /**
923
     * @param int $intTANo
924
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
925
     */
926
    public function setIntTANo($intTANo)
927
    {
928
        $this->intTANo = $intTANo;
929
        return $this;
930
    }
931
932
    /**
933
     * @return int
934
     */
935
    public function getIntMemNo()
936
    {
937
        return $this->intMemNo;
938
    }
939
940
    /**
941
     * @param int $intMemNo
942
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
943
     */
944
    public function setIntMemNo($intMemNo)
945
    {
946
        $this->intMemNo = $intMemNo;
947
        return $this;
948
    }
949
950
    /**
951
     * @return dstGolfPackageItems
952
     */
953
    public function getDstGolfPackageItems()
954
    {
955
        return $this->dstGolfPackageItems;
956
    }
957
958
    /**
959
     * @param dstGolfPackageItems $dstGolfPackageItems
960
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
961
     */
962
    public function setDstGolfPackageItems($dstGolfPackageItems)
963
    {
964
        $this->dstGolfPackageItems = $dstGolfPackageItems;
965
        return $this;
966
    }
967
968
    /**
969
     * @return int
970
     */
971
    public function getIntCondoOwnerId()
972
    {
973
        return $this->intCondoOwnerId;
974
    }
975
976
    /**
977
     * @param int $intCondoOwnerId
978
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
979
     */
980
    public function setIntCondoOwnerId($intCondoOwnerId)
981
    {
982
        $this->intCondoOwnerId = $intCondoOwnerId;
983
        return $this;
984
    }
985
986
    /**
987
     * @return int
988
     */
989
    public function getIntRoomId()
990
    {
991
        return $this->intRoomId;
992
    }
993
994
    /**
995
     * @param int $intRoomId
996
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
997
     */
998
    public function setIntRoomId($intRoomId)
999
    {
1000
        $this->intRoomId = $intRoomId;
1001
        return $this;
1002
    }
1003
1004
    /**
1005
     * @return int
1006
     */
1007
    public function getIntBookingCondoType()
1008
    {
1009
        return $this->intBookingCondoType;
1010
    }
1011
1012
    /**
1013
     * @param int $intBookingCondoType
1014
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1015
     */
1016
    public function setIntBookingCondoType($intBookingCondoType)
1017
    {
1018
        $this->intBookingCondoType = $intBookingCondoType;
1019
        return $this;
1020
    }
1021
1022
    /**
1023
     * @return int
1024
     */
1025
    public function getGroupID()
1026
    {
1027
        return $this->GroupID;
1028
    }
1029
1030
    /**
1031
     * @param int $GroupID
1032
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1033
     */
1034
    public function setGroupID($GroupID)
1035
    {
1036
        $this->GroupID = $GroupID;
1037
        return $this;
1038
    }
1039
1040
    /**
1041
     * @return int
1042
     */
1043
    public function getGroupPrivateGridID()
1044
    {
1045
        return $this->GroupPrivateGridID;
1046
    }
1047
1048
    /**
1049
     * @param int $GroupPrivateGridID
1050
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1051
     */
1052
    public function setGroupPrivateGridID($GroupPrivateGridID)
1053
    {
1054
        $this->GroupPrivateGridID = $GroupPrivateGridID;
1055
        return $this;
1056
    }
1057
1058
    /**
1059
     * @return TManualTypeBooking
1060
     */
1061
    public function getManualType()
1062
    {
1063
        return $this->ManualType;
1064
    }
1065
1066
    /**
1067
     * @param TManualTypeBooking $ManualType
1068
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1069
     */
1070
    public function setManualType($ManualType)
1071
    {
1072
        $this->ManualType = $ManualType;
1073
        return $this;
1074
    }
1075
1076
    /**
1077
     * @return TSBDSvcChargeStayStatus
1078
     */
1079
    public function getTvlInsSvcChargeStayStatus()
1080
    {
1081
        return $this->TvlInsSvcChargeStayStatus;
1082
    }
1083
1084
    /**
1085
     * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
1086
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1087
     */
1088
    public function setTvlInsSvcChargeStayStatus($TvlInsSvcChargeStayStatus)
1089
    {
1090
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
1091
        return $this;
1092
    }
1093
1094
    /**
1095
     * @return int
1096
     */
1097
    public function getID_Member()
1098
    {
1099
        return $this->ID_Member;
1100
    }
1101
1102
    /**
1103
     * @param int $ID_Member
1104
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1105
     */
1106
    public function setID_Member($ID_Member)
1107
    {
1108
        $this->ID_Member = $ID_Member;
1109
        return $this;
1110
    }
1111
1112
    /**
1113
     * @return string
1114
     */
1115
    public function getStrComments()
1116
    {
1117
        return $this->strComments;
1118
    }
1119
1120
    /**
1121
     * @param string $strComments
1122
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1123
     */
1124
    public function setStrComments($strComments)
1125
    {
1126
        $this->strComments = $strComments;
1127
        return $this;
1128
    }
1129
1130
    /**
1131
     * @return boolean
1132
     */
1133
    public function getIsPaidByFOO()
1134
    {
1135
        return $this->IsPaidByFOO;
1136
    }
1137
1138
    /**
1139
     * @param boolean $IsPaidByFOO
1140
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1141
     */
1142
    public function setIsPaidByFOO($IsPaidByFOO)
1143
    {
1144
        $this->IsPaidByFOO = $IsPaidByFOO;
1145
        return $this;
1146
    }
1147
1148
    /**
1149
     * @return IAB2BMode
1150
     */
1151
    public function getBackToBackMode()
1152
    {
1153
        return $this->BackToBackMode;
1154
    }
1155
1156
    /**
1157
     * @param IAB2BMode $BackToBackMode
1158
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1159
     */
1160
    public function setBackToBackMode($BackToBackMode)
1161
    {
1162
        $this->BackToBackMode = $BackToBackMode;
1163
        return $this;
1164
    }
1165
1166
    /**
1167
     * @return boolean
1168
     */
1169
    public function getIsApplySpecialOffers()
1170
    {
1171
        return $this->IsApplySpecialOffers;
1172
    }
1173
1174
    /**
1175
     * @param boolean $IsApplySpecialOffers
1176
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1177
     */
1178
    public function setIsApplySpecialOffers($IsApplySpecialOffers)
1179
    {
1180
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
1181
        return $this;
1182
    }
1183
1184
    /**
1185
     * @return int
1186
     */
1187
    public function getIntBusinessSourceID()
1188
    {
1189
        return $this->intBusinessSourceID;
1190
    }
1191
1192
    /**
1193
     * @param int $intBusinessSourceID
1194
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1195
     */
1196
    public function setIntBusinessSourceID($intBusinessSourceID)
1197
    {
1198
        $this->intBusinessSourceID = $intBusinessSourceID;
1199
        return $this;
1200
    }
1201
1202
    /**
1203
     * @return dstServicesChargesALaCarte
1204
     */
1205
    public function getDstServicesChargesALaCarte()
1206
    {
1207
        return $this->dstServicesChargesALaCarte;
1208
    }
1209
1210
    /**
1211
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
1212
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1213
     */
1214
    public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte)
1215
    {
1216
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
1217
        return $this;
1218
    }
1219
1220
    /**
1221
     * @return int
1222
     */
1223
    public function getIntSuiteConfigurationID()
1224
    {
1225
        return $this->intSuiteConfigurationID;
1226
    }
1227
1228
    /**
1229
     * @param int $intSuiteConfigurationID
1230
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservationBackToBack
1231
     */
1232
    public function setIntSuiteConfigurationID($intSuiteConfigurationID)
1233
    {
1234
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
1235
        return $this;
1236
    }
1237
}
1238