Issues (1169)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/API/getAllRoomsAvailabilityForStay.php (4 issues)

Upgrade to new PHP Analysis Engine

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 getAllRoomsAvailabilityForStay
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var string $strRoomIDs
15
     */
16
    protected $strRoomIDs = null;
17
18
    /**
19
     * @var string $strRoomTypeIDs
20
     */
21
    protected $strRoomTypeIDs = null;
22
23
    /**
24
     * @var string $strRoomAttributeIDs
25
     */
26
    protected $strRoomAttributeIDs = null;
27
28
    /**
29
     * @var string $strRoomLocationIDs
30
     */
31
    protected $strRoomLocationIDs = null;
32
33
    /**
34
     * @var string $strBuildingIDs
35
     */
36
    protected $strBuildingIDs = null;
37
38
    /**
39
     * @var string $strBeddingIDs
40
     */
41
    protected $strBeddingIDs = null;
42
43
    /**
44
     * @var \DateTime $ArrivalDate
45
     */
46
    protected $ArrivalDate = null;
47
48
    /**
49
     * @var \DateTime $DepartureDate
50
     */
51
    protected $DepartureDate = null;
52
53
    /**
54
     * @var string $strAttributeGroupings
55
     */
56
    protected $strAttributeGroupings = null;
57
58
    /**
59
     * @var string $strLocationsGroupings
60
     */
61
    protected $strLocationsGroupings = null;
62
63
    /**
64
     * @param int $guid
65
     * @param string $strRoomIDs
66
     * @param string $strRoomTypeIDs
67
     * @param string $strRoomAttributeIDs
68
     * @param string $strRoomLocationIDs
69
     * @param string $strBuildingIDs
70
     * @param string $strBeddingIDs
71
     * @param \DateTime $ArrivalDate
72
     * @param \DateTime $DepartureDate
73
     * @param string $strAttributeGroupings
74
     * @param string $strLocationsGroupings
75
     */
76
    public function __construct($guid, $strRoomIDs, $strRoomTypeIDs, $strRoomAttributeIDs, $strRoomLocationIDs, $strBuildingIDs, $strBeddingIDs, \DateTime $ArrivalDate, \DateTime $DepartureDate, $strAttributeGroupings, $strLocationsGroupings)
77
    {
78
        $this->guid = $guid;
79
        $this->strRoomIDs = $strRoomIDs;
80
        $this->strRoomTypeIDs = $strRoomTypeIDs;
81
        $this->strRoomAttributeIDs = $strRoomAttributeIDs;
82
        $this->strRoomLocationIDs = $strRoomLocationIDs;
83
        $this->strBuildingIDs = $strBuildingIDs;
84
        $this->strBeddingIDs = $strBeddingIDs;
85
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
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..

Loading history...
86
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
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..

Loading history...
87
        $this->strAttributeGroupings = $strAttributeGroupings;
88
        $this->strLocationsGroupings = $strLocationsGroupings;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getGuid()
95
    {
96
        return $this->guid;
97
    }
98
99
    /**
100
     * @param int $guid
101
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
102
     */
103
    public function setGuid($guid)
104
    {
105
        $this->guid = $guid;
106
        return $this;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getStrRoomIDs()
113
    {
114
        return $this->strRoomIDs;
115
    }
116
117
    /**
118
     * @param string $strRoomIDs
119
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
120
     */
121
    public function setStrRoomIDs($strRoomIDs)
122
    {
123
        $this->strRoomIDs = $strRoomIDs;
124
        return $this;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getStrRoomTypeIDs()
131
    {
132
        return $this->strRoomTypeIDs;
133
    }
134
135
    /**
136
     * @param string $strRoomTypeIDs
137
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
138
     */
139
    public function setStrRoomTypeIDs($strRoomTypeIDs)
140
    {
141
        $this->strRoomTypeIDs = $strRoomTypeIDs;
142
        return $this;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getStrRoomAttributeIDs()
149
    {
150
        return $this->strRoomAttributeIDs;
151
    }
152
153
    /**
154
     * @param string $strRoomAttributeIDs
155
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
156
     */
157
    public function setStrRoomAttributeIDs($strRoomAttributeIDs)
158
    {
159
        $this->strRoomAttributeIDs = $strRoomAttributeIDs;
160
        return $this;
161
    }
162
163
    /**
164
     * @return string
165
     */
166
    public function getStrRoomLocationIDs()
167
    {
168
        return $this->strRoomLocationIDs;
169
    }
170
171
    /**
172
     * @param string $strRoomLocationIDs
173
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
174
     */
175
    public function setStrRoomLocationIDs($strRoomLocationIDs)
176
    {
177
        $this->strRoomLocationIDs = $strRoomLocationIDs;
178
        return $this;
179
    }
180
181
    /**
182
     * @return string
183
     */
184
    public function getStrBuildingIDs()
185
    {
186
        return $this->strBuildingIDs;
187
    }
188
189
    /**
190
     * @param string $strBuildingIDs
191
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
192
     */
193
    public function setStrBuildingIDs($strBuildingIDs)
194
    {
195
        $this->strBuildingIDs = $strBuildingIDs;
196
        return $this;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getStrBeddingIDs()
203
    {
204
        return $this->strBeddingIDs;
205
    }
206
207
    /**
208
     * @param string $strBeddingIDs
209
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
210
     */
211
    public function setStrBeddingIDs($strBeddingIDs)
212
    {
213
        $this->strBeddingIDs = $strBeddingIDs;
214
        return $this;
215
    }
216
217
    /**
218
     * @return \DateTime
219
     */
220
    public function getArrivalDate()
221
    {
222
        if ($this->ArrivalDate == null) {
223
            return null;
224
        } else {
225
            try {
226
                return new \DateTime($this->ArrivalDate);
227
            } catch (\Exception $e) {
228
                return false;
229
            }
230
        }
231
    }
232
233
    /**
234
     * @param \DateTime $ArrivalDate
235
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
236
     */
237
    public function setArrivalDate(\DateTime $ArrivalDate)
238
    {
239
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
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..

Loading history...
240
        return $this;
241
    }
242
243
    /**
244
     * @return \DateTime
245
     */
246
    public function getDepartureDate()
247
    {
248
        if ($this->DepartureDate == null) {
249
            return null;
250
        } else {
251
            try {
252
                return new \DateTime($this->DepartureDate);
253
            } catch (\Exception $e) {
254
                return false;
255
            }
256
        }
257
    }
258
259
    /**
260
     * @param \DateTime $DepartureDate
261
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
262
     */
263
    public function setDepartureDate(\DateTime $DepartureDate)
264
    {
265
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
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..

Loading history...
266
        return $this;
267
    }
268
269
    /**
270
     * @return string
271
     */
272
    public function getStrAttributeGroupings()
273
    {
274
        return $this->strAttributeGroupings;
275
    }
276
277
    /**
278
     * @param string $strAttributeGroupings
279
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
280
     */
281
    public function setStrAttributeGroupings($strAttributeGroupings)
282
    {
283
        $this->strAttributeGroupings = $strAttributeGroupings;
284
        return $this;
285
    }
286
287
    /**
288
     * @return string
289
     */
290
    public function getStrLocationsGroupings()
291
    {
292
        return $this->strLocationsGroupings;
293
    }
294
295
    /**
296
     * @param string $strLocationsGroupings
297
     * @return \Gueststream\PMS\IQWare\API\getAllRoomsAvailabilityForStay
298
     */
299
    public function setStrLocationsGroupings($strLocationsGroupings)
300
    {
301
        $this->strLocationsGroupings = $strLocationsGroupings;
302
        return $this;
303
    }
304
}
305