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 GetSingleStayValue |
||
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 string $strRateSpecial |
||
30 | */ |
||
31 | protected $strRateSpecial = 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 int $intBusinessSourceID |
||
90 | */ |
||
91 | protected $intBusinessSourceID = null; |
||
92 | |||
93 | /** |
||
94 | * @param int $intGUID |
||
95 | * @param string $strISOLanguage |
||
96 | * @param int $intRoomType |
||
97 | * @param int $intRateID |
||
98 | * @param string $strRateSpecial |
||
99 | * @param int $intGuestCount |
||
100 | * @param string $strChildren |
||
101 | * @param \DateTime $dArrDate |
||
102 | * @param \DateTime $dDepDate |
||
103 | * @param string $strAttributes |
||
104 | * @param string $strLocations |
||
105 | * @param dstElements $dstElements |
||
106 | * @param int $intRoomQty |
||
107 | * @param boolean $IsInsuranceAccepted |
||
108 | * @param string $strAttributeGroupings |
||
109 | * @param string $strLocationsGroupings |
||
110 | * @param int $intBusinessSourceID |
||
111 | */ |
||
112 | View Code Duplication | public function __construct($intGUID, $strISOLanguage, $intRoomType, $intRateID, $strRateSpecial, $intGuestCount, $strChildren, \DateTime $dArrDate, \DateTime $dDepDate, $strAttributes, $strLocations, $dstElements, $intRoomQty, $IsInsuranceAccepted, $strAttributeGroupings, $strLocationsGroupings, $intBusinessSourceID) |
|
0 ignored issues
–
show
|
|||
113 | { |
||
114 | $this->intGUID = $intGUID; |
||
115 | $this->strISOLanguage = $strISOLanguage; |
||
116 | $this->intRoomType = $intRoomType; |
||
117 | $this->intRateID = $intRateID; |
||
118 | $this->strRateSpecial = $strRateSpecial; |
||
119 | $this->intGuestCount = $intGuestCount; |
||
120 | $this->strChildren = $strChildren; |
||
121 | $this->dArrDate = $dArrDate->format('Y-m-d'); |
||
0 ignored issues
–
show
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.. ![]() |
|||
122 | $this->dDepDate = $dDepDate->format('Y-m-d'); |
||
0 ignored issues
–
show
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.. ![]() |
|||
123 | $this->strAttributes = $strAttributes; |
||
124 | $this->strLocations = $strLocations; |
||
125 | $this->dstElements = $dstElements; |
||
126 | $this->intRoomQty = $intRoomQty; |
||
127 | $this->IsInsuranceAccepted = $IsInsuranceAccepted; |
||
128 | $this->strAttributeGroupings = $strAttributeGroupings; |
||
129 | $this->strLocationsGroupings = $strLocationsGroupings; |
||
130 | $this->intBusinessSourceID = $intBusinessSourceID; |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * @return int |
||
135 | */ |
||
136 | public function getIntGUID() |
||
137 | { |
||
138 | return $this->intGUID; |
||
139 | } |
||
140 | |||
141 | /** |
||
142 | * @param int $intGUID |
||
143 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
144 | */ |
||
145 | public function setIntGUID($intGUID) |
||
146 | { |
||
147 | $this->intGUID = $intGUID; |
||
148 | return $this; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | public function getStrISOLanguage() |
||
155 | { |
||
156 | return $this->strISOLanguage; |
||
157 | } |
||
158 | |||
159 | /** |
||
160 | * @param string $strISOLanguage |
||
161 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
162 | */ |
||
163 | public function setStrISOLanguage($strISOLanguage) |
||
164 | { |
||
165 | $this->strISOLanguage = $strISOLanguage; |
||
166 | return $this; |
||
167 | } |
||
168 | |||
169 | /** |
||
170 | * @return int |
||
171 | */ |
||
172 | public function getIntRoomType() |
||
173 | { |
||
174 | return $this->intRoomType; |
||
175 | } |
||
176 | |||
177 | /** |
||
178 | * @param int $intRoomType |
||
179 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
180 | */ |
||
181 | public function setIntRoomType($intRoomType) |
||
182 | { |
||
183 | $this->intRoomType = $intRoomType; |
||
184 | return $this; |
||
185 | } |
||
186 | |||
187 | /** |
||
188 | * @return int |
||
189 | */ |
||
190 | public function getIntRateID() |
||
191 | { |
||
192 | return $this->intRateID; |
||
193 | } |
||
194 | |||
195 | /** |
||
196 | * @param int $intRateID |
||
197 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
198 | */ |
||
199 | public function setIntRateID($intRateID) |
||
200 | { |
||
201 | $this->intRateID = $intRateID; |
||
202 | return $this; |
||
203 | } |
||
204 | |||
205 | /** |
||
206 | * @return string |
||
207 | */ |
||
208 | public function getStrRateSpecial() |
||
209 | { |
||
210 | return $this->strRateSpecial; |
||
211 | } |
||
212 | |||
213 | /** |
||
214 | * @param string $strRateSpecial |
||
215 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
216 | */ |
||
217 | public function setStrRateSpecial($strRateSpecial) |
||
218 | { |
||
219 | $this->strRateSpecial = $strRateSpecial; |
||
220 | return $this; |
||
221 | } |
||
222 | |||
223 | /** |
||
224 | * @return int |
||
225 | */ |
||
226 | public function getIntGuestCount() |
||
227 | { |
||
228 | return $this->intGuestCount; |
||
229 | } |
||
230 | |||
231 | /** |
||
232 | * @param int $intGuestCount |
||
233 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
234 | */ |
||
235 | public function setIntGuestCount($intGuestCount) |
||
236 | { |
||
237 | $this->intGuestCount = $intGuestCount; |
||
238 | return $this; |
||
239 | } |
||
240 | |||
241 | /** |
||
242 | * @return string |
||
243 | */ |
||
244 | public function getStrChildren() |
||
245 | { |
||
246 | return $this->strChildren; |
||
247 | } |
||
248 | |||
249 | /** |
||
250 | * @param string $strChildren |
||
251 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
252 | */ |
||
253 | public function setStrChildren($strChildren) |
||
254 | { |
||
255 | $this->strChildren = $strChildren; |
||
256 | return $this; |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * @return \DateTime |
||
261 | */ |
||
262 | public function getDArrDate() |
||
263 | { |
||
264 | if ($this->dArrDate == null) { |
||
265 | return null; |
||
266 | } else { |
||
267 | try { |
||
268 | return new \DateTime($this->dArrDate); |
||
269 | } catch (\Exception $e) { |
||
270 | return false; |
||
271 | } |
||
272 | } |
||
273 | } |
||
274 | |||
275 | /** |
||
276 | * @param \DateTime $dArrDate |
||
277 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
278 | */ |
||
279 | public function setDArrDate(\DateTime $dArrDate) |
||
280 | { |
||
281 | $this->dArrDate = $dArrDate->format('Y-m-d'); |
||
0 ignored issues
–
show
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.. ![]() |
|||
282 | return $this; |
||
283 | } |
||
284 | |||
285 | /** |
||
286 | * @return \DateTime |
||
287 | */ |
||
288 | public function getDDepDate() |
||
289 | { |
||
290 | if ($this->dDepDate == null) { |
||
291 | return null; |
||
292 | } else { |
||
293 | try { |
||
294 | return new \DateTime($this->dDepDate); |
||
295 | } catch (\Exception $e) { |
||
296 | return false; |
||
297 | } |
||
298 | } |
||
299 | } |
||
300 | |||
301 | /** |
||
302 | * @param \DateTime $dDepDate |
||
303 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
304 | */ |
||
305 | public function setDDepDate(\DateTime $dDepDate) |
||
306 | { |
||
307 | $this->dDepDate = $dDepDate->format('Y-m-d'); |
||
0 ignored issues
–
show
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.. ![]() |
|||
308 | return $this; |
||
309 | } |
||
310 | |||
311 | /** |
||
312 | * @return string |
||
313 | */ |
||
314 | public function getStrAttributes() |
||
315 | { |
||
316 | return $this->strAttributes; |
||
317 | } |
||
318 | |||
319 | /** |
||
320 | * @param string $strAttributes |
||
321 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
322 | */ |
||
323 | public function setStrAttributes($strAttributes) |
||
324 | { |
||
325 | $this->strAttributes = $strAttributes; |
||
326 | return $this; |
||
327 | } |
||
328 | |||
329 | /** |
||
330 | * @return string |
||
331 | */ |
||
332 | public function getStrLocations() |
||
333 | { |
||
334 | return $this->strLocations; |
||
335 | } |
||
336 | |||
337 | /** |
||
338 | * @param string $strLocations |
||
339 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
340 | */ |
||
341 | public function setStrLocations($strLocations) |
||
342 | { |
||
343 | $this->strLocations = $strLocations; |
||
344 | return $this; |
||
345 | } |
||
346 | |||
347 | /** |
||
348 | * @return dstElements |
||
349 | */ |
||
350 | public function getDstElements() |
||
351 | { |
||
352 | return $this->dstElements; |
||
353 | } |
||
354 | |||
355 | /** |
||
356 | * @param dstElements $dstElements |
||
357 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
358 | */ |
||
359 | public function setDstElements($dstElements) |
||
360 | { |
||
361 | $this->dstElements = $dstElements; |
||
362 | return $this; |
||
363 | } |
||
364 | |||
365 | /** |
||
366 | * @return int |
||
367 | */ |
||
368 | public function getIntRoomQty() |
||
369 | { |
||
370 | return $this->intRoomQty; |
||
371 | } |
||
372 | |||
373 | /** |
||
374 | * @param int $intRoomQty |
||
375 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
376 | */ |
||
377 | public function setIntRoomQty($intRoomQty) |
||
378 | { |
||
379 | $this->intRoomQty = $intRoomQty; |
||
380 | return $this; |
||
381 | } |
||
382 | |||
383 | /** |
||
384 | * @return boolean |
||
385 | */ |
||
386 | public function getIsInsuranceAccepted() |
||
387 | { |
||
388 | return $this->IsInsuranceAccepted; |
||
389 | } |
||
390 | |||
391 | /** |
||
392 | * @param boolean $IsInsuranceAccepted |
||
393 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
394 | */ |
||
395 | public function setIsInsuranceAccepted($IsInsuranceAccepted) |
||
396 | { |
||
397 | $this->IsInsuranceAccepted = $IsInsuranceAccepted; |
||
398 | return $this; |
||
399 | } |
||
400 | |||
401 | /** |
||
402 | * @return string |
||
403 | */ |
||
404 | public function getStrAttributeGroupings() |
||
405 | { |
||
406 | return $this->strAttributeGroupings; |
||
407 | } |
||
408 | |||
409 | /** |
||
410 | * @param string $strAttributeGroupings |
||
411 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
412 | */ |
||
413 | public function setStrAttributeGroupings($strAttributeGroupings) |
||
414 | { |
||
415 | $this->strAttributeGroupings = $strAttributeGroupings; |
||
416 | return $this; |
||
417 | } |
||
418 | |||
419 | /** |
||
420 | * @return string |
||
421 | */ |
||
422 | public function getStrLocationsGroupings() |
||
423 | { |
||
424 | return $this->strLocationsGroupings; |
||
425 | } |
||
426 | |||
427 | /** |
||
428 | * @param string $strLocationsGroupings |
||
429 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
430 | */ |
||
431 | public function setStrLocationsGroupings($strLocationsGroupings) |
||
432 | { |
||
433 | $this->strLocationsGroupings = $strLocationsGroupings; |
||
434 | return $this; |
||
435 | } |
||
436 | |||
437 | /** |
||
438 | * @return int |
||
439 | */ |
||
440 | public function getIntBusinessSourceID() |
||
441 | { |
||
442 | return $this->intBusinessSourceID; |
||
443 | } |
||
444 | |||
445 | /** |
||
446 | * @param int $intBusinessSourceID |
||
447 | * @return \Gueststream\PMS\IQWare\API\GetSingleStayValue |
||
448 | */ |
||
449 | public function setIntBusinessSourceID($intBusinessSourceID) |
||
450 | { |
||
451 | $this->intBusinessSourceID = $intBusinessSourceID; |
||
452 | return $this; |
||
453 | } |
||
454 | } |
||
455 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.