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/SuiteItems.php (1 issue)

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 SuiteItems
6
{
7
8
    /**
9
     * @var int $ID_Room
10
     */
11
    protected $ID_Room = null;
12
13
    /**
14
     * @var int $ID_RoomType
15
     */
16
    protected $ID_RoomType = null;
17
18
    /**
19
     * @var int $ID_Building
20
     */
21
    protected $ID_Building = null;
22
23
    /**
24
     * @var string $RoomNo
25
     */
26
    protected $RoomNo = null;
27
28
    /**
29
     * @var string $OldRoomNo
30
     */
31
    protected $OldRoomNo = null;
32
33
    /**
34
     * @var string $OptionalRoomName
35
     */
36
    protected $OptionalRoomName = null;
37
38
    /**
39
     * @var boolean $IsMainRoom
40
     */
41
    protected $IsMainRoom = null;
42
43
    /**
44
     * @var int $ID_AccommodationType
45
     */
46
    protected $ID_AccommodationType = null;
47
48
    /**
49
     * @var int $ID_Floor
50
     */
51
    protected $ID_Floor = null;
52
53
    /**
54
     * @var string $FloorNo
55
     */
56
    protected $FloorNo = null;
57
58
    /**
59
     * @var int $ID_Bedding
60
     */
61
    protected $ID_Bedding = null;
62
63
    /**
64
     * @var ArrayOfInt $RoomAttributeIDs
65
     */
66
    protected $RoomAttributeIDs = null;
67
68
    /**
69
     * @var ArrayOfInt $RoomLocationIDs
70
     */
71
    protected $RoomLocationIDs = null;
72
73
    /**
74
     * @param int $ID_Room
75
     * @param int $ID_RoomType
76
     * @param int $ID_Building
77
     * @param boolean $IsMainRoom
78
     * @param int $ID_AccommodationType
79
     * @param int $ID_Floor
80
     * @param int $ID_Bedding
81
     */
82 View Code Duplication
    public function __construct($ID_Room, $ID_RoomType, $ID_Building, $IsMainRoom, $ID_AccommodationType, $ID_Floor, $ID_Bedding)
0 ignored issues
show
This method seems to be duplicated in your project.

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.

Loading history...
83
    {
84
        $this->ID_Room = $ID_Room;
85
        $this->ID_RoomType = $ID_RoomType;
86
        $this->ID_Building = $ID_Building;
87
        $this->IsMainRoom = $IsMainRoom;
88
        $this->ID_AccommodationType = $ID_AccommodationType;
89
        $this->ID_Floor = $ID_Floor;
90
        $this->ID_Bedding = $ID_Bedding;
91
    }
92
93
    /**
94
     * @return int
95
     */
96
    public function getID_Room()
97
    {
98
        return $this->ID_Room;
99
    }
100
101
    /**
102
     * @param int $ID_Room
103
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
104
     */
105
    public function setID_Room($ID_Room)
106
    {
107
        $this->ID_Room = $ID_Room;
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getID_RoomType()
115
    {
116
        return $this->ID_RoomType;
117
    }
118
119
    /**
120
     * @param int $ID_RoomType
121
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
122
     */
123
    public function setID_RoomType($ID_RoomType)
124
    {
125
        $this->ID_RoomType = $ID_RoomType;
126
        return $this;
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getID_Building()
133
    {
134
        return $this->ID_Building;
135
    }
136
137
    /**
138
     * @param int $ID_Building
139
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
140
     */
141
    public function setID_Building($ID_Building)
142
    {
143
        $this->ID_Building = $ID_Building;
144
        return $this;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getRoomNo()
151
    {
152
        return $this->RoomNo;
153
    }
154
155
    /**
156
     * @param string $RoomNo
157
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
158
     */
159
    public function setRoomNo($RoomNo)
160
    {
161
        $this->RoomNo = $RoomNo;
162
        return $this;
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getOldRoomNo()
169
    {
170
        return $this->OldRoomNo;
171
    }
172
173
    /**
174
     * @param string $OldRoomNo
175
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
176
     */
177
    public function setOldRoomNo($OldRoomNo)
178
    {
179
        $this->OldRoomNo = $OldRoomNo;
180
        return $this;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getOptionalRoomName()
187
    {
188
        return $this->OptionalRoomName;
189
    }
190
191
    /**
192
     * @param string $OptionalRoomName
193
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
194
     */
195
    public function setOptionalRoomName($OptionalRoomName)
196
    {
197
        $this->OptionalRoomName = $OptionalRoomName;
198
        return $this;
199
    }
200
201
    /**
202
     * @return boolean
203
     */
204
    public function getIsMainRoom()
205
    {
206
        return $this->IsMainRoom;
207
    }
208
209
    /**
210
     * @param boolean $IsMainRoom
211
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
212
     */
213
    public function setIsMainRoom($IsMainRoom)
214
    {
215
        $this->IsMainRoom = $IsMainRoom;
216
        return $this;
217
    }
218
219
    /**
220
     * @return int
221
     */
222
    public function getID_AccommodationType()
223
    {
224
        return $this->ID_AccommodationType;
225
    }
226
227
    /**
228
     * @param int $ID_AccommodationType
229
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
230
     */
231
    public function setID_AccommodationType($ID_AccommodationType)
232
    {
233
        $this->ID_AccommodationType = $ID_AccommodationType;
234
        return $this;
235
    }
236
237
    /**
238
     * @return int
239
     */
240
    public function getID_Floor()
241
    {
242
        return $this->ID_Floor;
243
    }
244
245
    /**
246
     * @param int $ID_Floor
247
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
248
     */
249
    public function setID_Floor($ID_Floor)
250
    {
251
        $this->ID_Floor = $ID_Floor;
252
        return $this;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getFloorNo()
259
    {
260
        return $this->FloorNo;
261
    }
262
263
    /**
264
     * @param string $FloorNo
265
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
266
     */
267
    public function setFloorNo($FloorNo)
268
    {
269
        $this->FloorNo = $FloorNo;
270
        return $this;
271
    }
272
273
    /**
274
     * @return int
275
     */
276
    public function getID_Bedding()
277
    {
278
        return $this->ID_Bedding;
279
    }
280
281
    /**
282
     * @param int $ID_Bedding
283
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
284
     */
285
    public function setID_Bedding($ID_Bedding)
286
    {
287
        $this->ID_Bedding = $ID_Bedding;
288
        return $this;
289
    }
290
291
    /**
292
     * @return ArrayOfInt
293
     */
294
    public function getRoomAttributeIDs()
295
    {
296
        return $this->RoomAttributeIDs;
297
    }
298
299
    /**
300
     * @param ArrayOfInt $RoomAttributeIDs
301
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
302
     */
303
    public function setRoomAttributeIDs($RoomAttributeIDs)
304
    {
305
        $this->RoomAttributeIDs = $RoomAttributeIDs;
306
        return $this;
307
    }
308
309
    /**
310
     * @return ArrayOfInt
311
     */
312
    public function getRoomLocationIDs()
313
    {
314
        return $this->RoomLocationIDs;
315
    }
316
317
    /**
318
     * @param ArrayOfInt $RoomLocationIDs
319
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
320
     */
321
    public function setRoomLocationIDs($RoomLocationIDs)
322
    {
323
        $this->RoomLocationIDs = $RoomLocationIDs;
324
        return $this;
325
    }
326
}
327