WebRes_SaveReservation   D
last analyzed

Complexity

Total Complexity 101

Size/Duplication

Total Lines 1208
Duplicated Lines 4.14 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 101
lcom 3
cbo 0
dl 50
loc 1208
ccs 0
cts 497
cp 0
rs 4.4102
c 0
b 0
f 0

95 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 50 50 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 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_SaveReservation often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

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

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

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class WebRes_SaveReservation
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var string $strISOLanguage
15
     */
16
    protected $strISOLanguage = null;
17
18
    /**
19
     * @var string $strFirstName
20
     */
21
    protected $strFirstName = null;
22
23
    /**
24
     * @var string $strLastName
25
     */
26
    protected $strLastName = null;
27
28
    /**
29
     * @var string $strCompany
30
     */
31
    protected $strCompany = null;
32
33
    /**
34
     * @var string $strAddress1
35
     */
36
    protected $strAddress1 = null;
37
38
    /**
39
     * @var string $strAddress2
40
     */
41
    protected $strAddress2 = null;
42
43
    /**
44
     * @var string $strCity
45
     */
46
    protected $strCity = null;
47
48
    /**
49
     * @var string $strState
50
     */
51
    protected $strState = null;
52
53
    /**
54
     * @var string $strCountry
55
     */
56
    protected $strCountry = null;
57
58
    /**
59
     * @var string $strZip
60
     */
61
    protected $strZip = null;
62
63
    /**
64
     * @var string $strPhone
65
     */
66
    protected $strPhone = null;
67
68
    /**
69
     * @var string $strEmail
70
     */
71
    protected $strEmail = null;
72
73
    /**
74
     * @var int $intCCType
75
     */
76
    protected $intCCType = null;
77
78
    /**
79
     * @var string $strVaultTokenGuid
80
     */
81
    protected $strVaultTokenGuid = null;
82
83
    /**
84
     * @var \DateTime $dtCCExp
85
     */
86
    protected $dtCCExp = null;
87
88
    /**
89
     * @var \DateTime $dtArrivalDate
90
     */
91
    protected $dtArrivalDate = null;
92
93
    /**
94
     * @var \DateTime $dtDepartureDate
95
     */
96
    protected $dtDepartureDate = null;
97
98
    /**
99
     * @var int $intGuestCount
100
     */
101
    protected $intGuestCount = null;
102
103
    /**
104
     * @var string $strChildren
105
     */
106
    protected $strChildren = null;
107
108
    /**
109
     * @var int $intRateID
110
     */
111
    protected $intRateID = null;
112
113
    /**
114
     * @var int $intRoomTypeID
115
     */
116
    protected $intRoomTypeID = null;
117
118
    /**
119
     * @var int $intPromoPushID
120
     */
121
    protected $intPromoPushID = null;
122
123
    /**
124
     * @var int $intPromoCodeID
125
     */
126
    protected $intPromoCodeID = null;
127
128
    /**
129
     * @var string $strAttributes
130
     */
131
    protected $strAttributes = null;
132
133
    /**
134
     * @var string $strLocations
135
     */
136
    protected $strLocations = null;
137
138
    /**
139
     * @var string $strSpecialRequests
140
     */
141
    protected $strSpecialRequests = null;
142
143
    /**
144
     * @var string $strActivityStructure
145
     */
146
    protected $strActivityStructure = null;
147
148
    /**
149
     * @var int $intRoomQty
150
     */
151
    protected $intRoomQty = null;
152
153
    /**
154
     * @var dstElements $dstElements
155
     */
156
    protected $dstElements = null;
157
158
    /**
159
     * @var int $intTANo
160
     */
161
    protected $intTANo = null;
162
163
    /**
164
     * @var int $intMemNo
165
     */
166
    protected $intMemNo = null;
167
168
    /**
169
     * @var dstGolfPackageItems $dstGolfPackageItems
170
     */
171
    protected $dstGolfPackageItems = null;
172
173
    /**
174
     * @var int $intCondoOwnerId
175
     */
176
    protected $intCondoOwnerId = null;
177
178
    /**
179
     * @var int $intRoomId
180
     */
181
    protected $intRoomId = null;
182
183
    /**
184
     * @var int $intBookingCondoType
185
     */
186
    protected $intBookingCondoType = null;
187
188
    /**
189
     * @var int $GroupID
190
     */
191
    protected $GroupID = null;
192
193
    /**
194
     * @var int $GroupPrivateGridID
195
     */
196
    protected $GroupPrivateGridID = null;
197
198
    /**
199
     * @var TManualTypeBooking $ManualType
200
     */
201
    protected $ManualType = null;
202
203
    /**
204
     * @var TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
205
     */
206
    protected $TvlInsSvcChargeStayStatus = null;
207
208
    /**
209
     * @var int $ID_Member
210
     */
211
    protected $ID_Member = null;
212
213
    /**
214
     * @var string $strComments
215
     */
216
    protected $strComments = null;
217
218
    /**
219
     * @var boolean $IsPaidByFOO
220
     */
221
    protected $IsPaidByFOO = null;
222
223
    /**
224
     * @var boolean $IsApplySpecialOffers
225
     */
226
    protected $IsApplySpecialOffers = null;
227
228
    /**
229
     * @var int $intBusinessSourceID
230
     */
231
    protected $intBusinessSourceID = null;
232
233
    /**
234
     * @var dstServicesChargesALaCarte $dstServicesChargesALaCarte
235
     */
236
    protected $dstServicesChargesALaCarte = null;
237
238
    /**
239
     * @var int $intSuiteConfigurationID
240
     */
241
    protected $intSuiteConfigurationID = null;
242
243
    /**
244
     * @param int $intGUID
245
     * @param string $strISOLanguage
246
     * @param string $strFirstName
247
     * @param string $strLastName
248
     * @param string $strCompany
249
     * @param string $strAddress1
250
     * @param string $strAddress2
251
     * @param string $strCity
252
     * @param string $strState
253
     * @param string $strCountry
254
     * @param string $strZip
255
     * @param string $strPhone
256
     * @param string $strEmail
257
     * @param int $intCCType
258
     * @param string $strVaultTokenGuid
259
     * @param \DateTime $dtCCExp
260
     * @param \DateTime $dtArrivalDate
261
     * @param \DateTime $dtDepartureDate
262
     * @param int $intGuestCount
263
     * @param string $strChildren
264
     * @param int $intRateID
265
     * @param int $intRoomTypeID
266
     * @param int $intPromoPushID
267
     * @param int $intPromoCodeID
268
     * @param string $strAttributes
269
     * @param string $strLocations
270
     * @param string $strSpecialRequests
271
     * @param string $strActivityStructure
272
     * @param int $intRoomQty
273
     * @param dstElements $dstElements
274
     * @param int $intTANo
275
     * @param int $intMemNo
276
     * @param dstGolfPackageItems $dstGolfPackageItems
277
     * @param int $intCondoOwnerId
278
     * @param int $intRoomId
279
     * @param int $intBookingCondoType
280
     * @param int $GroupID
281
     * @param int $GroupPrivateGridID
282
     * @param TManualTypeBooking $ManualType
283
     * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
284
     * @param int $ID_Member
285
     * @param string $strComments
286
     * @param boolean $IsPaidByFOO
287
     * @param boolean $IsApplySpecialOffers
288
     * @param int $intBusinessSourceID
289
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
290
     * @param int $intSuiteConfigurationID
291
     */
292 View Code Duplication
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strVaultTokenGuid, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $TvlInsSvcChargeStayStatus, $ID_Member, $strComments, $IsPaidByFOO, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
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...
293
    {
294
        $this->intGUID = $intGUID;
295
        $this->strISOLanguage = $strISOLanguage;
296
        $this->strFirstName = $strFirstName;
297
        $this->strLastName = $strLastName;
298
        $this->strCompany = $strCompany;
299
        $this->strAddress1 = $strAddress1;
300
        $this->strAddress2 = $strAddress2;
301
        $this->strCity = $strCity;
302
        $this->strState = $strState;
303
        $this->strCountry = $strCountry;
304
        $this->strZip = $strZip;
305
        $this->strPhone = $strPhone;
306
        $this->strEmail = $strEmail;
307
        $this->intCCType = $intCCType;
308
        $this->strVaultTokenGuid = $strVaultTokenGuid;
309
        $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...
310
        $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...
311
        $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...
312
        $this->intGuestCount = $intGuestCount;
313
        $this->strChildren = $strChildren;
314
        $this->intRateID = $intRateID;
315
        $this->intRoomTypeID = $intRoomTypeID;
316
        $this->intPromoPushID = $intPromoPushID;
317
        $this->intPromoCodeID = $intPromoCodeID;
318
        $this->strAttributes = $strAttributes;
319
        $this->strLocations = $strLocations;
320
        $this->strSpecialRequests = $strSpecialRequests;
321
        $this->strActivityStructure = $strActivityStructure;
322
        $this->intRoomQty = $intRoomQty;
323
        $this->dstElements = $dstElements;
324
        $this->intTANo = $intTANo;
325
        $this->intMemNo = $intMemNo;
326
        $this->dstGolfPackageItems = $dstGolfPackageItems;
327
        $this->intCondoOwnerId = $intCondoOwnerId;
328
        $this->intRoomId = $intRoomId;
329
        $this->intBookingCondoType = $intBookingCondoType;
330
        $this->GroupID = $GroupID;
331
        $this->GroupPrivateGridID = $GroupPrivateGridID;
332
        $this->ManualType = $ManualType;
333
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
334
        $this->ID_Member = $ID_Member;
335
        $this->strComments = $strComments;
336
        $this->IsPaidByFOO = $IsPaidByFOO;
337
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
338
        $this->intBusinessSourceID = $intBusinessSourceID;
339
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
340
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
341
    }
342
343
    /**
344
     * @return int
345
     */
346
    public function getIntGUID()
347
    {
348
        return $this->intGUID;
349
    }
350
351
    /**
352
     * @param int $intGUID
353
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
354
     */
355
    public function setIntGUID($intGUID)
356
    {
357
        $this->intGUID = $intGUID;
358
        return $this;
359
    }
360
361
    /**
362
     * @return string
363
     */
364
    public function getStrISOLanguage()
365
    {
366
        return $this->strISOLanguage;
367
    }
368
369
    /**
370
     * @param string $strISOLanguage
371
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
372
     */
373
    public function setStrISOLanguage($strISOLanguage)
374
    {
375
        $this->strISOLanguage = $strISOLanguage;
376
        return $this;
377
    }
378
379
    /**
380
     * @return string
381
     */
382
    public function getStrFirstName()
383
    {
384
        return $this->strFirstName;
385
    }
386
387
    /**
388
     * @param string $strFirstName
389
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
390
     */
391
    public function setStrFirstName($strFirstName)
392
    {
393
        $this->strFirstName = $strFirstName;
394
        return $this;
395
    }
396
397
    /**
398
     * @return string
399
     */
400
    public function getStrLastName()
401
    {
402
        return $this->strLastName;
403
    }
404
405
    /**
406
     * @param string $strLastName
407
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
408
     */
409
    public function setStrLastName($strLastName)
410
    {
411
        $this->strLastName = $strLastName;
412
        return $this;
413
    }
414
415
    /**
416
     * @return string
417
     */
418
    public function getStrCompany()
419
    {
420
        return $this->strCompany;
421
    }
422
423
    /**
424
     * @param string $strCompany
425
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
426
     */
427
    public function setStrCompany($strCompany)
428
    {
429
        $this->strCompany = $strCompany;
430
        return $this;
431
    }
432
433
    /**
434
     * @return string
435
     */
436
    public function getStrAddress1()
437
    {
438
        return $this->strAddress1;
439
    }
440
441
    /**
442
     * @param string $strAddress1
443
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
444
     */
445
    public function setStrAddress1($strAddress1)
446
    {
447
        $this->strAddress1 = $strAddress1;
448
        return $this;
449
    }
450
451
    /**
452
     * @return string
453
     */
454
    public function getStrAddress2()
455
    {
456
        return $this->strAddress2;
457
    }
458
459
    /**
460
     * @param string $strAddress2
461
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
462
     */
463
    public function setStrAddress2($strAddress2)
464
    {
465
        $this->strAddress2 = $strAddress2;
466
        return $this;
467
    }
468
469
    /**
470
     * @return string
471
     */
472
    public function getStrCity()
473
    {
474
        return $this->strCity;
475
    }
476
477
    /**
478
     * @param string $strCity
479
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
480
     */
481
    public function setStrCity($strCity)
482
    {
483
        $this->strCity = $strCity;
484
        return $this;
485
    }
486
487
    /**
488
     * @return string
489
     */
490
    public function getStrState()
491
    {
492
        return $this->strState;
493
    }
494
495
    /**
496
     * @param string $strState
497
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
498
     */
499
    public function setStrState($strState)
500
    {
501
        $this->strState = $strState;
502
        return $this;
503
    }
504
505
    /**
506
     * @return string
507
     */
508
    public function getStrCountry()
509
    {
510
        return $this->strCountry;
511
    }
512
513
    /**
514
     * @param string $strCountry
515
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
516
     */
517
    public function setStrCountry($strCountry)
518
    {
519
        $this->strCountry = $strCountry;
520
        return $this;
521
    }
522
523
    /**
524
     * @return string
525
     */
526
    public function getStrZip()
527
    {
528
        return $this->strZip;
529
    }
530
531
    /**
532
     * @param string $strZip
533
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
534
     */
535
    public function setStrZip($strZip)
536
    {
537
        $this->strZip = $strZip;
538
        return $this;
539
    }
540
541
    /**
542
     * @return string
543
     */
544
    public function getStrPhone()
545
    {
546
        return $this->strPhone;
547
    }
548
549
    /**
550
     * @param string $strPhone
551
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
552
     */
553
    public function setStrPhone($strPhone)
554
    {
555
        $this->strPhone = $strPhone;
556
        return $this;
557
    }
558
559
    /**
560
     * @return string
561
     */
562
    public function getStrEmail()
563
    {
564
        return $this->strEmail;
565
    }
566
567
    /**
568
     * @param string $strEmail
569
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
570
     */
571
    public function setStrEmail($strEmail)
572
    {
573
        $this->strEmail = $strEmail;
574
        return $this;
575
    }
576
577
    /**
578
     * @return int
579
     */
580
    public function getIntCCType()
581
    {
582
        return $this->intCCType;
583
    }
584
585
    /**
586
     * @param int $intCCType
587
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
588
     */
589
    public function setIntCCType($intCCType)
590
    {
591
        $this->intCCType = $intCCType;
592
        return $this;
593
    }
594
595
    /**
596
     * @return string
597
     */
598
    public function getStrVaultTokenGuid()
599
    {
600
        return $this->strVaultTokenGuid;
601
    }
602
603
    /**
604
     * @param string $strVaultTokenGuid
605
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
606
     */
607
    public function setStrVaultTokenGuid($strVaultTokenGuid)
608
    {
609
        $this->strVaultTokenGuid = $strVaultTokenGuid;
610
        return $this;
611
    }
612
613
    /**
614
     * @return \DateTime
615
     */
616
    public function getDtCCExp()
617
    {
618
        if ($this->dtCCExp == null) {
619
            return null;
620
        } else {
621
            try {
622
                return new \DateTime($this->dtCCExp);
623
            } catch (\Exception $e) {
624
                return false;
625
            }
626
        }
627
    }
628
629
    /**
630
     * @param \DateTime $dtCCExp
631
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
632
     */
633
    public function setDtCCExp(\DateTime $dtCCExp)
634
    {
635
        $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...
636
        return $this;
637
    }
638
639
    /**
640
     * @return \DateTime
641
     */
642
    public function getDtArrivalDate()
643
    {
644
        if ($this->dtArrivalDate == null) {
645
            return null;
646
        } else {
647
            try {
648
                return new \DateTime($this->dtArrivalDate);
649
            } catch (\Exception $e) {
650
                return false;
651
            }
652
        }
653
    }
654
655
    /**
656
     * @param \DateTime $dtArrivalDate
657
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
658
     */
659
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
660
    {
661
        $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...
662
        return $this;
663
    }
664
665
    /**
666
     * @return \DateTime
667
     */
668
    public function getDtDepartureDate()
669
    {
670
        if ($this->dtDepartureDate == null) {
671
            return null;
672
        } else {
673
            try {
674
                return new \DateTime($this->dtDepartureDate);
675
            } catch (\Exception $e) {
676
                return false;
677
            }
678
        }
679
    }
680
681
    /**
682
     * @param \DateTime $dtDepartureDate
683
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
684
     */
685
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
686
    {
687
        $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...
688
        return $this;
689
    }
690
691
    /**
692
     * @return int
693
     */
694
    public function getIntGuestCount()
695
    {
696
        return $this->intGuestCount;
697
    }
698
699
    /**
700
     * @param int $intGuestCount
701
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
702
     */
703
    public function setIntGuestCount($intGuestCount)
704
    {
705
        $this->intGuestCount = $intGuestCount;
706
        return $this;
707
    }
708
709
    /**
710
     * @return string
711
     */
712
    public function getStrChildren()
713
    {
714
        return $this->strChildren;
715
    }
716
717
    /**
718
     * @param string $strChildren
719
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
720
     */
721
    public function setStrChildren($strChildren)
722
    {
723
        $this->strChildren = $strChildren;
724
        return $this;
725
    }
726
727
    /**
728
     * @return int
729
     */
730
    public function getIntRateID()
731
    {
732
        return $this->intRateID;
733
    }
734
735
    /**
736
     * @param int $intRateID
737
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
738
     */
739
    public function setIntRateID($intRateID)
740
    {
741
        $this->intRateID = $intRateID;
742
        return $this;
743
    }
744
745
    /**
746
     * @return int
747
     */
748
    public function getIntRoomTypeID()
749
    {
750
        return $this->intRoomTypeID;
751
    }
752
753
    /**
754
     * @param int $intRoomTypeID
755
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
756
     */
757
    public function setIntRoomTypeID($intRoomTypeID)
758
    {
759
        $this->intRoomTypeID = $intRoomTypeID;
760
        return $this;
761
    }
762
763
    /**
764
     * @return int
765
     */
766
    public function getIntPromoPushID()
767
    {
768
        return $this->intPromoPushID;
769
    }
770
771
    /**
772
     * @param int $intPromoPushID
773
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
774
     */
775
    public function setIntPromoPushID($intPromoPushID)
776
    {
777
        $this->intPromoPushID = $intPromoPushID;
778
        return $this;
779
    }
780
781
    /**
782
     * @return int
783
     */
784
    public function getIntPromoCodeID()
785
    {
786
        return $this->intPromoCodeID;
787
    }
788
789
    /**
790
     * @param int $intPromoCodeID
791
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
792
     */
793
    public function setIntPromoCodeID($intPromoCodeID)
794
    {
795
        $this->intPromoCodeID = $intPromoCodeID;
796
        return $this;
797
    }
798
799
    /**
800
     * @return string
801
     */
802
    public function getStrAttributes()
803
    {
804
        return $this->strAttributes;
805
    }
806
807
    /**
808
     * @param string $strAttributes
809
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
810
     */
811
    public function setStrAttributes($strAttributes)
812
    {
813
        $this->strAttributes = $strAttributes;
814
        return $this;
815
    }
816
817
    /**
818
     * @return string
819
     */
820
    public function getStrLocations()
821
    {
822
        return $this->strLocations;
823
    }
824
825
    /**
826
     * @param string $strLocations
827
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
828
     */
829
    public function setStrLocations($strLocations)
830
    {
831
        $this->strLocations = $strLocations;
832
        return $this;
833
    }
834
835
    /**
836
     * @return string
837
     */
838
    public function getStrSpecialRequests()
839
    {
840
        return $this->strSpecialRequests;
841
    }
842
843
    /**
844
     * @param string $strSpecialRequests
845
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
846
     */
847
    public function setStrSpecialRequests($strSpecialRequests)
848
    {
849
        $this->strSpecialRequests = $strSpecialRequests;
850
        return $this;
851
    }
852
853
    /**
854
     * @return string
855
     */
856
    public function getStrActivityStructure()
857
    {
858
        return $this->strActivityStructure;
859
    }
860
861
    /**
862
     * @param string $strActivityStructure
863
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
864
     */
865
    public function setStrActivityStructure($strActivityStructure)
866
    {
867
        $this->strActivityStructure = $strActivityStructure;
868
        return $this;
869
    }
870
871
    /**
872
     * @return int
873
     */
874
    public function getIntRoomQty()
875
    {
876
        return $this->intRoomQty;
877
    }
878
879
    /**
880
     * @param int $intRoomQty
881
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
882
     */
883
    public function setIntRoomQty($intRoomQty)
884
    {
885
        $this->intRoomQty = $intRoomQty;
886
        return $this;
887
    }
888
889
    /**
890
     * @return dstElements
891
     */
892
    public function getDstElements()
893
    {
894
        return $this->dstElements;
895
    }
896
897
    /**
898
     * @param dstElements $dstElements
899
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
900
     */
901
    public function setDstElements($dstElements)
902
    {
903
        $this->dstElements = $dstElements;
904
        return $this;
905
    }
906
907
    /**
908
     * @return int
909
     */
910
    public function getIntTANo()
911
    {
912
        return $this->intTANo;
913
    }
914
915
    /**
916
     * @param int $intTANo
917
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
918
     */
919
    public function setIntTANo($intTANo)
920
    {
921
        $this->intTANo = $intTANo;
922
        return $this;
923
    }
924
925
    /**
926
     * @return int
927
     */
928
    public function getIntMemNo()
929
    {
930
        return $this->intMemNo;
931
    }
932
933
    /**
934
     * @param int $intMemNo
935
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
936
     */
937
    public function setIntMemNo($intMemNo)
938
    {
939
        $this->intMemNo = $intMemNo;
940
        return $this;
941
    }
942
943
    /**
944
     * @return dstGolfPackageItems
945
     */
946
    public function getDstGolfPackageItems()
947
    {
948
        return $this->dstGolfPackageItems;
949
    }
950
951
    /**
952
     * @param dstGolfPackageItems $dstGolfPackageItems
953
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
954
     */
955
    public function setDstGolfPackageItems($dstGolfPackageItems)
956
    {
957
        $this->dstGolfPackageItems = $dstGolfPackageItems;
958
        return $this;
959
    }
960
961
    /**
962
     * @return int
963
     */
964
    public function getIntCondoOwnerId()
965
    {
966
        return $this->intCondoOwnerId;
967
    }
968
969
    /**
970
     * @param int $intCondoOwnerId
971
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
972
     */
973
    public function setIntCondoOwnerId($intCondoOwnerId)
974
    {
975
        $this->intCondoOwnerId = $intCondoOwnerId;
976
        return $this;
977
    }
978
979
    /**
980
     * @return int
981
     */
982
    public function getIntRoomId()
983
    {
984
        return $this->intRoomId;
985
    }
986
987
    /**
988
     * @param int $intRoomId
989
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
990
     */
991
    public function setIntRoomId($intRoomId)
992
    {
993
        $this->intRoomId = $intRoomId;
994
        return $this;
995
    }
996
997
    /**
998
     * @return int
999
     */
1000
    public function getIntBookingCondoType()
1001
    {
1002
        return $this->intBookingCondoType;
1003
    }
1004
1005
    /**
1006
     * @param int $intBookingCondoType
1007
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1008
     */
1009
    public function setIntBookingCondoType($intBookingCondoType)
1010
    {
1011
        $this->intBookingCondoType = $intBookingCondoType;
1012
        return $this;
1013
    }
1014
1015
    /**
1016
     * @return int
1017
     */
1018
    public function getGroupID()
1019
    {
1020
        return $this->GroupID;
1021
    }
1022
1023
    /**
1024
     * @param int $GroupID
1025
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1026
     */
1027
    public function setGroupID($GroupID)
1028
    {
1029
        $this->GroupID = $GroupID;
1030
        return $this;
1031
    }
1032
1033
    /**
1034
     * @return int
1035
     */
1036
    public function getGroupPrivateGridID()
1037
    {
1038
        return $this->GroupPrivateGridID;
1039
    }
1040
1041
    /**
1042
     * @param int $GroupPrivateGridID
1043
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1044
     */
1045
    public function setGroupPrivateGridID($GroupPrivateGridID)
1046
    {
1047
        $this->GroupPrivateGridID = $GroupPrivateGridID;
1048
        return $this;
1049
    }
1050
1051
    /**
1052
     * @return TManualTypeBooking
1053
     */
1054
    public function getManualType()
1055
    {
1056
        return $this->ManualType;
1057
    }
1058
1059
    /**
1060
     * @param TManualTypeBooking $ManualType
1061
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1062
     */
1063
    public function setManualType($ManualType)
1064
    {
1065
        $this->ManualType = $ManualType;
1066
        return $this;
1067
    }
1068
1069
    /**
1070
     * @return TSBDSvcChargeStayStatus
1071
     */
1072
    public function getTvlInsSvcChargeStayStatus()
1073
    {
1074
        return $this->TvlInsSvcChargeStayStatus;
1075
    }
1076
1077
    /**
1078
     * @param TSBDSvcChargeStayStatus $TvlInsSvcChargeStayStatus
1079
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1080
     */
1081
    public function setTvlInsSvcChargeStayStatus($TvlInsSvcChargeStayStatus)
1082
    {
1083
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
1084
        return $this;
1085
    }
1086
1087
    /**
1088
     * @return int
1089
     */
1090
    public function getID_Member()
1091
    {
1092
        return $this->ID_Member;
1093
    }
1094
1095
    /**
1096
     * @param int $ID_Member
1097
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1098
     */
1099
    public function setID_Member($ID_Member)
1100
    {
1101
        $this->ID_Member = $ID_Member;
1102
        return $this;
1103
    }
1104
1105
    /**
1106
     * @return string
1107
     */
1108
    public function getStrComments()
1109
    {
1110
        return $this->strComments;
1111
    }
1112
1113
    /**
1114
     * @param string $strComments
1115
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1116
     */
1117
    public function setStrComments($strComments)
1118
    {
1119
        $this->strComments = $strComments;
1120
        return $this;
1121
    }
1122
1123
    /**
1124
     * @return boolean
1125
     */
1126
    public function getIsPaidByFOO()
1127
    {
1128
        return $this->IsPaidByFOO;
1129
    }
1130
1131
    /**
1132
     * @param boolean $IsPaidByFOO
1133
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1134
     */
1135
    public function setIsPaidByFOO($IsPaidByFOO)
1136
    {
1137
        $this->IsPaidByFOO = $IsPaidByFOO;
1138
        return $this;
1139
    }
1140
1141
    /**
1142
     * @return boolean
1143
     */
1144
    public function getIsApplySpecialOffers()
1145
    {
1146
        return $this->IsApplySpecialOffers;
1147
    }
1148
1149
    /**
1150
     * @param boolean $IsApplySpecialOffers
1151
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1152
     */
1153
    public function setIsApplySpecialOffers($IsApplySpecialOffers)
1154
    {
1155
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
1156
        return $this;
1157
    }
1158
1159
    /**
1160
     * @return int
1161
     */
1162
    public function getIntBusinessSourceID()
1163
    {
1164
        return $this->intBusinessSourceID;
1165
    }
1166
1167
    /**
1168
     * @param int $intBusinessSourceID
1169
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1170
     */
1171
    public function setIntBusinessSourceID($intBusinessSourceID)
1172
    {
1173
        $this->intBusinessSourceID = $intBusinessSourceID;
1174
        return $this;
1175
    }
1176
1177
    /**
1178
     * @return dstServicesChargesALaCarte
1179
     */
1180
    public function getDstServicesChargesALaCarte()
1181
    {
1182
        return $this->dstServicesChargesALaCarte;
1183
    }
1184
1185
    /**
1186
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
1187
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1188
     */
1189
    public function setDstServicesChargesALaCarte($dstServicesChargesALaCarte)
1190
    {
1191
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
1192
        return $this;
1193
    }
1194
1195
    /**
1196
     * @return int
1197
     */
1198
    public function getIntSuiteConfigurationID()
1199
    {
1200
        return $this->intSuiteConfigurationID;
1201
    }
1202
1203
    /**
1204
     * @param int $intSuiteConfigurationID
1205
     * @return \Gueststream\PMS\IQWare\API\WebRes_SaveReservation
1206
     */
1207
    public function setIntSuiteConfigurationID($intSuiteConfigurationID)
1208
    {
1209
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
1210
        return $this;
1211
    }
1212
}
1213