1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
|
class ActivityUnit |
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var int $ID_ActivitiyUnit |
10
|
|
|
*/ |
11
|
|
|
protected $ID_ActivitiyUnit = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int $ID_Element |
15
|
|
|
*/ |
16
|
|
|
protected $ID_Element = null; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var \DateTime $aDate |
20
|
|
|
*/ |
21
|
|
|
protected $aDate = null; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var TSBDBookingIndividualItemStatus $Status |
25
|
|
|
*/ |
26
|
|
|
protected $Status = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param int $ID_ActivitiyUnit |
30
|
|
|
* @param int $ID_Element |
31
|
|
|
* @param \DateTime $aDate |
32
|
|
|
* @param TSBDBookingIndividualItemStatus $Status |
33
|
|
|
*/ |
34
|
|
|
public function __construct($ID_ActivitiyUnit, $ID_Element, \DateTime $aDate, $Status) |
35
|
|
|
{ |
36
|
|
|
$this->ID_ActivitiyUnit = $ID_ActivitiyUnit; |
37
|
|
|
$this->ID_Element = $ID_Element; |
38
|
|
|
$this->aDate = $aDate->format(\DateTime::ATOM); |
|
|
|
|
39
|
|
|
$this->Status = $Status; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @return int |
44
|
|
|
*/ |
45
|
|
|
public function getID_ActivitiyUnit() |
46
|
|
|
{ |
47
|
|
|
return $this->ID_ActivitiyUnit; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @param int $ID_ActivitiyUnit |
52
|
|
|
* @return \Gueststream\PMS\IQWare\API\ActivityUnit |
53
|
|
|
*/ |
54
|
|
|
public function setID_ActivitiyUnit($ID_ActivitiyUnit) |
55
|
|
|
{ |
56
|
|
|
$this->ID_ActivitiyUnit = $ID_ActivitiyUnit; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return int |
62
|
|
|
*/ |
63
|
|
|
public function getID_Element() |
64
|
|
|
{ |
65
|
|
|
return $this->ID_Element; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param int $ID_Element |
70
|
|
|
* @return \Gueststream\PMS\IQWare\API\ActivityUnit |
71
|
|
|
*/ |
72
|
|
|
public function setID_Element($ID_Element) |
73
|
|
|
{ |
74
|
|
|
$this->ID_Element = $ID_Element; |
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return \DateTime |
80
|
|
|
*/ |
81
|
|
|
public function getADate() |
82
|
|
|
{ |
83
|
|
|
if ($this->aDate == null) { |
84
|
|
|
return null; |
85
|
|
|
} else { |
86
|
|
|
try { |
87
|
|
|
return new \DateTime($this->aDate); |
88
|
|
|
} catch (\Exception $e) { |
89
|
|
|
return false; |
90
|
|
|
} |
91
|
|
|
} |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @param \DateTime $aDate |
96
|
|
|
* @return \Gueststream\PMS\IQWare\API\ActivityUnit |
97
|
|
|
*/ |
98
|
|
|
public function setADate(\DateTime $aDate) |
99
|
|
|
{ |
100
|
|
|
$this->aDate = $aDate->format(\DateTime::ATOM); |
|
|
|
|
101
|
|
|
return $this; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return TSBDBookingIndividualItemStatus |
106
|
|
|
*/ |
107
|
|
|
public function getStatus() |
108
|
|
|
{ |
109
|
|
|
return $this->Status; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param TSBDBookingIndividualItemStatus $Status |
114
|
|
|
* @return \Gueststream\PMS\IQWare\API\ActivityUnit |
115
|
|
|
*/ |
116
|
|
|
public function setStatus($Status) |
117
|
|
|
{ |
118
|
|
|
$this->Status = $Status; |
119
|
|
|
return $this; |
120
|
|
|
} |
121
|
|
|
} |
122
|
|
|
|
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..