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 OwnerReservation |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var \DateTime $Arrival |
||
10 | */ |
||
11 | protected $Arrival = null; |
||
12 | |||
13 | /** |
||
14 | * @var \DateTime $Departure |
||
15 | */ |
||
16 | protected $Departure = null; |
||
17 | |||
18 | /** |
||
19 | * @var int $NightCount |
||
20 | */ |
||
21 | protected $NightCount = null; |
||
22 | |||
23 | /** |
||
24 | * @var int $GuestCount |
||
25 | */ |
||
26 | protected $GuestCount = null; |
||
27 | |||
28 | /** |
||
29 | * @var int $CondoOwnerId |
||
30 | */ |
||
31 | protected $CondoOwnerId = null; |
||
32 | |||
33 | /** |
||
34 | * @var int $AdminId |
||
35 | */ |
||
36 | protected $AdminId = null; |
||
37 | |||
38 | /** |
||
39 | * @var ArrayOfShort $ChildrenAges |
||
40 | */ |
||
41 | protected $ChildrenAges = null; |
||
42 | |||
43 | /** |
||
44 | * @var string $LanguageCode |
||
45 | */ |
||
46 | protected $LanguageCode = null; |
||
47 | |||
48 | /** |
||
49 | * @param \DateTime $Arrival |
||
50 | * @param \DateTime $Departure |
||
51 | * @param int $NightCount |
||
52 | * @param int $GuestCount |
||
53 | * @param int $CondoOwnerId |
||
54 | * @param int $AdminId |
||
55 | */ |
||
56 | public function __construct(\DateTime $Arrival, \DateTime $Departure, $NightCount, $GuestCount, $CondoOwnerId, $AdminId) |
||
57 | { |
||
58 | $this->Arrival = $Arrival->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
|
|||
59 | $this->Departure = $Departure->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$Departure->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Departure .
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.. ![]() |
|||
60 | $this->NightCount = $NightCount; |
||
61 | $this->GuestCount = $GuestCount; |
||
62 | $this->CondoOwnerId = $CondoOwnerId; |
||
63 | $this->AdminId = $AdminId; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return \DateTime |
||
68 | */ |
||
69 | public function getArrival() |
||
70 | { |
||
71 | if ($this->Arrival == null) { |
||
72 | return null; |
||
73 | } else { |
||
74 | try { |
||
75 | return new \DateTime($this->Arrival); |
||
76 | } catch (\Exception $e) { |
||
77 | return false; |
||
78 | } |
||
79 | } |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * @param \DateTime $Arrival |
||
84 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
85 | */ |
||
86 | public function setArrival(\DateTime $Arrival) |
||
87 | { |
||
88 | $this->Arrival = $Arrival->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$Arrival->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Arrival .
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.. ![]() |
|||
89 | return $this; |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * @return \DateTime |
||
94 | */ |
||
95 | public function getDeparture() |
||
96 | { |
||
97 | if ($this->Departure == null) { |
||
98 | return null; |
||
99 | } else { |
||
100 | try { |
||
101 | return new \DateTime($this->Departure); |
||
102 | } catch (\Exception $e) { |
||
103 | return false; |
||
104 | } |
||
105 | } |
||
106 | } |
||
107 | |||
108 | /** |
||
109 | * @param \DateTime $Departure |
||
110 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
111 | */ |
||
112 | public function setDeparture(\DateTime $Departure) |
||
113 | { |
||
114 | $this->Departure = $Departure->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$Departure->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Departure .
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.. ![]() |
|||
115 | return $this; |
||
116 | } |
||
117 | |||
118 | /** |
||
119 | * @return int |
||
120 | */ |
||
121 | public function getNightCount() |
||
122 | { |
||
123 | return $this->NightCount; |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * @param int $NightCount |
||
128 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
129 | */ |
||
130 | public function setNightCount($NightCount) |
||
131 | { |
||
132 | $this->NightCount = $NightCount; |
||
133 | return $this; |
||
134 | } |
||
135 | |||
136 | /** |
||
137 | * @return int |
||
138 | */ |
||
139 | public function getGuestCount() |
||
140 | { |
||
141 | return $this->GuestCount; |
||
142 | } |
||
143 | |||
144 | /** |
||
145 | * @param int $GuestCount |
||
146 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
147 | */ |
||
148 | public function setGuestCount($GuestCount) |
||
149 | { |
||
150 | $this->GuestCount = $GuestCount; |
||
151 | return $this; |
||
152 | } |
||
153 | |||
154 | /** |
||
155 | * @return int |
||
156 | */ |
||
157 | public function getCondoOwnerId() |
||
158 | { |
||
159 | return $this->CondoOwnerId; |
||
160 | } |
||
161 | |||
162 | /** |
||
163 | * @param int $CondoOwnerId |
||
164 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
165 | */ |
||
166 | public function setCondoOwnerId($CondoOwnerId) |
||
167 | { |
||
168 | $this->CondoOwnerId = $CondoOwnerId; |
||
169 | return $this; |
||
170 | } |
||
171 | |||
172 | /** |
||
173 | * @return int |
||
174 | */ |
||
175 | public function getAdminId() |
||
176 | { |
||
177 | return $this->AdminId; |
||
178 | } |
||
179 | |||
180 | /** |
||
181 | * @param int $AdminId |
||
182 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
183 | */ |
||
184 | public function setAdminId($AdminId) |
||
185 | { |
||
186 | $this->AdminId = $AdminId; |
||
187 | return $this; |
||
188 | } |
||
189 | |||
190 | /** |
||
191 | * @return ArrayOfShort |
||
192 | */ |
||
193 | public function getChildrenAges() |
||
194 | { |
||
195 | return $this->ChildrenAges; |
||
196 | } |
||
197 | |||
198 | /** |
||
199 | * @param ArrayOfShort $ChildrenAges |
||
200 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
201 | */ |
||
202 | public function setChildrenAges($ChildrenAges) |
||
203 | { |
||
204 | $this->ChildrenAges = $ChildrenAges; |
||
205 | return $this; |
||
206 | } |
||
207 | |||
208 | /** |
||
209 | * @return string |
||
210 | */ |
||
211 | public function getLanguageCode() |
||
212 | { |
||
213 | return $this->LanguageCode; |
||
214 | } |
||
215 | |||
216 | /** |
||
217 | * @param string $LanguageCode |
||
218 | * @return \Gueststream\PMS\IQWare\API\OwnerReservation |
||
219 | */ |
||
220 | public function setLanguageCode($LanguageCode) |
||
221 | { |
||
222 | $this->LanguageCode = $LanguageCode; |
||
223 | return $this; |
||
224 | } |
||
225 | } |
||
226 |
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..