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 SpecificDayOccupancyValue |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var \DateTime $BeginDate |
||
10 | */ |
||
11 | protected $BeginDate = null; |
||
12 | |||
13 | /** |
||
14 | * @var \DateTime $EndDate |
||
15 | */ |
||
16 | protected $EndDate = null; |
||
17 | |||
18 | /** |
||
19 | * @var string $SingleOcc |
||
20 | */ |
||
21 | protected $SingleOcc = null; |
||
22 | |||
23 | /** |
||
24 | * @var string $DoubleOcc |
||
25 | */ |
||
26 | protected $DoubleOcc = null; |
||
27 | |||
28 | /** |
||
29 | * @var string $TripleOcc |
||
30 | */ |
||
31 | protected $TripleOcc = null; |
||
32 | |||
33 | /** |
||
34 | * @var string $QuadOcc |
||
35 | */ |
||
36 | protected $QuadOcc = null; |
||
37 | |||
38 | /** |
||
39 | * @var string $Additional |
||
40 | */ |
||
41 | protected $Additional = null; |
||
42 | |||
43 | /** |
||
44 | * @var string $Cat1 |
||
45 | */ |
||
46 | protected $Cat1 = null; |
||
47 | |||
48 | /** |
||
49 | * @var string $Cat2 |
||
50 | */ |
||
51 | protected $Cat2 = null; |
||
52 | |||
53 | /** |
||
54 | * @var string $Cat3 |
||
55 | */ |
||
56 | protected $Cat3 = null; |
||
57 | |||
58 | /** |
||
59 | * @var string $Cat4 |
||
60 | */ |
||
61 | protected $Cat4 = null; |
||
62 | |||
63 | /** |
||
64 | * @param \DateTime $BeginDate |
||
65 | * @param \DateTime $EndDate |
||
66 | */ |
||
67 | public function __construct(\DateTime $BeginDate, \DateTime $EndDate) |
||
68 | { |
||
69 | $this->BeginDate = $BeginDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
|
|||
70 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate .
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.. ![]() |
|||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @return \DateTime |
||
75 | */ |
||
76 | public function getBeginDate() |
||
77 | { |
||
78 | if ($this->BeginDate == null) { |
||
79 | return null; |
||
80 | } else { |
||
81 | try { |
||
82 | return new \DateTime($this->BeginDate); |
||
83 | } catch (\Exception $e) { |
||
84 | return false; |
||
85 | } |
||
86 | } |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @param \DateTime $BeginDate |
||
91 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
92 | */ |
||
93 | public function setBeginDate(\DateTime $BeginDate) |
||
94 | { |
||
95 | $this->BeginDate = $BeginDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$BeginDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $BeginDate .
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.. ![]() |
|||
96 | return $this; |
||
97 | } |
||
98 | |||
99 | /** |
||
100 | * @return \DateTime |
||
101 | */ |
||
102 | public function getEndDate() |
||
103 | { |
||
104 | if ($this->EndDate == null) { |
||
105 | return null; |
||
106 | } else { |
||
107 | try { |
||
108 | return new \DateTime($this->EndDate); |
||
109 | } catch (\Exception $e) { |
||
110 | return false; |
||
111 | } |
||
112 | } |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * @param \DateTime $EndDate |
||
117 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
118 | */ |
||
119 | public function setEndDate(\DateTime $EndDate) |
||
120 | { |
||
121 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
It seems like
$EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate .
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 | return $this; |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getSingleOcc() |
||
129 | { |
||
130 | return $this->SingleOcc; |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * @param string $SingleOcc |
||
135 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
136 | */ |
||
137 | public function setSingleOcc($SingleOcc) |
||
138 | { |
||
139 | $this->SingleOcc = $SingleOcc; |
||
140 | return $this; |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getDoubleOcc() |
||
147 | { |
||
148 | return $this->DoubleOcc; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @param string $DoubleOcc |
||
153 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
154 | */ |
||
155 | public function setDoubleOcc($DoubleOcc) |
||
156 | { |
||
157 | $this->DoubleOcc = $DoubleOcc; |
||
158 | return $this; |
||
159 | } |
||
160 | |||
161 | /** |
||
162 | * @return string |
||
163 | */ |
||
164 | public function getTripleOcc() |
||
165 | { |
||
166 | return $this->TripleOcc; |
||
167 | } |
||
168 | |||
169 | /** |
||
170 | * @param string $TripleOcc |
||
171 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
172 | */ |
||
173 | public function setTripleOcc($TripleOcc) |
||
174 | { |
||
175 | $this->TripleOcc = $TripleOcc; |
||
176 | return $this; |
||
177 | } |
||
178 | |||
179 | /** |
||
180 | * @return string |
||
181 | */ |
||
182 | public function getQuadOcc() |
||
183 | { |
||
184 | return $this->QuadOcc; |
||
185 | } |
||
186 | |||
187 | /** |
||
188 | * @param string $QuadOcc |
||
189 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
190 | */ |
||
191 | public function setQuadOcc($QuadOcc) |
||
192 | { |
||
193 | $this->QuadOcc = $QuadOcc; |
||
194 | return $this; |
||
195 | } |
||
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | public function getAdditional() |
||
201 | { |
||
202 | return $this->Additional; |
||
203 | } |
||
204 | |||
205 | /** |
||
206 | * @param string $Additional |
||
207 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
208 | */ |
||
209 | public function setAdditional($Additional) |
||
210 | { |
||
211 | $this->Additional = $Additional; |
||
212 | return $this; |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * @return string |
||
217 | */ |
||
218 | public function getCat1() |
||
219 | { |
||
220 | return $this->Cat1; |
||
221 | } |
||
222 | |||
223 | /** |
||
224 | * @param string $Cat1 |
||
225 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
226 | */ |
||
227 | public function setCat1($Cat1) |
||
228 | { |
||
229 | $this->Cat1 = $Cat1; |
||
230 | return $this; |
||
231 | } |
||
232 | |||
233 | /** |
||
234 | * @return string |
||
235 | */ |
||
236 | public function getCat2() |
||
237 | { |
||
238 | return $this->Cat2; |
||
239 | } |
||
240 | |||
241 | /** |
||
242 | * @param string $Cat2 |
||
243 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
244 | */ |
||
245 | public function setCat2($Cat2) |
||
246 | { |
||
247 | $this->Cat2 = $Cat2; |
||
248 | return $this; |
||
249 | } |
||
250 | |||
251 | /** |
||
252 | * @return string |
||
253 | */ |
||
254 | public function getCat3() |
||
255 | { |
||
256 | return $this->Cat3; |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * @param string $Cat3 |
||
261 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
262 | */ |
||
263 | public function setCat3($Cat3) |
||
264 | { |
||
265 | $this->Cat3 = $Cat3; |
||
266 | return $this; |
||
267 | } |
||
268 | |||
269 | /** |
||
270 | * @return string |
||
271 | */ |
||
272 | public function getCat4() |
||
273 | { |
||
274 | return $this->Cat4; |
||
275 | } |
||
276 | |||
277 | /** |
||
278 | * @param string $Cat4 |
||
279 | * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue |
||
280 | */ |
||
281 | public function setCat4($Cat4) |
||
282 | { |
||
283 | $this->Cat4 = $Cat4; |
||
284 | return $this; |
||
285 | } |
||
286 | } |
||
287 |
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..