GetSingleStayValueBackToBack::setDArrDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetSingleStayValueBackToBack
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 int $intRoomType
20
     */
21
    protected $intRoomType = null;
22
23
    /**
24
     * @var int $intRateID
25
     */
26
    protected $intRateID = null;
27
28
    /**
29
     * @var int $ID_PromoCode
30
     */
31
    protected $ID_PromoCode = null;
32
33
    /**
34
     * @var int $intGuestCount
35
     */
36
    protected $intGuestCount = null;
37
38
    /**
39
     * @var string $strChildren
40
     */
41
    protected $strChildren = null;
42
43
    /**
44
     * @var \DateTime $dArrDate
45
     */
46
    protected $dArrDate = null;
47
48
    /**
49
     * @var \DateTime $dDepDate
50
     */
51
    protected $dDepDate = null;
52
53
    /**
54
     * @var string $strAttributes
55
     */
56
    protected $strAttributes = null;
57
58
    /**
59
     * @var string $strLocations
60
     */
61
    protected $strLocations = null;
62
63
    /**
64
     * @var dstElements $dstElements
65
     */
66
    protected $dstElements = null;
67
68
    /**
69
     * @var int $intRoomQty
70
     */
71
    protected $intRoomQty = null;
72
73
    /**
74
     * @var boolean $IsInsuranceAccepted
75
     */
76
    protected $IsInsuranceAccepted = null;
77
78
    /**
79
     * @var string $strAttributeGroupings
80
     */
81
    protected $strAttributeGroupings = null;
82
83
    /**
84
     * @var string $strLocationsGroupings
85
     */
86
    protected $strLocationsGroupings = null;
87
88
    /**
89
     * @var boolean $isRBO
90
     */
91
    protected $isRBO = null;
92
93
    /**
94
     * @var boolean $MustEvaluateRBO
95
     */
96
    protected $MustEvaluateRBO = null;
97
98
    /**
99
     * @var string $StrListSpecialOffertApplicable
100
     */
101
    protected $StrListSpecialOffertApplicable = null;
102
103
    /**
104
     * @var XMLDailyManualRates $XMLDailyManualRates
105
     */
106
    protected $XMLDailyManualRates = null;
107
108
    /**
109
     * @var string $XMLDailyRates
110
     */
111
    protected $XMLDailyRates = null;
112
113
    /**
114
     * @var string $XMLServicesChargesALaCarte
115
     */
116
    protected $XMLServicesChargesALaCarte = null;
117
118
    /**
119
     * @var int $ID_Room
120
     */
121
    protected $ID_Room = null;
122
123
    /**
124
     * @var int $ID_Building
125
     */
126
    protected $ID_Building = null;
127
128
    /**
129
     * @var string $strRateSpecial
130
     */
131
    protected $strRateSpecial = null;
132
133
    /**
134
     * @var IAB2BMode $BackToBackMode
135
     */
136
    protected $BackToBackMode = null;
137
138
    /**
139
     * @var int $intBusinessSourceID
140
     */
141
    protected $intBusinessSourceID = null;
142
143
    /**
144
     * @param int $intGUID
145
     * @param string $strISOLanguage
146
     * @param int $intRoomType
147
     * @param int $intRateID
148
     * @param int $ID_PromoCode
149
     * @param int $intGuestCount
150
     * @param string $strChildren
151
     * @param \DateTime $dArrDate
152
     * @param \DateTime $dDepDate
153
     * @param string $strAttributes
154
     * @param string $strLocations
155
     * @param dstElements $dstElements
156
     * @param int $intRoomQty
157
     * @param boolean $IsInsuranceAccepted
158
     * @param string $strAttributeGroupings
159
     * @param string $strLocationsGroupings
160
     * @param boolean $isRBO
161
     * @param boolean $MustEvaluateRBO
162
     * @param string $StrListSpecialOffertApplicable
163
     * @param XMLDailyManualRates $XMLDailyManualRates
164
     * @param string $XMLDailyRates
165
     * @param string $XMLServicesChargesALaCarte
166
     * @param int $ID_Room
167
     * @param int $ID_Building
168
     * @param string $strRateSpecial
169
     * @param IAB2BMode $BackToBackMode
170
     * @param int $intBusinessSourceID
171
     */
172
    public function __construct($intGUID, $strISOLanguage, $intRoomType, $intRateID, $ID_PromoCode, $intGuestCount, $strChildren, \DateTime $dArrDate, \DateTime $dDepDate, $strAttributes, $strLocations, $dstElements, $intRoomQty, $IsInsuranceAccepted, $strAttributeGroupings, $strLocationsGroupings, $isRBO, $MustEvaluateRBO, $StrListSpecialOffertApplicable, $XMLDailyManualRates, $XMLDailyRates, $XMLServicesChargesALaCarte, $ID_Room, $ID_Building, $strRateSpecial, $BackToBackMode, $intBusinessSourceID)
173
    {
174
        $this->intGUID = $intGUID;
175
        $this->strISOLanguage = $strISOLanguage;
176
        $this->intRoomType = $intRoomType;
177
        $this->intRateID = $intRateID;
178
        $this->ID_PromoCode = $ID_PromoCode;
179
        $this->intGuestCount = $intGuestCount;
180
        $this->strChildren = $strChildren;
181
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

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...
182
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

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...
183
        $this->strAttributes = $strAttributes;
184
        $this->strLocations = $strLocations;
185
        $this->dstElements = $dstElements;
186
        $this->intRoomQty = $intRoomQty;
187
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
188
        $this->strAttributeGroupings = $strAttributeGroupings;
189
        $this->strLocationsGroupings = $strLocationsGroupings;
190
        $this->isRBO = $isRBO;
191
        $this->MustEvaluateRBO = $MustEvaluateRBO;
192
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
193
        $this->XMLDailyManualRates = $XMLDailyManualRates;
194
        $this->XMLDailyRates = $XMLDailyRates;
195
        $this->XMLServicesChargesALaCarte = $XMLServicesChargesALaCarte;
196
        $this->ID_Room = $ID_Room;
197
        $this->ID_Building = $ID_Building;
198
        $this->strRateSpecial = $strRateSpecial;
199
        $this->BackToBackMode = $BackToBackMode;
200
        $this->intBusinessSourceID = $intBusinessSourceID;
201
    }
202
203
    /**
204
     * @return int
205
     */
206
    public function getIntGUID()
207
    {
208
        return $this->intGUID;
209
    }
210
211
    /**
212
     * @param int $intGUID
213
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
214
     */
215
    public function setIntGUID($intGUID)
216
    {
217
        $this->intGUID = $intGUID;
218
        return $this;
219
    }
220
221
    /**
222
     * @return string
223
     */
224
    public function getStrISOLanguage()
225
    {
226
        return $this->strISOLanguage;
227
    }
228
229
    /**
230
     * @param string $strISOLanguage
231
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
232
     */
233
    public function setStrISOLanguage($strISOLanguage)
234
    {
235
        $this->strISOLanguage = $strISOLanguage;
236
        return $this;
237
    }
238
239
    /**
240
     * @return int
241
     */
242
    public function getIntRoomType()
243
    {
244
        return $this->intRoomType;
245
    }
246
247
    /**
248
     * @param int $intRoomType
249
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
250
     */
251
    public function setIntRoomType($intRoomType)
252
    {
253
        $this->intRoomType = $intRoomType;
254
        return $this;
255
    }
256
257
    /**
258
     * @return int
259
     */
260
    public function getIntRateID()
261
    {
262
        return $this->intRateID;
263
    }
264
265
    /**
266
     * @param int $intRateID
267
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
268
     */
269
    public function setIntRateID($intRateID)
270
    {
271
        $this->intRateID = $intRateID;
272
        return $this;
273
    }
274
275
    /**
276
     * @return int
277
     */
278
    public function getID_PromoCode()
279
    {
280
        return $this->ID_PromoCode;
281
    }
282
283
    /**
284
     * @param int $ID_PromoCode
285
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
286
     */
287
    public function setID_PromoCode($ID_PromoCode)
288
    {
289
        $this->ID_PromoCode = $ID_PromoCode;
290
        return $this;
291
    }
292
293
    /**
294
     * @return int
295
     */
296
    public function getIntGuestCount()
297
    {
298
        return $this->intGuestCount;
299
    }
300
301
    /**
302
     * @param int $intGuestCount
303
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
304
     */
305
    public function setIntGuestCount($intGuestCount)
306
    {
307
        $this->intGuestCount = $intGuestCount;
308
        return $this;
309
    }
310
311
    /**
312
     * @return string
313
     */
314
    public function getStrChildren()
315
    {
316
        return $this->strChildren;
317
    }
318
319
    /**
320
     * @param string $strChildren
321
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
322
     */
323
    public function setStrChildren($strChildren)
324
    {
325
        $this->strChildren = $strChildren;
326
        return $this;
327
    }
328
329
    /**
330
     * @return \DateTime
331
     */
332
    public function getDArrDate()
333
    {
334
        if ($this->dArrDate == null) {
335
            return null;
336
        } else {
337
            try {
338
                return new \DateTime($this->dArrDate);
339
            } catch (\Exception $e) {
340
                return false;
341
            }
342
        }
343
    }
344
345
    /**
346
     * @param \DateTime $dArrDate
347
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
348
     */
349
    public function setDArrDate(\DateTime $dArrDate)
350
    {
351
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

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...
352
        return $this;
353
    }
354
355
    /**
356
     * @return \DateTime
357
     */
358
    public function getDDepDate()
359
    {
360
        if ($this->dDepDate == null) {
361
            return null;
362
        } else {
363
            try {
364
                return new \DateTime($this->dDepDate);
365
            } catch (\Exception $e) {
366
                return false;
367
            }
368
        }
369
    }
370
371
    /**
372
     * @param \DateTime $dDepDate
373
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
374
     */
375
    public function setDDepDate(\DateTime $dDepDate)
376
    {
377
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

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...
378
        return $this;
379
    }
380
381
    /**
382
     * @return string
383
     */
384
    public function getStrAttributes()
385
    {
386
        return $this->strAttributes;
387
    }
388
389
    /**
390
     * @param string $strAttributes
391
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
392
     */
393
    public function setStrAttributes($strAttributes)
394
    {
395
        $this->strAttributes = $strAttributes;
396
        return $this;
397
    }
398
399
    /**
400
     * @return string
401
     */
402
    public function getStrLocations()
403
    {
404
        return $this->strLocations;
405
    }
406
407
    /**
408
     * @param string $strLocations
409
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
410
     */
411
    public function setStrLocations($strLocations)
412
    {
413
        $this->strLocations = $strLocations;
414
        return $this;
415
    }
416
417
    /**
418
     * @return dstElements
419
     */
420
    public function getDstElements()
421
    {
422
        return $this->dstElements;
423
    }
424
425
    /**
426
     * @param dstElements $dstElements
427
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
428
     */
429
    public function setDstElements($dstElements)
430
    {
431
        $this->dstElements = $dstElements;
432
        return $this;
433
    }
434
435
    /**
436
     * @return int
437
     */
438
    public function getIntRoomQty()
439
    {
440
        return $this->intRoomQty;
441
    }
442
443
    /**
444
     * @param int $intRoomQty
445
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
446
     */
447
    public function setIntRoomQty($intRoomQty)
448
    {
449
        $this->intRoomQty = $intRoomQty;
450
        return $this;
451
    }
452
453
    /**
454
     * @return boolean
455
     */
456
    public function getIsInsuranceAccepted()
457
    {
458
        return $this->IsInsuranceAccepted;
459
    }
460
461
    /**
462
     * @param boolean $IsInsuranceAccepted
463
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
464
     */
465
    public function setIsInsuranceAccepted($IsInsuranceAccepted)
466
    {
467
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
468
        return $this;
469
    }
470
471
    /**
472
     * @return string
473
     */
474
    public function getStrAttributeGroupings()
475
    {
476
        return $this->strAttributeGroupings;
477
    }
478
479
    /**
480
     * @param string $strAttributeGroupings
481
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
482
     */
483
    public function setStrAttributeGroupings($strAttributeGroupings)
484
    {
485
        $this->strAttributeGroupings = $strAttributeGroupings;
486
        return $this;
487
    }
488
489
    /**
490
     * @return string
491
     */
492
    public function getStrLocationsGroupings()
493
    {
494
        return $this->strLocationsGroupings;
495
    }
496
497
    /**
498
     * @param string $strLocationsGroupings
499
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
500
     */
501
    public function setStrLocationsGroupings($strLocationsGroupings)
502
    {
503
        $this->strLocationsGroupings = $strLocationsGroupings;
504
        return $this;
505
    }
506
507
    /**
508
     * @return boolean
509
     */
510
    public function getIsRBO()
511
    {
512
        return $this->isRBO;
513
    }
514
515
    /**
516
     * @param boolean $isRBO
517
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
518
     */
519
    public function setIsRBO($isRBO)
520
    {
521
        $this->isRBO = $isRBO;
522
        return $this;
523
    }
524
525
    /**
526
     * @return boolean
527
     */
528
    public function getMustEvaluateRBO()
529
    {
530
        return $this->MustEvaluateRBO;
531
    }
532
533
    /**
534
     * @param boolean $MustEvaluateRBO
535
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
536
     */
537
    public function setMustEvaluateRBO($MustEvaluateRBO)
538
    {
539
        $this->MustEvaluateRBO = $MustEvaluateRBO;
540
        return $this;
541
    }
542
543
    /**
544
     * @return string
545
     */
546
    public function getStrListSpecialOffertApplicable()
547
    {
548
        return $this->StrListSpecialOffertApplicable;
549
    }
550
551
    /**
552
     * @param string $StrListSpecialOffertApplicable
553
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
554
     */
555
    public function setStrListSpecialOffertApplicable($StrListSpecialOffertApplicable)
556
    {
557
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
558
        return $this;
559
    }
560
561
    /**
562
     * @return XMLDailyManualRates
563
     */
564
    public function getXMLDailyManualRates()
565
    {
566
        return $this->XMLDailyManualRates;
567
    }
568
569
    /**
570
     * @param XMLDailyManualRates $XMLDailyManualRates
571
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
572
     */
573
    public function setXMLDailyManualRates($XMLDailyManualRates)
574
    {
575
        $this->XMLDailyManualRates = $XMLDailyManualRates;
576
        return $this;
577
    }
578
579
    /**
580
     * @return string
581
     */
582
    public function getXMLDailyRates()
583
    {
584
        return $this->XMLDailyRates;
585
    }
586
587
    /**
588
     * @param string $XMLDailyRates
589
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
590
     */
591
    public function setXMLDailyRates($XMLDailyRates)
592
    {
593
        $this->XMLDailyRates = $XMLDailyRates;
594
        return $this;
595
    }
596
597
    /**
598
     * @return string
599
     */
600
    public function getXMLServicesChargesALaCarte()
601
    {
602
        return $this->XMLServicesChargesALaCarte;
603
    }
604
605
    /**
606
     * @param string $XMLServicesChargesALaCarte
607
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
608
     */
609
    public function setXMLServicesChargesALaCarte($XMLServicesChargesALaCarte)
610
    {
611
        $this->XMLServicesChargesALaCarte = $XMLServicesChargesALaCarte;
612
        return $this;
613
    }
614
615
    /**
616
     * @return int
617
     */
618
    public function getID_Room()
619
    {
620
        return $this->ID_Room;
621
    }
622
623
    /**
624
     * @param int $ID_Room
625
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
626
     */
627
    public function setID_Room($ID_Room)
628
    {
629
        $this->ID_Room = $ID_Room;
630
        return $this;
631
    }
632
633
    /**
634
     * @return int
635
     */
636
    public function getID_Building()
637
    {
638
        return $this->ID_Building;
639
    }
640
641
    /**
642
     * @param int $ID_Building
643
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
644
     */
645
    public function setID_Building($ID_Building)
646
    {
647
        $this->ID_Building = $ID_Building;
648
        return $this;
649
    }
650
651
    /**
652
     * @return string
653
     */
654
    public function getStrRateSpecial()
655
    {
656
        return $this->strRateSpecial;
657
    }
658
659
    /**
660
     * @param string $strRateSpecial
661
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
662
     */
663
    public function setStrRateSpecial($strRateSpecial)
664
    {
665
        $this->strRateSpecial = $strRateSpecial;
666
        return $this;
667
    }
668
669
    /**
670
     * @return IAB2BMode
671
     */
672
    public function getBackToBackMode()
673
    {
674
        return $this->BackToBackMode;
675
    }
676
677
    /**
678
     * @param IAB2BMode $BackToBackMode
679
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
680
     */
681
    public function setBackToBackMode($BackToBackMode)
682
    {
683
        $this->BackToBackMode = $BackToBackMode;
684
        return $this;
685
    }
686
687
    /**
688
     * @return int
689
     */
690
    public function getIntBusinessSourceID()
691
    {
692
        return $this->intBusinessSourceID;
693
    }
694
695
    /**
696
     * @param int $intBusinessSourceID
697
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueBackToBack
698
     */
699
    public function setIntBusinessSourceID($intBusinessSourceID)
700
    {
701
        $this->intBusinessSourceID = $intBusinessSourceID;
702
        return $this;
703
    }
704
}
705