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 | View Code Duplication | class DailyActivity |
|
0 ignored issues
–
show
|
|||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var int $ID_Account |
||
10 | */ |
||
11 | protected $ID_Account = null; |
||
12 | |||
13 | /** |
||
14 | * @var int $AccountNo |
||
15 | */ |
||
16 | protected $AccountNo = null; |
||
17 | |||
18 | /** |
||
19 | * @var int $OOE |
||
20 | */ |
||
21 | protected $OOE = null; |
||
22 | |||
23 | /** |
||
24 | * @var int $OOR |
||
25 | */ |
||
26 | protected $OOR = null; |
||
27 | |||
28 | /** |
||
29 | * @var int $OOO |
||
30 | */ |
||
31 | protected $OOO = null; |
||
32 | |||
33 | /** |
||
34 | * @var \DateTime $AccountDate |
||
35 | */ |
||
36 | protected $AccountDate = null; |
||
37 | |||
38 | /** |
||
39 | * @var float $TotRoomRev |
||
40 | */ |
||
41 | protected $TotRoomRev = null; |
||
42 | |||
43 | /** |
||
44 | * @var float $TotComm |
||
45 | */ |
||
46 | protected $TotComm = null; |
||
47 | |||
48 | /** |
||
49 | * @var float $TotTax1 |
||
50 | */ |
||
51 | protected $TotTax1 = null; |
||
52 | |||
53 | /** |
||
54 | * @var float $TotTax2 |
||
55 | */ |
||
56 | protected $TotTax2 = null; |
||
57 | |||
58 | /** |
||
59 | * @var float $TotTax3 |
||
60 | */ |
||
61 | protected $TotTax3 = null; |
||
62 | |||
63 | /** |
||
64 | * @var float $TotOtherCB |
||
65 | */ |
||
66 | protected $TotOtherCB = null; |
||
67 | |||
68 | /** |
||
69 | * @var float $TotReferal |
||
70 | */ |
||
71 | protected $TotReferal = null; |
||
72 | |||
73 | /** |
||
74 | * @var float $TotCommCC |
||
75 | */ |
||
76 | protected $TotCommCC = null; |
||
77 | |||
78 | /** |
||
79 | * @var float $DailyPct |
||
80 | */ |
||
81 | protected $DailyPct = null; |
||
82 | |||
83 | /** |
||
84 | * @var int $BookingType |
||
85 | */ |
||
86 | protected $BookingType = null; |
||
87 | |||
88 | /** |
||
89 | * @var int $SeqNo |
||
90 | */ |
||
91 | protected $SeqNo = null; |
||
92 | |||
93 | /** |
||
94 | * @var \DateTime $ArrivalDate |
||
95 | */ |
||
96 | protected $ArrivalDate = null; |
||
97 | |||
98 | /** |
||
99 | * @var \DateTime $DepartureDate |
||
100 | */ |
||
101 | protected $DepartureDate = null; |
||
102 | |||
103 | /** |
||
104 | * @param int $ID_Account |
||
105 | * @param int $AccountNo |
||
106 | * @param int $OOE |
||
107 | * @param int $OOR |
||
108 | * @param int $OOO |
||
109 | * @param \DateTime $AccountDate |
||
110 | * @param float $TotRoomRev |
||
111 | * @param float $TotComm |
||
112 | * @param float $TotTax1 |
||
113 | * @param float $TotTax2 |
||
114 | * @param float $TotTax3 |
||
115 | * @param float $TotOtherCB |
||
116 | * @param float $TotReferal |
||
117 | * @param float $TotCommCC |
||
118 | * @param float $DailyPct |
||
119 | * @param int $BookingType |
||
120 | * @param int $SeqNo |
||
121 | * @param \DateTime $ArrivalDate |
||
122 | * @param \DateTime $DepartureDate |
||
123 | */ |
||
124 | public function __construct($ID_Account, $AccountNo, $OOE, $OOR, $OOO, \DateTime $AccountDate, $TotRoomRev, $TotComm, $TotTax1, $TotTax2, $TotTax3, $TotOtherCB, $TotReferal, $TotCommCC, $DailyPct, $BookingType, $SeqNo, \DateTime $ArrivalDate, \DateTime $DepartureDate) |
||
125 | { |
||
126 | $this->ID_Account = $ID_Account; |
||
127 | $this->AccountNo = $AccountNo; |
||
128 | $this->OOE = $OOE; |
||
129 | $this->OOR = $OOR; |
||
130 | $this->OOO = $OOO; |
||
131 | $this->AccountDate = $AccountDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$AccountDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $AccountDate .
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.. ![]() |
|||
132 | $this->TotRoomRev = $TotRoomRev; |
||
133 | $this->TotComm = $TotComm; |
||
134 | $this->TotTax1 = $TotTax1; |
||
135 | $this->TotTax2 = $TotTax2; |
||
136 | $this->TotTax3 = $TotTax3; |
||
137 | $this->TotOtherCB = $TotOtherCB; |
||
138 | $this->TotReferal = $TotReferal; |
||
139 | $this->TotCommCC = $TotCommCC; |
||
140 | $this->DailyPct = $DailyPct; |
||
141 | $this->BookingType = $BookingType; |
||
142 | $this->SeqNo = $SeqNo; |
||
143 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
144 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
145 | } |
||
146 | |||
147 | /** |
||
148 | * @return int |
||
149 | */ |
||
150 | public function getID_Account() |
||
151 | { |
||
152 | return $this->ID_Account; |
||
153 | } |
||
154 | |||
155 | /** |
||
156 | * @param int $ID_Account |
||
157 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
158 | */ |
||
159 | public function setID_Account($ID_Account) |
||
160 | { |
||
161 | $this->ID_Account = $ID_Account; |
||
162 | return $this; |
||
163 | } |
||
164 | |||
165 | /** |
||
166 | * @return int |
||
167 | */ |
||
168 | public function getAccountNo() |
||
169 | { |
||
170 | return $this->AccountNo; |
||
171 | } |
||
172 | |||
173 | /** |
||
174 | * @param int $AccountNo |
||
175 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
176 | */ |
||
177 | public function setAccountNo($AccountNo) |
||
178 | { |
||
179 | $this->AccountNo = $AccountNo; |
||
180 | return $this; |
||
181 | } |
||
182 | |||
183 | /** |
||
184 | * @return int |
||
185 | */ |
||
186 | public function getOOE() |
||
187 | { |
||
188 | return $this->OOE; |
||
189 | } |
||
190 | |||
191 | /** |
||
192 | * @param int $OOE |
||
193 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
194 | */ |
||
195 | public function setOOE($OOE) |
||
196 | { |
||
197 | $this->OOE = $OOE; |
||
198 | return $this; |
||
199 | } |
||
200 | |||
201 | /** |
||
202 | * @return int |
||
203 | */ |
||
204 | public function getOOR() |
||
205 | { |
||
206 | return $this->OOR; |
||
207 | } |
||
208 | |||
209 | /** |
||
210 | * @param int $OOR |
||
211 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
212 | */ |
||
213 | public function setOOR($OOR) |
||
214 | { |
||
215 | $this->OOR = $OOR; |
||
216 | return $this; |
||
217 | } |
||
218 | |||
219 | /** |
||
220 | * @return int |
||
221 | */ |
||
222 | public function getOOO() |
||
223 | { |
||
224 | return $this->OOO; |
||
225 | } |
||
226 | |||
227 | /** |
||
228 | * @param int $OOO |
||
229 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
230 | */ |
||
231 | public function setOOO($OOO) |
||
232 | { |
||
233 | $this->OOO = $OOO; |
||
234 | return $this; |
||
235 | } |
||
236 | |||
237 | /** |
||
238 | * @return \DateTime |
||
239 | */ |
||
240 | public function getAccountDate() |
||
241 | { |
||
242 | if ($this->AccountDate == null) { |
||
243 | return null; |
||
244 | } else { |
||
245 | try { |
||
246 | return new \DateTime($this->AccountDate); |
||
247 | } catch (\Exception $e) { |
||
248 | return false; |
||
249 | } |
||
250 | } |
||
251 | } |
||
252 | |||
253 | /** |
||
254 | * @param \DateTime $AccountDate |
||
255 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
256 | */ |
||
257 | public function setAccountDate(\DateTime $AccountDate) |
||
258 | { |
||
259 | $this->AccountDate = $AccountDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$AccountDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $AccountDate .
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.. ![]() |
|||
260 | return $this; |
||
261 | } |
||
262 | |||
263 | /** |
||
264 | * @return float |
||
265 | */ |
||
266 | public function getTotRoomRev() |
||
267 | { |
||
268 | return $this->TotRoomRev; |
||
269 | } |
||
270 | |||
271 | /** |
||
272 | * @param float $TotRoomRev |
||
273 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
274 | */ |
||
275 | public function setTotRoomRev($TotRoomRev) |
||
276 | { |
||
277 | $this->TotRoomRev = $TotRoomRev; |
||
278 | return $this; |
||
279 | } |
||
280 | |||
281 | /** |
||
282 | * @return float |
||
283 | */ |
||
284 | public function getTotComm() |
||
285 | { |
||
286 | return $this->TotComm; |
||
287 | } |
||
288 | |||
289 | /** |
||
290 | * @param float $TotComm |
||
291 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
292 | */ |
||
293 | public function setTotComm($TotComm) |
||
294 | { |
||
295 | $this->TotComm = $TotComm; |
||
296 | return $this; |
||
297 | } |
||
298 | |||
299 | /** |
||
300 | * @return float |
||
301 | */ |
||
302 | public function getTotTax1() |
||
303 | { |
||
304 | return $this->TotTax1; |
||
305 | } |
||
306 | |||
307 | /** |
||
308 | * @param float $TotTax1 |
||
309 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
310 | */ |
||
311 | public function setTotTax1($TotTax1) |
||
312 | { |
||
313 | $this->TotTax1 = $TotTax1; |
||
314 | return $this; |
||
315 | } |
||
316 | |||
317 | /** |
||
318 | * @return float |
||
319 | */ |
||
320 | public function getTotTax2() |
||
321 | { |
||
322 | return $this->TotTax2; |
||
323 | } |
||
324 | |||
325 | /** |
||
326 | * @param float $TotTax2 |
||
327 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
328 | */ |
||
329 | public function setTotTax2($TotTax2) |
||
330 | { |
||
331 | $this->TotTax2 = $TotTax2; |
||
332 | return $this; |
||
333 | } |
||
334 | |||
335 | /** |
||
336 | * @return float |
||
337 | */ |
||
338 | public function getTotTax3() |
||
339 | { |
||
340 | return $this->TotTax3; |
||
341 | } |
||
342 | |||
343 | /** |
||
344 | * @param float $TotTax3 |
||
345 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
346 | */ |
||
347 | public function setTotTax3($TotTax3) |
||
348 | { |
||
349 | $this->TotTax3 = $TotTax3; |
||
350 | return $this; |
||
351 | } |
||
352 | |||
353 | /** |
||
354 | * @return float |
||
355 | */ |
||
356 | public function getTotOtherCB() |
||
357 | { |
||
358 | return $this->TotOtherCB; |
||
359 | } |
||
360 | |||
361 | /** |
||
362 | * @param float $TotOtherCB |
||
363 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
364 | */ |
||
365 | public function setTotOtherCB($TotOtherCB) |
||
366 | { |
||
367 | $this->TotOtherCB = $TotOtherCB; |
||
368 | return $this; |
||
369 | } |
||
370 | |||
371 | /** |
||
372 | * @return float |
||
373 | */ |
||
374 | public function getTotReferal() |
||
375 | { |
||
376 | return $this->TotReferal; |
||
377 | } |
||
378 | |||
379 | /** |
||
380 | * @param float $TotReferal |
||
381 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
382 | */ |
||
383 | public function setTotReferal($TotReferal) |
||
384 | { |
||
385 | $this->TotReferal = $TotReferal; |
||
386 | return $this; |
||
387 | } |
||
388 | |||
389 | /** |
||
390 | * @return float |
||
391 | */ |
||
392 | public function getTotCommCC() |
||
393 | { |
||
394 | return $this->TotCommCC; |
||
395 | } |
||
396 | |||
397 | /** |
||
398 | * @param float $TotCommCC |
||
399 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
400 | */ |
||
401 | public function setTotCommCC($TotCommCC) |
||
402 | { |
||
403 | $this->TotCommCC = $TotCommCC; |
||
404 | return $this; |
||
405 | } |
||
406 | |||
407 | /** |
||
408 | * @return float |
||
409 | */ |
||
410 | public function getDailyPct() |
||
411 | { |
||
412 | return $this->DailyPct; |
||
413 | } |
||
414 | |||
415 | /** |
||
416 | * @param float $DailyPct |
||
417 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
418 | */ |
||
419 | public function setDailyPct($DailyPct) |
||
420 | { |
||
421 | $this->DailyPct = $DailyPct; |
||
422 | return $this; |
||
423 | } |
||
424 | |||
425 | /** |
||
426 | * @return int |
||
427 | */ |
||
428 | public function getBookingType() |
||
429 | { |
||
430 | return $this->BookingType; |
||
431 | } |
||
432 | |||
433 | /** |
||
434 | * @param int $BookingType |
||
435 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
436 | */ |
||
437 | public function setBookingType($BookingType) |
||
438 | { |
||
439 | $this->BookingType = $BookingType; |
||
440 | return $this; |
||
441 | } |
||
442 | |||
443 | /** |
||
444 | * @return int |
||
445 | */ |
||
446 | public function getSeqNo() |
||
447 | { |
||
448 | return $this->SeqNo; |
||
449 | } |
||
450 | |||
451 | /** |
||
452 | * @param int $SeqNo |
||
453 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
454 | */ |
||
455 | public function setSeqNo($SeqNo) |
||
456 | { |
||
457 | $this->SeqNo = $SeqNo; |
||
458 | return $this; |
||
459 | } |
||
460 | |||
461 | /** |
||
462 | * @return \DateTime |
||
463 | */ |
||
464 | public function getArrivalDate() |
||
465 | { |
||
466 | if ($this->ArrivalDate == null) { |
||
467 | return null; |
||
468 | } else { |
||
469 | try { |
||
470 | return new \DateTime($this->ArrivalDate); |
||
471 | } catch (\Exception $e) { |
||
472 | return false; |
||
473 | } |
||
474 | } |
||
475 | } |
||
476 | |||
477 | /** |
||
478 | * @param \DateTime $ArrivalDate |
||
479 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
480 | */ |
||
481 | public function setArrivalDate(\DateTime $ArrivalDate) |
||
482 | { |
||
483 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
484 | return $this; |
||
485 | } |
||
486 | |||
487 | /** |
||
488 | * @return \DateTime |
||
489 | */ |
||
490 | public function getDepartureDate() |
||
491 | { |
||
492 | if ($this->DepartureDate == null) { |
||
493 | return null; |
||
494 | } else { |
||
495 | try { |
||
496 | return new \DateTime($this->DepartureDate); |
||
497 | } catch (\Exception $e) { |
||
498 | return false; |
||
499 | } |
||
500 | } |
||
501 | } |
||
502 | |||
503 | /** |
||
504 | * @param \DateTime $DepartureDate |
||
505 | * @return \Gueststream\PMS\IQWare\API\DailyActivity |
||
506 | */ |
||
507 | public function setDepartureDate(\DateTime $DepartureDate) |
||
508 | { |
||
509 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
510 | return $this; |
||
511 | } |
||
512 | } |
||
513 |
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.