GroupValues::getRoomTypeName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GroupValues extends InfoMessage
6
{
7
8
    /**
9
     * @var int $ID_RoomType
10
     */
11
    protected $ID_RoomType = null;
12
13
    /**
14
     * @var int $GuestMax
15
     */
16
    protected $GuestMax = null;
17
18
    /**
19
     * @var string $RoomTypeName
20
     */
21
    protected $RoomTypeName = null;
22
23
    /**
24
     * @var string $GroupName
25
     */
26
    protected $GroupName = null;
27
28
    /**
29
     * @var string $GrpID
30
     */
31
    protected $GrpID = null;
32
33
    /**
34
     * @var int $ID_Group
35
     */
36
    protected $ID_Group = null;
37
38
    /**
39
     * @var int $ID_PrivateGrid
40
     */
41
    protected $ID_PrivateGrid = null;
42
43
    /**
44
     * @var int $ID_RateCodeTmpl
45
     */
46
    protected $ID_RateCodeTmpl = null;
47
48
    /**
49
     * @var \DateTime $StartDate
50
     */
51
    protected $StartDate = null;
52
53
    /**
54
     * @var \DateTime $EndDate
55
     */
56
    protected $EndDate = null;
57
58
    /**
59
     * @var boolean $IsPriceFromPrivateGrid
60
     */
61
    protected $IsPriceFromPrivateGrid = null;
62
63
    /**
64
     * @var string $SingleOcc
65
     */
66
    protected $SingleOcc = null;
67
68
    /**
69
     * @var string $DoubleOcc
70
     */
71
    protected $DoubleOcc = null;
72
73
    /**
74
     * @var string $TripleOcc
75
     */
76
    protected $TripleOcc = null;
77
78
    /**
79
     * @var string $QuadOcc
80
     */
81
    protected $QuadOcc = null;
82
83
    /**
84
     * @var string $Additional
85
     */
86
    protected $Additional = null;
87
88
    /**
89
     * @var string $Cat1
90
     */
91
    protected $Cat1 = null;
92
93
    /**
94
     * @var string $Cat2
95
     */
96
    protected $Cat2 = null;
97
98
    /**
99
     * @var string $Cat3
100
     */
101
    protected $Cat3 = null;
102
103
    /**
104
     * @var string $Cat4
105
     */
106
    protected $Cat4 = null;
107
108
    /**
109
     * @var float $FirstNight
110
     */
111
    protected $FirstNight = null;
112
113
    /**
114
     * @var float $TotalStay
115
     */
116
    protected $TotalStay = null;
117
118
    /**
119
     * @var float $AvgNight
120
     */
121
    protected $AvgNight = null;
122
123
    /**
124
     * @var float $FirstNightNoTaxes
125
     */
126
    protected $FirstNightNoTaxes = null;
127
128
    /**
129
     * @var float $TotalStayNoTaxes
130
     */
131
    protected $TotalStayNoTaxes = null;
132
133
    /**
134
     * @var float $RequiredDeposit
135
     */
136
    protected $RequiredDeposit = null;
137
138
    /**
139
     * @var ArrayOfSpecificDayOccupancyValue $SpecificDaysOccValue
140
     */
141
    protected $SpecificDaysOccValue = null;
142
143
    /**
144
     * @var ArrayOfRatesDetails $groupRates
145
     */
146
    protected $groupRates = null;
147
148
    /**
149
     * @var ArrayOfDetails $UnitsAvailable
150
     */
151
    protected $UnitsAvailable = null;
152
153
    /**
154
     * @var boolean $HasValues
155
     */
156
    protected $HasValues = null;
157
158
    /**
159
     * @param int $ID_RoomType
160
     * @param int $GuestMax
161
     * @param int $ID_Group
162
     * @param int $ID_PrivateGrid
163
     * @param int $ID_RateCodeTmpl
164
     * @param \DateTime $StartDate
165
     * @param \DateTime $EndDate
166
     * @param boolean $IsPriceFromPrivateGrid
167
     * @param float $FirstNight
168
     * @param float $TotalStay
169
     * @param float $AvgNight
170
     * @param float $FirstNightNoTaxes
171
     * @param float $TotalStayNoTaxes
172
     * @param float $RequiredDeposit
173
     * @param boolean $HasValues
174
     */
175
    public function __construct($ID_RoomType, $GuestMax, $ID_Group, $ID_PrivateGrid, $ID_RateCodeTmpl, \DateTime $StartDate, \DateTime $EndDate, $IsPriceFromPrivateGrid, $FirstNight, $TotalStay, $AvgNight, $FirstNightNoTaxes, $TotalStayNoTaxes, $RequiredDeposit, $HasValues)
176
    {
177
        parent::__construct();
178
        $this->ID_RoomType = $ID_RoomType;
179
        $this->GuestMax = $GuestMax;
180
        $this->ID_Group = $ID_Group;
181
        $this->ID_PrivateGrid = $ID_PrivateGrid;
182
        $this->ID_RateCodeTmpl = $ID_RateCodeTmpl;
183
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StartDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StartDate.

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...
184
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate.

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...
185
        $this->IsPriceFromPrivateGrid = $IsPriceFromPrivateGrid;
186
        $this->FirstNight = $FirstNight;
187
        $this->TotalStay = $TotalStay;
188
        $this->AvgNight = $AvgNight;
189
        $this->FirstNightNoTaxes = $FirstNightNoTaxes;
190
        $this->TotalStayNoTaxes = $TotalStayNoTaxes;
191
        $this->RequiredDeposit = $RequiredDeposit;
192
        $this->HasValues = $HasValues;
193
    }
194
195
    /**
196
     * @return int
197
     */
198
    public function getID_RoomType()
199
    {
200
        return $this->ID_RoomType;
201
    }
202
203
    /**
204
     * @param int $ID_RoomType
205
     * @return \Gueststream\PMS\IQWare\API\GroupValues
206
     */
207
    public function setID_RoomType($ID_RoomType)
208
    {
209
        $this->ID_RoomType = $ID_RoomType;
210
        return $this;
211
    }
212
213
    /**
214
     * @return int
215
     */
216
    public function getGuestMax()
217
    {
218
        return $this->GuestMax;
219
    }
220
221
    /**
222
     * @param int $GuestMax
223
     * @return \Gueststream\PMS\IQWare\API\GroupValues
224
     */
225
    public function setGuestMax($GuestMax)
226
    {
227
        $this->GuestMax = $GuestMax;
228
        return $this;
229
    }
230
231
    /**
232
     * @return string
233
     */
234
    public function getRoomTypeName()
235
    {
236
        return $this->RoomTypeName;
237
    }
238
239
    /**
240
     * @param string $RoomTypeName
241
     * @return \Gueststream\PMS\IQWare\API\GroupValues
242
     */
243
    public function setRoomTypeName($RoomTypeName)
244
    {
245
        $this->RoomTypeName = $RoomTypeName;
246
        return $this;
247
    }
248
249
    /**
250
     * @return string
251
     */
252
    public function getGroupName()
253
    {
254
        return $this->GroupName;
255
    }
256
257
    /**
258
     * @param string $GroupName
259
     * @return \Gueststream\PMS\IQWare\API\GroupValues
260
     */
261
    public function setGroupName($GroupName)
262
    {
263
        $this->GroupName = $GroupName;
264
        return $this;
265
    }
266
267
    /**
268
     * @return string
269
     */
270
    public function getGrpID()
271
    {
272
        return $this->GrpID;
273
    }
274
275
    /**
276
     * @param string $GrpID
277
     * @return \Gueststream\PMS\IQWare\API\GroupValues
278
     */
279
    public function setGrpID($GrpID)
280
    {
281
        $this->GrpID = $GrpID;
282
        return $this;
283
    }
284
285
    /**
286
     * @return int
287
     */
288
    public function getID_Group()
289
    {
290
        return $this->ID_Group;
291
    }
292
293
    /**
294
     * @param int $ID_Group
295
     * @return \Gueststream\PMS\IQWare\API\GroupValues
296
     */
297
    public function setID_Group($ID_Group)
298
    {
299
        $this->ID_Group = $ID_Group;
300
        return $this;
301
    }
302
303
    /**
304
     * @return int
305
     */
306
    public function getID_PrivateGrid()
307
    {
308
        return $this->ID_PrivateGrid;
309
    }
310
311
    /**
312
     * @param int $ID_PrivateGrid
313
     * @return \Gueststream\PMS\IQWare\API\GroupValues
314
     */
315
    public function setID_PrivateGrid($ID_PrivateGrid)
316
    {
317
        $this->ID_PrivateGrid = $ID_PrivateGrid;
318
        return $this;
319
    }
320
321
    /**
322
     * @return int
323
     */
324
    public function getID_RateCodeTmpl()
325
    {
326
        return $this->ID_RateCodeTmpl;
327
    }
328
329
    /**
330
     * @param int $ID_RateCodeTmpl
331
     * @return \Gueststream\PMS\IQWare\API\GroupValues
332
     */
333
    public function setID_RateCodeTmpl($ID_RateCodeTmpl)
334
    {
335
        $this->ID_RateCodeTmpl = $ID_RateCodeTmpl;
336
        return $this;
337
    }
338
339
    /**
340
     * @return \DateTime
341
     */
342
    public function getStartDate()
343
    {
344
        if ($this->StartDate == null) {
345
            return null;
346
        } else {
347
            try {
348
                return new \DateTime($this->StartDate);
349
            } catch (\Exception $e) {
350
                return false;
351
            }
352
        }
353
    }
354
355
    /**
356
     * @param \DateTime $StartDate
357
     * @return \Gueststream\PMS\IQWare\API\GroupValues
358
     */
359
    public function setStartDate(\DateTime $StartDate)
360
    {
361
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StartDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StartDate.

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...
362
        return $this;
363
    }
364
365
    /**
366
     * @return \DateTime
367
     */
368
    public function getEndDate()
369
    {
370
        if ($this->EndDate == null) {
371
            return null;
372
        } else {
373
            try {
374
                return new \DateTime($this->EndDate);
375
            } catch (\Exception $e) {
376
                return false;
377
            }
378
        }
379
    }
380
381
    /**
382
     * @param \DateTime $EndDate
383
     * @return \Gueststream\PMS\IQWare\API\GroupValues
384
     */
385
    public function setEndDate(\DateTime $EndDate)
386
    {
387
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate.

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...
388
        return $this;
389
    }
390
391
    /**
392
     * @return boolean
393
     */
394
    public function getIsPriceFromPrivateGrid()
395
    {
396
        return $this->IsPriceFromPrivateGrid;
397
    }
398
399
    /**
400
     * @param boolean $IsPriceFromPrivateGrid
401
     * @return \Gueststream\PMS\IQWare\API\GroupValues
402
     */
403
    public function setIsPriceFromPrivateGrid($IsPriceFromPrivateGrid)
404
    {
405
        $this->IsPriceFromPrivateGrid = $IsPriceFromPrivateGrid;
406
        return $this;
407
    }
408
409
    /**
410
     * @return string
411
     */
412
    public function getSingleOcc()
413
    {
414
        return $this->SingleOcc;
415
    }
416
417
    /**
418
     * @param string $SingleOcc
419
     * @return \Gueststream\PMS\IQWare\API\GroupValues
420
     */
421
    public function setSingleOcc($SingleOcc)
422
    {
423
        $this->SingleOcc = $SingleOcc;
424
        return $this;
425
    }
426
427
    /**
428
     * @return string
429
     */
430
    public function getDoubleOcc()
431
    {
432
        return $this->DoubleOcc;
433
    }
434
435
    /**
436
     * @param string $DoubleOcc
437
     * @return \Gueststream\PMS\IQWare\API\GroupValues
438
     */
439
    public function setDoubleOcc($DoubleOcc)
440
    {
441
        $this->DoubleOcc = $DoubleOcc;
442
        return $this;
443
    }
444
445
    /**
446
     * @return string
447
     */
448
    public function getTripleOcc()
449
    {
450
        return $this->TripleOcc;
451
    }
452
453
    /**
454
     * @param string $TripleOcc
455
     * @return \Gueststream\PMS\IQWare\API\GroupValues
456
     */
457
    public function setTripleOcc($TripleOcc)
458
    {
459
        $this->TripleOcc = $TripleOcc;
460
        return $this;
461
    }
462
463
    /**
464
     * @return string
465
     */
466
    public function getQuadOcc()
467
    {
468
        return $this->QuadOcc;
469
    }
470
471
    /**
472
     * @param string $QuadOcc
473
     * @return \Gueststream\PMS\IQWare\API\GroupValues
474
     */
475
    public function setQuadOcc($QuadOcc)
476
    {
477
        $this->QuadOcc = $QuadOcc;
478
        return $this;
479
    }
480
481
    /**
482
     * @return string
483
     */
484
    public function getAdditional()
485
    {
486
        return $this->Additional;
487
    }
488
489
    /**
490
     * @param string $Additional
491
     * @return \Gueststream\PMS\IQWare\API\GroupValues
492
     */
493
    public function setAdditional($Additional)
494
    {
495
        $this->Additional = $Additional;
496
        return $this;
497
    }
498
499
    /**
500
     * @return string
501
     */
502
    public function getCat1()
503
    {
504
        return $this->Cat1;
505
    }
506
507
    /**
508
     * @param string $Cat1
509
     * @return \Gueststream\PMS\IQWare\API\GroupValues
510
     */
511
    public function setCat1($Cat1)
512
    {
513
        $this->Cat1 = $Cat1;
514
        return $this;
515
    }
516
517
    /**
518
     * @return string
519
     */
520
    public function getCat2()
521
    {
522
        return $this->Cat2;
523
    }
524
525
    /**
526
     * @param string $Cat2
527
     * @return \Gueststream\PMS\IQWare\API\GroupValues
528
     */
529
    public function setCat2($Cat2)
530
    {
531
        $this->Cat2 = $Cat2;
532
        return $this;
533
    }
534
535
    /**
536
     * @return string
537
     */
538
    public function getCat3()
539
    {
540
        return $this->Cat3;
541
    }
542
543
    /**
544
     * @param string $Cat3
545
     * @return \Gueststream\PMS\IQWare\API\GroupValues
546
     */
547
    public function setCat3($Cat3)
548
    {
549
        $this->Cat3 = $Cat3;
550
        return $this;
551
    }
552
553
    /**
554
     * @return string
555
     */
556
    public function getCat4()
557
    {
558
        return $this->Cat4;
559
    }
560
561
    /**
562
     * @param string $Cat4
563
     * @return \Gueststream\PMS\IQWare\API\GroupValues
564
     */
565
    public function setCat4($Cat4)
566
    {
567
        $this->Cat4 = $Cat4;
568
        return $this;
569
    }
570
571
    /**
572
     * @return float
573
     */
574
    public function getFirstNight()
575
    {
576
        return $this->FirstNight;
577
    }
578
579
    /**
580
     * @param float $FirstNight
581
     * @return \Gueststream\PMS\IQWare\API\GroupValues
582
     */
583
    public function setFirstNight($FirstNight)
584
    {
585
        $this->FirstNight = $FirstNight;
586
        return $this;
587
    }
588
589
    /**
590
     * @return float
591
     */
592
    public function getTotalStay()
593
    {
594
        return $this->TotalStay;
595
    }
596
597
    /**
598
     * @param float $TotalStay
599
     * @return \Gueststream\PMS\IQWare\API\GroupValues
600
     */
601
    public function setTotalStay($TotalStay)
602
    {
603
        $this->TotalStay = $TotalStay;
604
        return $this;
605
    }
606
607
    /**
608
     * @return float
609
     */
610
    public function getAvgNight()
611
    {
612
        return $this->AvgNight;
613
    }
614
615
    /**
616
     * @param float $AvgNight
617
     * @return \Gueststream\PMS\IQWare\API\GroupValues
618
     */
619
    public function setAvgNight($AvgNight)
620
    {
621
        $this->AvgNight = $AvgNight;
622
        return $this;
623
    }
624
625
    /**
626
     * @return float
627
     */
628
    public function getFirstNightNoTaxes()
629
    {
630
        return $this->FirstNightNoTaxes;
631
    }
632
633
    /**
634
     * @param float $FirstNightNoTaxes
635
     * @return \Gueststream\PMS\IQWare\API\GroupValues
636
     */
637
    public function setFirstNightNoTaxes($FirstNightNoTaxes)
638
    {
639
        $this->FirstNightNoTaxes = $FirstNightNoTaxes;
640
        return $this;
641
    }
642
643
    /**
644
     * @return float
645
     */
646
    public function getTotalStayNoTaxes()
647
    {
648
        return $this->TotalStayNoTaxes;
649
    }
650
651
    /**
652
     * @param float $TotalStayNoTaxes
653
     * @return \Gueststream\PMS\IQWare\API\GroupValues
654
     */
655
    public function setTotalStayNoTaxes($TotalStayNoTaxes)
656
    {
657
        $this->TotalStayNoTaxes = $TotalStayNoTaxes;
658
        return $this;
659
    }
660
661
    /**
662
     * @return float
663
     */
664
    public function getRequiredDeposit()
665
    {
666
        return $this->RequiredDeposit;
667
    }
668
669
    /**
670
     * @param float $RequiredDeposit
671
     * @return \Gueststream\PMS\IQWare\API\GroupValues
672
     */
673
    public function setRequiredDeposit($RequiredDeposit)
674
    {
675
        $this->RequiredDeposit = $RequiredDeposit;
676
        return $this;
677
    }
678
679
    /**
680
     * @return ArrayOfSpecificDayOccupancyValue
681
     */
682
    public function getSpecificDaysOccValue()
683
    {
684
        return $this->SpecificDaysOccValue;
685
    }
686
687
    /**
688
     * @param ArrayOfSpecificDayOccupancyValue $SpecificDaysOccValue
689
     * @return \Gueststream\PMS\IQWare\API\GroupValues
690
     */
691
    public function setSpecificDaysOccValue($SpecificDaysOccValue)
692
    {
693
        $this->SpecificDaysOccValue = $SpecificDaysOccValue;
694
        return $this;
695
    }
696
697
    /**
698
     * @return ArrayOfRatesDetails
699
     */
700
    public function getGroupRates()
701
    {
702
        return $this->groupRates;
703
    }
704
705
    /**
706
     * @param ArrayOfRatesDetails $groupRates
707
     * @return \Gueststream\PMS\IQWare\API\GroupValues
708
     */
709
    public function setGroupRates($groupRates)
710
    {
711
        $this->groupRates = $groupRates;
712
        return $this;
713
    }
714
715
    /**
716
     * @return ArrayOfDetails
717
     */
718
    public function getUnitsAvailable()
719
    {
720
        return $this->UnitsAvailable;
721
    }
722
723
    /**
724
     * @param ArrayOfDetails $UnitsAvailable
725
     * @return \Gueststream\PMS\IQWare\API\GroupValues
726
     */
727
    public function setUnitsAvailable($UnitsAvailable)
728
    {
729
        $this->UnitsAvailable = $UnitsAvailable;
730
        return $this;
731
    }
732
733
    /**
734
     * @return boolean
735
     */
736
    public function getHasValues()
737
    {
738
        return $this->HasValues;
739
    }
740
741
    /**
742
     * @param boolean $HasValues
743
     * @return \Gueststream\PMS\IQWare\API\GroupValues
744
     */
745
    public function setHasValues($HasValues)
746
    {
747
        $this->HasValues = $HasValues;
748
        return $this;
749
    }
750
}
751