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/ValidateRoomRefusals.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 ValidateRoomRefusals
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var int $ID_RateCode
20
     */
21
    protected $ID_RateCode = null;
22
23
    /**
24
     * @var int $NbrGuest
25
     */
26
    protected $NbrGuest = null;
27
28
    /**
29
     * @var int $Cat1
30
     */
31
    protected $Cat1 = null;
32
33
    /**
34
     * @var int $Cat2
35
     */
36
    protected $Cat2 = null;
37
38
    /**
39
     * @var int $Cat3
40
     */
41
    protected $Cat3 = null;
42
43
    /**
44
     * @var int $Cat4
45
     */
46
    protected $Cat4 = null;
47
48
    /**
49
     * @var \DateTime $ReservationArrivalDate
50
     */
51
    protected $ReservationArrivalDate = null;
52
53
    /**
54
     * @var \DateTime $ReservationDepartureDate
55
     */
56
    protected $ReservationDepartureDate = null;
57
58
    /**
59
     * @var int $intID_SuiteConfiguration
60
     */
61
    protected $intID_SuiteConfiguration = null;
62
63
    /**
64
     * @param int $guid
65
     * @param int $ID_Room
66
     * @param int $ID_RateCode
67
     * @param int $NbrGuest
68
     * @param int $Cat1
69
     * @param int $Cat2
70
     * @param int $Cat3
71
     * @param int $Cat4
72
     * @param \DateTime $ReservationArrivalDate
73
     * @param \DateTime $ReservationDepartureDate
74
     * @param int $intID_SuiteConfiguration
75
     */
76
    public function __construct($guid, $ID_Room, $ID_RateCode, $NbrGuest, $Cat1, $Cat2, $Cat3, $Cat4, \DateTime $ReservationArrivalDate, \DateTime $ReservationDepartureDate, $intID_SuiteConfiguration)
77
    {
78
        $this->guid = $guid;
79
        $this->ID_Room = $ID_Room;
80
        $this->ID_RateCode = $ID_RateCode;
81
        $this->NbrGuest = $NbrGuest;
82
        $this->Cat1 = $Cat1;
83
        $this->Cat2 = $Cat2;
84
        $this->Cat3 = $Cat3;
85
        $this->Cat4 = $Cat4;
86
        $this->ReservationArrivalDate = $ReservationArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ReservationArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ReservationArrivalDate.

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->ReservationDepartureDate = $ReservationDepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ReservationDepartureDat...format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ReservationDepartureDate.

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...
88
        $this->intID_SuiteConfiguration = $intID_SuiteConfiguration;
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\ValidateRoomRefusals
102
     */
103
    public function setGuid($guid)
104
    {
105
        $this->guid = $guid;
106
        return $this;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getID_Room()
113
    {
114
        return $this->ID_Room;
115
    }
116
117
    /**
118
     * @param int $ID_Room
119
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
120
     */
121
    public function setID_Room($ID_Room)
122
    {
123
        $this->ID_Room = $ID_Room;
124
        return $this;
125
    }
126
127
    /**
128
     * @return int
129
     */
130
    public function getID_RateCode()
131
    {
132
        return $this->ID_RateCode;
133
    }
134
135
    /**
136
     * @param int $ID_RateCode
137
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
138
     */
139
    public function setID_RateCode($ID_RateCode)
140
    {
141
        $this->ID_RateCode = $ID_RateCode;
142
        return $this;
143
    }
144
145
    /**
146
     * @return int
147
     */
148
    public function getNbrGuest()
149
    {
150
        return $this->NbrGuest;
151
    }
152
153
    /**
154
     * @param int $NbrGuest
155
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
156
     */
157
    public function setNbrGuest($NbrGuest)
158
    {
159
        $this->NbrGuest = $NbrGuest;
160
        return $this;
161
    }
162
163
    /**
164
     * @return int
165
     */
166
    public function getCat1()
167
    {
168
        return $this->Cat1;
169
    }
170
171
    /**
172
     * @param int $Cat1
173
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
174
     */
175
    public function setCat1($Cat1)
176
    {
177
        $this->Cat1 = $Cat1;
178
        return $this;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getCat2()
185
    {
186
        return $this->Cat2;
187
    }
188
189
    /**
190
     * @param int $Cat2
191
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
192
     */
193
    public function setCat2($Cat2)
194
    {
195
        $this->Cat2 = $Cat2;
196
        return $this;
197
    }
198
199
    /**
200
     * @return int
201
     */
202
    public function getCat3()
203
    {
204
        return $this->Cat3;
205
    }
206
207
    /**
208
     * @param int $Cat3
209
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
210
     */
211
    public function setCat3($Cat3)
212
    {
213
        $this->Cat3 = $Cat3;
214
        return $this;
215
    }
216
217
    /**
218
     * @return int
219
     */
220
    public function getCat4()
221
    {
222
        return $this->Cat4;
223
    }
224
225
    /**
226
     * @param int $Cat4
227
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
228
     */
229
    public function setCat4($Cat4)
230
    {
231
        $this->Cat4 = $Cat4;
232
        return $this;
233
    }
234
235
    /**
236
     * @return \DateTime
237
     */
238
    public function getReservationArrivalDate()
239
    {
240
        if ($this->ReservationArrivalDate == null) {
241
            return null;
242
        } else {
243
            try {
244
                return new \DateTime($this->ReservationArrivalDate);
245
            } catch (\Exception $e) {
246
                return false;
247
            }
248
        }
249
    }
250
251
    /**
252
     * @param \DateTime $ReservationArrivalDate
253
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
254
     */
255
    public function setReservationArrivalDate(\DateTime $ReservationArrivalDate)
256
    {
257
        $this->ReservationArrivalDate = $ReservationArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ReservationArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ReservationArrivalDate.

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...
258
        return $this;
259
    }
260
261
    /**
262
     * @return \DateTime
263
     */
264
    public function getReservationDepartureDate()
265
    {
266
        if ($this->ReservationDepartureDate == null) {
267
            return null;
268
        } else {
269
            try {
270
                return new \DateTime($this->ReservationDepartureDate);
271
            } catch (\Exception $e) {
272
                return false;
273
            }
274
        }
275
    }
276
277
    /**
278
     * @param \DateTime $ReservationDepartureDate
279
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
280
     */
281
    public function setReservationDepartureDate(\DateTime $ReservationDepartureDate)
282
    {
283
        $this->ReservationDepartureDate = $ReservationDepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ReservationDepartureDat...format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ReservationDepartureDate.

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...
284
        return $this;
285
    }
286
287
    /**
288
     * @return int
289
     */
290
    public function getIntID_SuiteConfiguration()
291
    {
292
        return $this->intID_SuiteConfiguration;
293
    }
294
295
    /**
296
     * @param int $intID_SuiteConfiguration
297
     * @return \Gueststream\PMS\IQWare\API\ValidateRoomRefusals
298
     */
299
    public function setIntID_SuiteConfiguration($intID_SuiteConfiguration)
300
    {
301
        $this->intID_SuiteConfiguration = $intID_SuiteConfiguration;
302
        return $this;
303
    }
304
}
305