This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Gueststream\PMS\IQWare\API; |
||
4 | |||
5 | class RoomDayAvailability |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var \DateTime $Date |
||
10 | */ |
||
11 | protected $Date = null; |
||
12 | |||
13 | /** |
||
14 | * @var BookingCondoType $BookingCondoType |
||
15 | */ |
||
16 | protected $BookingCondoType = null; |
||
17 | |||
18 | /** |
||
19 | * @var RoomRestrictionStatus $RestrictionStatus |
||
20 | */ |
||
21 | protected $RestrictionStatus = null; |
||
22 | |||
23 | /** |
||
24 | * @var RoomSoldStatus $SoldStatus |
||
25 | */ |
||
26 | protected $SoldStatus = null; |
||
27 | |||
28 | /** |
||
29 | * @var int $RoomTypeQuantity |
||
30 | */ |
||
31 | protected $RoomTypeQuantity = null; |
||
32 | |||
33 | /** |
||
34 | * @var boolean $RateYield_IsClosed |
||
35 | */ |
||
36 | protected $RateYield_IsClosed = null; |
||
37 | |||
38 | /** |
||
39 | * @var boolean $RateYield_IsOnArrival |
||
40 | */ |
||
41 | protected $RateYield_IsOnArrival = null; |
||
42 | |||
43 | /** |
||
44 | * @var int $RateYield_MinLength |
||
45 | */ |
||
46 | protected $RateYield_MinLength = null; |
||
47 | |||
48 | /** |
||
49 | * @var boolean $RateRoomYield_IsSet |
||
50 | */ |
||
51 | protected $RateRoomYield_IsSet = null; |
||
52 | |||
53 | /** |
||
54 | * @var boolean $RateRoomYield_IsOnArrival |
||
55 | */ |
||
56 | protected $RateRoomYield_IsOnArrival = null; |
||
57 | |||
58 | /** |
||
59 | * @var int $RateRoomYield_MinLenght |
||
60 | */ |
||
61 | protected $RateRoomYield_MinLenght = null; |
||
62 | |||
63 | /** |
||
64 | * @param \DateTime $Date |
||
65 | * @param BookingCondoType $BookingCondoType |
||
66 | * @param RoomRestrictionStatus $RestrictionStatus |
||
67 | * @param RoomSoldStatus $SoldStatus |
||
68 | * @param int $RoomTypeQuantity |
||
69 | * @param boolean $RateYield_IsClosed |
||
70 | * @param boolean $RateYield_IsOnArrival |
||
71 | * @param int $RateYield_MinLength |
||
72 | * @param boolean $RateRoomYield_IsSet |
||
73 | * @param boolean $RateRoomYield_IsOnArrival |
||
74 | * @param int $RateRoomYield_MinLenght |
||
75 | */ |
||
76 | public function __construct(\DateTime $Date, $BookingCondoType, $RestrictionStatus, $SoldStatus, $RoomTypeQuantity, $RateYield_IsClosed, $RateYield_IsOnArrival, $RateYield_MinLength, $RateRoomYield_IsSet, $RateRoomYield_IsOnArrival, $RateRoomYield_MinLenght) |
||
77 | { |
||
78 | $this->Date = $Date->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
|
|||
79 | $this->BookingCondoType = $BookingCondoType; |
||
80 | $this->RestrictionStatus = $RestrictionStatus; |
||
81 | $this->SoldStatus = $SoldStatus; |
||
82 | $this->RoomTypeQuantity = $RoomTypeQuantity; |
||
83 | $this->RateYield_IsClosed = $RateYield_IsClosed; |
||
84 | $this->RateYield_IsOnArrival = $RateYield_IsOnArrival; |
||
85 | $this->RateYield_MinLength = $RateYield_MinLength; |
||
86 | $this->RateRoomYield_IsSet = $RateRoomYield_IsSet; |
||
87 | $this->RateRoomYield_IsOnArrival = $RateRoomYield_IsOnArrival; |
||
88 | $this->RateRoomYield_MinLenght = $RateRoomYield_MinLenght; |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * @return \DateTime |
||
93 | */ |
||
94 | public function getDate() |
||
95 | { |
||
96 | if ($this->Date == null) { |
||
97 | return null; |
||
98 | } else { |
||
99 | try { |
||
100 | return new \DateTime($this->Date); |
||
101 | } catch (\Exception $e) { |
||
102 | return false; |
||
103 | } |
||
104 | } |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * @param \DateTime $Date |
||
109 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
110 | */ |
||
111 | public function setDate(\DateTime $Date) |
||
112 | { |
||
113 | $this->Date = $Date->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$Date->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Date .
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.. ![]() |
|||
114 | return $this; |
||
115 | } |
||
116 | |||
117 | /** |
||
118 | * @return BookingCondoType |
||
119 | */ |
||
120 | public function getBookingCondoType() |
||
121 | { |
||
122 | return $this->BookingCondoType; |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | * @param BookingCondoType $BookingCondoType |
||
127 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
128 | */ |
||
129 | public function setBookingCondoType($BookingCondoType) |
||
130 | { |
||
131 | $this->BookingCondoType = $BookingCondoType; |
||
132 | return $this; |
||
133 | } |
||
134 | |||
135 | /** |
||
136 | * @return RoomRestrictionStatus |
||
137 | */ |
||
138 | public function getRestrictionStatus() |
||
139 | { |
||
140 | return $this->RestrictionStatus; |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @param RoomRestrictionStatus $RestrictionStatus |
||
145 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
146 | */ |
||
147 | public function setRestrictionStatus($RestrictionStatus) |
||
148 | { |
||
149 | $this->RestrictionStatus = $RestrictionStatus; |
||
150 | return $this; |
||
151 | } |
||
152 | |||
153 | /** |
||
154 | * @return RoomSoldStatus |
||
155 | */ |
||
156 | public function getSoldStatus() |
||
157 | { |
||
158 | return $this->SoldStatus; |
||
159 | } |
||
160 | |||
161 | /** |
||
162 | * @param RoomSoldStatus $SoldStatus |
||
163 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
164 | */ |
||
165 | public function setSoldStatus($SoldStatus) |
||
166 | { |
||
167 | $this->SoldStatus = $SoldStatus; |
||
168 | return $this; |
||
169 | } |
||
170 | |||
171 | /** |
||
172 | * @return int |
||
173 | */ |
||
174 | public function getRoomTypeQuantity() |
||
175 | { |
||
176 | return $this->RoomTypeQuantity; |
||
177 | } |
||
178 | |||
179 | /** |
||
180 | * @param int $RoomTypeQuantity |
||
181 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
182 | */ |
||
183 | public function setRoomTypeQuantity($RoomTypeQuantity) |
||
184 | { |
||
185 | $this->RoomTypeQuantity = $RoomTypeQuantity; |
||
186 | return $this; |
||
187 | } |
||
188 | |||
189 | /** |
||
190 | * @return boolean |
||
191 | */ |
||
192 | public function getRateYield_IsClosed() |
||
193 | { |
||
194 | return $this->RateYield_IsClosed; |
||
195 | } |
||
196 | |||
197 | /** |
||
198 | * @param boolean $RateYield_IsClosed |
||
199 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
200 | */ |
||
201 | public function setRateYield_IsClosed($RateYield_IsClosed) |
||
202 | { |
||
203 | $this->RateYield_IsClosed = $RateYield_IsClosed; |
||
204 | return $this; |
||
205 | } |
||
206 | |||
207 | /** |
||
208 | * @return boolean |
||
209 | */ |
||
210 | public function getRateYield_IsOnArrival() |
||
211 | { |
||
212 | return $this->RateYield_IsOnArrival; |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * @param boolean $RateYield_IsOnArrival |
||
217 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
218 | */ |
||
219 | public function setRateYield_IsOnArrival($RateYield_IsOnArrival) |
||
220 | { |
||
221 | $this->RateYield_IsOnArrival = $RateYield_IsOnArrival; |
||
222 | return $this; |
||
223 | } |
||
224 | |||
225 | /** |
||
226 | * @return int |
||
227 | */ |
||
228 | public function getRateYield_MinLength() |
||
229 | { |
||
230 | return $this->RateYield_MinLength; |
||
231 | } |
||
232 | |||
233 | /** |
||
234 | * @param int $RateYield_MinLength |
||
235 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
236 | */ |
||
237 | public function setRateYield_MinLength($RateYield_MinLength) |
||
238 | { |
||
239 | $this->RateYield_MinLength = $RateYield_MinLength; |
||
240 | return $this; |
||
241 | } |
||
242 | |||
243 | /** |
||
244 | * @return boolean |
||
245 | */ |
||
246 | public function getRateRoomYield_IsSet() |
||
247 | { |
||
248 | return $this->RateRoomYield_IsSet; |
||
249 | } |
||
250 | |||
251 | /** |
||
252 | * @param boolean $RateRoomYield_IsSet |
||
253 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
254 | */ |
||
255 | public function setRateRoomYield_IsSet($RateRoomYield_IsSet) |
||
256 | { |
||
257 | $this->RateRoomYield_IsSet = $RateRoomYield_IsSet; |
||
258 | return $this; |
||
259 | } |
||
260 | |||
261 | /** |
||
262 | * @return boolean |
||
263 | */ |
||
264 | public function getRateRoomYield_IsOnArrival() |
||
265 | { |
||
266 | return $this->RateRoomYield_IsOnArrival; |
||
267 | } |
||
268 | |||
269 | /** |
||
270 | * @param boolean $RateRoomYield_IsOnArrival |
||
271 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
272 | */ |
||
273 | public function setRateRoomYield_IsOnArrival($RateRoomYield_IsOnArrival) |
||
274 | { |
||
275 | $this->RateRoomYield_IsOnArrival = $RateRoomYield_IsOnArrival; |
||
276 | return $this; |
||
277 | } |
||
278 | |||
279 | /** |
||
280 | * @return int |
||
281 | */ |
||
282 | public function getRateRoomYield_MinLenght() |
||
283 | { |
||
284 | return $this->RateRoomYield_MinLenght; |
||
285 | } |
||
286 | |||
287 | /** |
||
288 | * @param int $RateRoomYield_MinLenght |
||
289 | * @return \Gueststream\PMS\IQWare\API\RoomDayAvailability |
||
290 | */ |
||
291 | public function setRateRoomYield_MinLenght($RateRoomYield_MinLenght) |
||
292 | { |
||
293 | $this->RateRoomYield_MinLenght = $RateRoomYield_MinLenght; |
||
294 | return $this; |
||
295 | } |
||
296 | } |
||
297 |
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..