SaveReservationWithManualRates   D
last analyzed

Complexity

Total Complexity 111

Size/Duplication

Total Lines 1333
Duplicated Lines 100 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 111
lcom 3
cbo 0
dl 1333
loc 1333
ccs 0
cts 547
cp 0
rs 4.4102
c 0
b 0
f 0

105 Methods

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

How to fix   Duplicated Code    Complexity   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

Complex Class

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

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

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

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

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