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.

API/GetAvailRatesAndRoomNumbersB2BAnywhereNew.php (5 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 View Code Duplication
class GetAvailRatesAndRoomNumbersB2BAnywhereNew
0 ignored issues
show
This class 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...
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var \DateTime $AFromDate
15
     */
16
    protected $AFromDate = null;
17
18
    /**
19
     * @var \DateTime $AToDate
20
     */
21
    protected $AToDate = null;
22
23
    /**
24
     * @var int $AStayLength
25
     */
26
    protected $AStayLength = null;
27
28
    /**
29
     * @var int $AccomodationType
30
     */
31
    protected $AccomodationType = null;
32
33
    /**
34
     * @var int $GuestCount
35
     */
36
    protected $GuestCount = null;
37
38
    /**
39
     * @var string $strAttributes
40
     */
41
    protected $strAttributes = null;
42
43
    /**
44
     * @var string $strLocalizations
45
     */
46
    protected $strLocalizations = null;
47
48
    /**
49
     * @var string $ListOfRoomTypes
50
     */
51
    protected $ListOfRoomTypes = null;
52
53
    /**
54
     * @var string $ListOfRateCodes
55
     */
56
    protected $ListOfRateCodes = null;
57
58
    /**
59
     * @var string $ChidrenBreakDown
60
     */
61
    protected $ChidrenBreakDown = null;
62
63
    /**
64
     * @var int $ID_Building
65
     */
66
    protected $ID_Building = null;
67
68
    /**
69
     * @var int $ID_RateSpecial
70
     */
71
    protected $ID_RateSpecial = null;
72
73
    /**
74
     * @param int $intGUID
75
     * @param \DateTime $AFromDate
76
     * @param \DateTime $AToDate
77
     * @param int $AStayLength
78
     * @param int $AccomodationType
79
     * @param int $GuestCount
80
     * @param string $strAttributes
81
     * @param string $strLocalizations
82
     * @param string $ListOfRoomTypes
83
     * @param string $ListOfRateCodes
84
     * @param string $ChidrenBreakDown
85
     * @param int $ID_Building
86
     * @param int $ID_RateSpecial
87
     */
88
    public function __construct($intGUID, \DateTime $AFromDate, \DateTime $AToDate, $AStayLength, $AccomodationType, $GuestCount, $strAttributes, $strLocalizations, $ListOfRoomTypes, $ListOfRateCodes, $ChidrenBreakDown, $ID_Building, $ID_RateSpecial)
89
    {
90
        $this->intGUID = $intGUID;
91
        $this->AFromDate = $AFromDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $AFromDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $AFromDate.

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

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...
93
        $this->AStayLength = $AStayLength;
94
        $this->AccomodationType = $AccomodationType;
95
        $this->GuestCount = $GuestCount;
96
        $this->strAttributes = $strAttributes;
97
        $this->strLocalizations = $strLocalizations;
98
        $this->ListOfRoomTypes = $ListOfRoomTypes;
99
        $this->ListOfRateCodes = $ListOfRateCodes;
100
        $this->ChidrenBreakDown = $ChidrenBreakDown;
101
        $this->ID_Building = $ID_Building;
102
        $this->ID_RateSpecial = $ID_RateSpecial;
103
    }
104
105
    /**
106
     * @return int
107
     */
108
    public function getIntGUID()
109
    {
110
        return $this->intGUID;
111
    }
112
113
    /**
114
     * @param int $intGUID
115
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
116
     */
117
    public function setIntGUID($intGUID)
118
    {
119
        $this->intGUID = $intGUID;
120
        return $this;
121
    }
122
123
    /**
124
     * @return \DateTime
125
     */
126
    public function getAFromDate()
127
    {
128
        if ($this->AFromDate == null) {
129
            return null;
130
        } else {
131
            try {
132
                return new \DateTime($this->AFromDate);
133
            } catch (\Exception $e) {
134
                return false;
135
            }
136
        }
137
    }
138
139
    /**
140
     * @param \DateTime $AFromDate
141
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
142
     */
143
    public function setAFromDate(\DateTime $AFromDate)
144
    {
145
        $this->AFromDate = $AFromDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $AFromDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $AFromDate.

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...
146
        return $this;
147
    }
148
149
    /**
150
     * @return \DateTime
151
     */
152
    public function getAToDate()
153
    {
154
        if ($this->AToDate == null) {
155
            return null;
156
        } else {
157
            try {
158
                return new \DateTime($this->AToDate);
159
            } catch (\Exception $e) {
160
                return false;
161
            }
162
        }
163
    }
164
165
    /**
166
     * @param \DateTime $AToDate
167
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
168
     */
169
    public function setAToDate(\DateTime $AToDate)
170
    {
171
        $this->AToDate = $AToDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $AToDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $AToDate.

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...
172
        return $this;
173
    }
174
175
    /**
176
     * @return int
177
     */
178
    public function getAStayLength()
179
    {
180
        return $this->AStayLength;
181
    }
182
183
    /**
184
     * @param int $AStayLength
185
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
186
     */
187
    public function setAStayLength($AStayLength)
188
    {
189
        $this->AStayLength = $AStayLength;
190
        return $this;
191
    }
192
193
    /**
194
     * @return int
195
     */
196
    public function getAccomodationType()
197
    {
198
        return $this->AccomodationType;
199
    }
200
201
    /**
202
     * @param int $AccomodationType
203
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
204
     */
205
    public function setAccomodationType($AccomodationType)
206
    {
207
        $this->AccomodationType = $AccomodationType;
208
        return $this;
209
    }
210
211
    /**
212
     * @return int
213
     */
214
    public function getGuestCount()
215
    {
216
        return $this->GuestCount;
217
    }
218
219
    /**
220
     * @param int $GuestCount
221
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
222
     */
223
    public function setGuestCount($GuestCount)
224
    {
225
        $this->GuestCount = $GuestCount;
226
        return $this;
227
    }
228
229
    /**
230
     * @return string
231
     */
232
    public function getStrAttributes()
233
    {
234
        return $this->strAttributes;
235
    }
236
237
    /**
238
     * @param string $strAttributes
239
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
240
     */
241
    public function setStrAttributes($strAttributes)
242
    {
243
        $this->strAttributes = $strAttributes;
244
        return $this;
245
    }
246
247
    /**
248
     * @return string
249
     */
250
    public function getStrLocalizations()
251
    {
252
        return $this->strLocalizations;
253
    }
254
255
    /**
256
     * @param string $strLocalizations
257
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
258
     */
259
    public function setStrLocalizations($strLocalizations)
260
    {
261
        $this->strLocalizations = $strLocalizations;
262
        return $this;
263
    }
264
265
    /**
266
     * @return string
267
     */
268
    public function getListOfRoomTypes()
269
    {
270
        return $this->ListOfRoomTypes;
271
    }
272
273
    /**
274
     * @param string $ListOfRoomTypes
275
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
276
     */
277
    public function setListOfRoomTypes($ListOfRoomTypes)
278
    {
279
        $this->ListOfRoomTypes = $ListOfRoomTypes;
280
        return $this;
281
    }
282
283
    /**
284
     * @return string
285
     */
286
    public function getListOfRateCodes()
287
    {
288
        return $this->ListOfRateCodes;
289
    }
290
291
    /**
292
     * @param string $ListOfRateCodes
293
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
294
     */
295
    public function setListOfRateCodes($ListOfRateCodes)
296
    {
297
        $this->ListOfRateCodes = $ListOfRateCodes;
298
        return $this;
299
    }
300
301
    /**
302
     * @return string
303
     */
304
    public function getChidrenBreakDown()
305
    {
306
        return $this->ChidrenBreakDown;
307
    }
308
309
    /**
310
     * @param string $ChidrenBreakDown
311
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
312
     */
313
    public function setChidrenBreakDown($ChidrenBreakDown)
314
    {
315
        $this->ChidrenBreakDown = $ChidrenBreakDown;
316
        return $this;
317
    }
318
319
    /**
320
     * @return int
321
     */
322
    public function getID_Building()
323
    {
324
        return $this->ID_Building;
325
    }
326
327
    /**
328
     * @param int $ID_Building
329
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
330
     */
331
    public function setID_Building($ID_Building)
332
    {
333
        $this->ID_Building = $ID_Building;
334
        return $this;
335
    }
336
337
    /**
338
     * @return int
339
     */
340
    public function getID_RateSpecial()
341
    {
342
        return $this->ID_RateSpecial;
343
    }
344
345
    /**
346
     * @param int $ID_RateSpecial
347
     * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew
348
     */
349
    public function setID_RateSpecial($ID_RateSpecial)
350
    {
351
        $this->ID_RateSpecial = $ID_RateSpecial;
352
        return $this;
353
    }
354
}
355