SaveReservationWithCardProcessed   D
last analyzed

Complexity

Total Complexity 113

Size/Duplication

Total Lines 1358
Duplicated Lines 0 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 113
lcom 3
cbo 0
dl 0
loc 1358
ccs 0
cts 557
cp 0
rs 4.4102
c 0
b 0
f 0

107 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 56 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 getCVV2() 0 4 1
A setCVV2() 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 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 getVaultLogin() 0 4 1
A setVaultLogin() 0 5 1
A getVaultPassword() 0 4 1
A setVaultPassword() 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 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   Complexity   

Complex Class

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

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