InfosBilling::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 0
cts 23
cp 0
rs 9.0856
c 0
b 0
f 0
cc 1
eloc 21
nc 1
nop 20
crap 2

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class InfosBilling
6
{
7
8
    /**
9
     * @var int $ConfirmationNo
10
     */
11
    protected $ConfirmationNo = null;
12
13
    /**
14
     * @var float $RevRoomChargesTotal
15
     */
16
    protected $RevRoomChargesTotal = null;
17
18
    /**
19
     * @var float $RevRoomChargesTaxes
20
     */
21
    protected $RevRoomChargesTaxes = null;
22
23
    /**
24
     * @var float $RevElementTotal
25
     */
26
    protected $RevElementTotal = null;
27
28
    /**
29
     * @var float $RevElementTaxes
30
     */
31
    protected $RevElementTaxes = null;
32
33
    /**
34
     * @var float $RevAttributeTotal
35
     */
36
    protected $RevAttributeTotal = null;
37
38
    /**
39
     * @var float $RevAttributeTaxes
40
     */
41
    protected $RevAttributeTaxes = null;
42
43
    /**
44
     * @var float $RevLocationTotal
45
     */
46
    protected $RevLocationTotal = null;
47
48
    /**
49
     * @var float $RevLocationTaxes
50
     */
51
    protected $RevLocationTaxes = null;
52
53
    /**
54
     * @var float $RevSvcChargeTotal
55
     */
56
    protected $RevSvcChargeTotal = null;
57
58
    /**
59
     * @var float $RevSvcChargeTaxes
60
     */
61
    protected $RevSvcChargeTaxes = null;
62
63
    /**
64
     * @var float $RevElementALaCarteTotal
65
     */
66
    protected $RevElementALaCarteTotal = null;
67
68
    /**
69
     * @var float $RevElementALaCarteTaxes
70
     */
71
    protected $RevElementALaCarteTaxes = null;
72
73
    /**
74
     * @var float $RevPromotionTotal
75
     */
76
    protected $RevPromotionTotal = null;
77
78
    /**
79
     * @var float $RevPromotionTaxes
80
     */
81
    protected $RevPromotionTaxes = null;
82
83
    /**
84
     * @var string $RateCode
85
     */
86
    protected $RateCode = null;
87
88
    /**
89
     * @var \DateTime $ArrivalDate
90
     */
91
    protected $ArrivalDate = null;
92
93
    /**
94
     * @var \DateTime $DepartureDate
95
     */
96
    protected $DepartureDate = null;
97
98
    /**
99
     * @var int $Adults
100
     */
101
    protected $Adults = null;
102
103
    /**
104
     * @var int $Children
105
     */
106
    protected $Children = null;
107
108
    /**
109
     * @var string $RoomTypeSold
110
     */
111
    protected $RoomTypeSold = null;
112
113
    /**
114
     * @var string $RoomTypeOccupied
115
     */
116
    protected $RoomTypeOccupied = null;
117
118
    /**
119
     * @var string $FirstName
120
     */
121
    protected $FirstName = null;
122
123
    /**
124
     * @var string $LastName
125
     */
126
    protected $LastName = null;
127
128
    /**
129
     * @var string $Address1
130
     */
131
    protected $Address1 = null;
132
133
    /**
134
     * @var string $Address2
135
     */
136
    protected $Address2 = null;
137
138
    /**
139
     * @var string $City
140
     */
141
    protected $City = null;
142
143
    /**
144
     * @var string $State
145
     */
146
    protected $State = null;
147
148
    /**
149
     * @var string $ZipCode
150
     */
151
    protected $ZipCode = null;
152
153
    /**
154
     * @var string $Country
155
     */
156
    protected $Country = null;
157
158
    /**
159
     * @var string $Email
160
     */
161
    protected $Email = null;
162
163
    /**
164
     * @var string $HomePhone
165
     */
166
    protected $HomePhone = null;
167
168
    /**
169
     * @var \DateTime $BookingDate
170
     */
171
    protected $BookingDate = null;
172
173
    /**
174
     * @param int $ConfirmationNo
175
     * @param float $RevRoomChargesTotal
176
     * @param float $RevRoomChargesTaxes
177
     * @param float $RevElementTotal
178
     * @param float $RevElementTaxes
179
     * @param float $RevAttributeTotal
180
     * @param float $RevAttributeTaxes
181
     * @param float $RevLocationTotal
182
     * @param float $RevLocationTaxes
183
     * @param float $RevSvcChargeTotal
184
     * @param float $RevSvcChargeTaxes
185
     * @param float $RevElementALaCarteTotal
186
     * @param float $RevElementALaCarteTaxes
187
     * @param float $RevPromotionTotal
188
     * @param float $RevPromotionTaxes
189
     * @param \DateTime $ArrivalDate
190
     * @param \DateTime $DepartureDate
191
     * @param int $Adults
192
     * @param int $Children
193
     * @param \DateTime $BookingDate
194
     */
195
    public function __construct($ConfirmationNo, $RevRoomChargesTotal, $RevRoomChargesTaxes, $RevElementTotal, $RevElementTaxes, $RevAttributeTotal, $RevAttributeTaxes, $RevLocationTotal, $RevLocationTaxes, $RevSvcChargeTotal, $RevSvcChargeTaxes, $RevElementALaCarteTotal, $RevElementALaCarteTaxes, $RevPromotionTotal, $RevPromotionTaxes, \DateTime $ArrivalDate, \DateTime $DepartureDate, $Adults, $Children, \DateTime $BookingDate)
196
    {
197
        $this->ConfirmationNo = $ConfirmationNo;
198
        $this->RevRoomChargesTotal = $RevRoomChargesTotal;
199
        $this->RevRoomChargesTaxes = $RevRoomChargesTaxes;
200
        $this->RevElementTotal = $RevElementTotal;
201
        $this->RevElementTaxes = $RevElementTaxes;
202
        $this->RevAttributeTotal = $RevAttributeTotal;
203
        $this->RevAttributeTaxes = $RevAttributeTaxes;
204
        $this->RevLocationTotal = $RevLocationTotal;
205
        $this->RevLocationTaxes = $RevLocationTaxes;
206
        $this->RevSvcChargeTotal = $RevSvcChargeTotal;
207
        $this->RevSvcChargeTaxes = $RevSvcChargeTaxes;
208
        $this->RevElementALaCarteTotal = $RevElementALaCarteTotal;
209
        $this->RevElementALaCarteTaxes = $RevElementALaCarteTaxes;
210
        $this->RevPromotionTotal = $RevPromotionTotal;
211
        $this->RevPromotionTaxes = $RevPromotionTaxes;
212
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ArrivalDate.

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

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

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...
217
    }
218
219
    /**
220
     * @return int
221
     */
222
    public function getConfirmationNo()
223
    {
224
        return $this->ConfirmationNo;
225
    }
226
227
    /**
228
     * @param int $ConfirmationNo
229
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
230
     */
231
    public function setConfirmationNo($ConfirmationNo)
232
    {
233
        $this->ConfirmationNo = $ConfirmationNo;
234
        return $this;
235
    }
236
237
    /**
238
     * @return float
239
     */
240
    public function getRevRoomChargesTotal()
241
    {
242
        return $this->RevRoomChargesTotal;
243
    }
244
245
    /**
246
     * @param float $RevRoomChargesTotal
247
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
248
     */
249
    public function setRevRoomChargesTotal($RevRoomChargesTotal)
250
    {
251
        $this->RevRoomChargesTotal = $RevRoomChargesTotal;
252
        return $this;
253
    }
254
255
    /**
256
     * @return float
257
     */
258
    public function getRevRoomChargesTaxes()
259
    {
260
        return $this->RevRoomChargesTaxes;
261
    }
262
263
    /**
264
     * @param float $RevRoomChargesTaxes
265
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
266
     */
267
    public function setRevRoomChargesTaxes($RevRoomChargesTaxes)
268
    {
269
        $this->RevRoomChargesTaxes = $RevRoomChargesTaxes;
270
        return $this;
271
    }
272
273
    /**
274
     * @return float
275
     */
276
    public function getRevElementTotal()
277
    {
278
        return $this->RevElementTotal;
279
    }
280
281
    /**
282
     * @param float $RevElementTotal
283
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
284
     */
285
    public function setRevElementTotal($RevElementTotal)
286
    {
287
        $this->RevElementTotal = $RevElementTotal;
288
        return $this;
289
    }
290
291
    /**
292
     * @return float
293
     */
294
    public function getRevElementTaxes()
295
    {
296
        return $this->RevElementTaxes;
297
    }
298
299
    /**
300
     * @param float $RevElementTaxes
301
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
302
     */
303
    public function setRevElementTaxes($RevElementTaxes)
304
    {
305
        $this->RevElementTaxes = $RevElementTaxes;
306
        return $this;
307
    }
308
309
    /**
310
     * @return float
311
     */
312
    public function getRevAttributeTotal()
313
    {
314
        return $this->RevAttributeTotal;
315
    }
316
317
    /**
318
     * @param float $RevAttributeTotal
319
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
320
     */
321
    public function setRevAttributeTotal($RevAttributeTotal)
322
    {
323
        $this->RevAttributeTotal = $RevAttributeTotal;
324
        return $this;
325
    }
326
327
    /**
328
     * @return float
329
     */
330
    public function getRevAttributeTaxes()
331
    {
332
        return $this->RevAttributeTaxes;
333
    }
334
335
    /**
336
     * @param float $RevAttributeTaxes
337
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
338
     */
339
    public function setRevAttributeTaxes($RevAttributeTaxes)
340
    {
341
        $this->RevAttributeTaxes = $RevAttributeTaxes;
342
        return $this;
343
    }
344
345
    /**
346
     * @return float
347
     */
348
    public function getRevLocationTotal()
349
    {
350
        return $this->RevLocationTotal;
351
    }
352
353
    /**
354
     * @param float $RevLocationTotal
355
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
356
     */
357
    public function setRevLocationTotal($RevLocationTotal)
358
    {
359
        $this->RevLocationTotal = $RevLocationTotal;
360
        return $this;
361
    }
362
363
    /**
364
     * @return float
365
     */
366
    public function getRevLocationTaxes()
367
    {
368
        return $this->RevLocationTaxes;
369
    }
370
371
    /**
372
     * @param float $RevLocationTaxes
373
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
374
     */
375
    public function setRevLocationTaxes($RevLocationTaxes)
376
    {
377
        $this->RevLocationTaxes = $RevLocationTaxes;
378
        return $this;
379
    }
380
381
    /**
382
     * @return float
383
     */
384
    public function getRevSvcChargeTotal()
385
    {
386
        return $this->RevSvcChargeTotal;
387
    }
388
389
    /**
390
     * @param float $RevSvcChargeTotal
391
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
392
     */
393
    public function setRevSvcChargeTotal($RevSvcChargeTotal)
394
    {
395
        $this->RevSvcChargeTotal = $RevSvcChargeTotal;
396
        return $this;
397
    }
398
399
    /**
400
     * @return float
401
     */
402
    public function getRevSvcChargeTaxes()
403
    {
404
        return $this->RevSvcChargeTaxes;
405
    }
406
407
    /**
408
     * @param float $RevSvcChargeTaxes
409
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
410
     */
411
    public function setRevSvcChargeTaxes($RevSvcChargeTaxes)
412
    {
413
        $this->RevSvcChargeTaxes = $RevSvcChargeTaxes;
414
        return $this;
415
    }
416
417
    /**
418
     * @return float
419
     */
420
    public function getRevElementALaCarteTotal()
421
    {
422
        return $this->RevElementALaCarteTotal;
423
    }
424
425
    /**
426
     * @param float $RevElementALaCarteTotal
427
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
428
     */
429
    public function setRevElementALaCarteTotal($RevElementALaCarteTotal)
430
    {
431
        $this->RevElementALaCarteTotal = $RevElementALaCarteTotal;
432
        return $this;
433
    }
434
435
    /**
436
     * @return float
437
     */
438
    public function getRevElementALaCarteTaxes()
439
    {
440
        return $this->RevElementALaCarteTaxes;
441
    }
442
443
    /**
444
     * @param float $RevElementALaCarteTaxes
445
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
446
     */
447
    public function setRevElementALaCarteTaxes($RevElementALaCarteTaxes)
448
    {
449
        $this->RevElementALaCarteTaxes = $RevElementALaCarteTaxes;
450
        return $this;
451
    }
452
453
    /**
454
     * @return float
455
     */
456
    public function getRevPromotionTotal()
457
    {
458
        return $this->RevPromotionTotal;
459
    }
460
461
    /**
462
     * @param float $RevPromotionTotal
463
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
464
     */
465
    public function setRevPromotionTotal($RevPromotionTotal)
466
    {
467
        $this->RevPromotionTotal = $RevPromotionTotal;
468
        return $this;
469
    }
470
471
    /**
472
     * @return float
473
     */
474
    public function getRevPromotionTaxes()
475
    {
476
        return $this->RevPromotionTaxes;
477
    }
478
479
    /**
480
     * @param float $RevPromotionTaxes
481
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
482
     */
483
    public function setRevPromotionTaxes($RevPromotionTaxes)
484
    {
485
        $this->RevPromotionTaxes = $RevPromotionTaxes;
486
        return $this;
487
    }
488
489
    /**
490
     * @return string
491
     */
492
    public function getRateCode()
493
    {
494
        return $this->RateCode;
495
    }
496
497
    /**
498
     * @param string $RateCode
499
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
500
     */
501
    public function setRateCode($RateCode)
502
    {
503
        $this->RateCode = $RateCode;
504
        return $this;
505
    }
506
507
    /**
508
     * @return \DateTime
509
     */
510
    public function getArrivalDate()
511
    {
512
        if ($this->ArrivalDate == null) {
513
            return null;
514
        } else {
515
            try {
516
                return new \DateTime($this->ArrivalDate);
517
            } catch (\Exception $e) {
518
                return false;
519
            }
520
        }
521
    }
522
523
    /**
524
     * @param \DateTime $ArrivalDate
525
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
526
     */
527
    public function setArrivalDate(\DateTime $ArrivalDate)
528
    {
529
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ArrivalDate.

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...
530
        return $this;
531
    }
532
533
    /**
534
     * @return \DateTime
535
     */
536
    public function getDepartureDate()
537
    {
538
        if ($this->DepartureDate == null) {
539
            return null;
540
        } else {
541
            try {
542
                return new \DateTime($this->DepartureDate);
543
            } catch (\Exception $e) {
544
                return false;
545
            }
546
        }
547
    }
548
549
    /**
550
     * @param \DateTime $DepartureDate
551
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
552
     */
553
    public function setDepartureDate(\DateTime $DepartureDate)
554
    {
555
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $DepartureDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DepartureDate.

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...
556
        return $this;
557
    }
558
559
    /**
560
     * @return int
561
     */
562
    public function getAdults()
563
    {
564
        return $this->Adults;
565
    }
566
567
    /**
568
     * @param int $Adults
569
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
570
     */
571
    public function setAdults($Adults)
572
    {
573
        $this->Adults = $Adults;
574
        return $this;
575
    }
576
577
    /**
578
     * @return int
579
     */
580
    public function getChildren()
581
    {
582
        return $this->Children;
583
    }
584
585
    /**
586
     * @param int $Children
587
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
588
     */
589
    public function setChildren($Children)
590
    {
591
        $this->Children = $Children;
592
        return $this;
593
    }
594
595
    /**
596
     * @return string
597
     */
598
    public function getRoomTypeSold()
599
    {
600
        return $this->RoomTypeSold;
601
    }
602
603
    /**
604
     * @param string $RoomTypeSold
605
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
606
     */
607
    public function setRoomTypeSold($RoomTypeSold)
608
    {
609
        $this->RoomTypeSold = $RoomTypeSold;
610
        return $this;
611
    }
612
613
    /**
614
     * @return string
615
     */
616
    public function getRoomTypeOccupied()
617
    {
618
        return $this->RoomTypeOccupied;
619
    }
620
621
    /**
622
     * @param string $RoomTypeOccupied
623
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
624
     */
625
    public function setRoomTypeOccupied($RoomTypeOccupied)
626
    {
627
        $this->RoomTypeOccupied = $RoomTypeOccupied;
628
        return $this;
629
    }
630
631
    /**
632
     * @return string
633
     */
634
    public function getFirstName()
635
    {
636
        return $this->FirstName;
637
    }
638
639
    /**
640
     * @param string $FirstName
641
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
642
     */
643
    public function setFirstName($FirstName)
644
    {
645
        $this->FirstName = $FirstName;
646
        return $this;
647
    }
648
649
    /**
650
     * @return string
651
     */
652
    public function getLastName()
653
    {
654
        return $this->LastName;
655
    }
656
657
    /**
658
     * @param string $LastName
659
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
660
     */
661
    public function setLastName($LastName)
662
    {
663
        $this->LastName = $LastName;
664
        return $this;
665
    }
666
667
    /**
668
     * @return string
669
     */
670
    public function getAddress1()
671
    {
672
        return $this->Address1;
673
    }
674
675
    /**
676
     * @param string $Address1
677
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
678
     */
679
    public function setAddress1($Address1)
680
    {
681
        $this->Address1 = $Address1;
682
        return $this;
683
    }
684
685
    /**
686
     * @return string
687
     */
688
    public function getAddress2()
689
    {
690
        return $this->Address2;
691
    }
692
693
    /**
694
     * @param string $Address2
695
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
696
     */
697
    public function setAddress2($Address2)
698
    {
699
        $this->Address2 = $Address2;
700
        return $this;
701
    }
702
703
    /**
704
     * @return string
705
     */
706
    public function getCity()
707
    {
708
        return $this->City;
709
    }
710
711
    /**
712
     * @param string $City
713
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
714
     */
715
    public function setCity($City)
716
    {
717
        $this->City = $City;
718
        return $this;
719
    }
720
721
    /**
722
     * @return string
723
     */
724
    public function getState()
725
    {
726
        return $this->State;
727
    }
728
729
    /**
730
     * @param string $State
731
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
732
     */
733
    public function setState($State)
734
    {
735
        $this->State = $State;
736
        return $this;
737
    }
738
739
    /**
740
     * @return string
741
     */
742
    public function getZipCode()
743
    {
744
        return $this->ZipCode;
745
    }
746
747
    /**
748
     * @param string $ZipCode
749
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
750
     */
751
    public function setZipCode($ZipCode)
752
    {
753
        $this->ZipCode = $ZipCode;
754
        return $this;
755
    }
756
757
    /**
758
     * @return string
759
     */
760
    public function getCountry()
761
    {
762
        return $this->Country;
763
    }
764
765
    /**
766
     * @param string $Country
767
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
768
     */
769
    public function setCountry($Country)
770
    {
771
        $this->Country = $Country;
772
        return $this;
773
    }
774
775
    /**
776
     * @return string
777
     */
778
    public function getEmail()
779
    {
780
        return $this->Email;
781
    }
782
783
    /**
784
     * @param string $Email
785
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
786
     */
787
    public function setEmail($Email)
788
    {
789
        $this->Email = $Email;
790
        return $this;
791
    }
792
793
    /**
794
     * @return string
795
     */
796
    public function getHomePhone()
797
    {
798
        return $this->HomePhone;
799
    }
800
801
    /**
802
     * @param string $HomePhone
803
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
804
     */
805
    public function setHomePhone($HomePhone)
806
    {
807
        $this->HomePhone = $HomePhone;
808
        return $this;
809
    }
810
811
    /**
812
     * @return \DateTime
813
     */
814
    public function getBookingDate()
815
    {
816
        if ($this->BookingDate == null) {
817
            return null;
818
        } else {
819
            try {
820
                return new \DateTime($this->BookingDate);
821
            } catch (\Exception $e) {
822
                return false;
823
            }
824
        }
825
    }
826
827
    /**
828
     * @param \DateTime $BookingDate
829
     * @return \Gueststream\PMS\IQWare\API\InfosBilling
830
     */
831
    public function setBookingDate(\DateTime $BookingDate)
832
    {
833
        $this->BookingDate = $BookingDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $BookingDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $BookingDate.

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...
834
        return $this;
835
    }
836
}
837