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/AvailRatesAndRooms.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 AvailRatesAndRooms
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 string $strLang
15
     */
16
    protected $strLang = null;
17
18
    /**
19
     * @var \DateTime $ArrivalDate
20
     */
21
    protected $ArrivalDate = null;
22
23
    /**
24
     * @var \DateTime $DepartureDate
25
     */
26
    protected $DepartureDate = null;
27
28
    /**
29
     * @var int $AccomodationType
30
     */
31
    protected $AccomodationType = null;
32
33
    /**
34
     * @var int $RoomQuantity
35
     */
36
    protected $RoomQuantity = null;
37
38
    /**
39
     * @var int $GuestCount
40
     */
41
    protected $GuestCount = null;
42
43
    /**
44
     * @var string $Attributes
45
     */
46
    protected $Attributes = null;
47
48
    /**
49
     * @var string $Localizations
50
     */
51
    protected $Localizations = null;
52
53
    /**
54
     * @var string $ListOfRoomTypes
55
     */
56
    protected $ListOfRoomTypes = null;
57
58
    /**
59
     * @var string $ListOfRateCodes
60
     */
61
    protected $ListOfRateCodes = null;
62
63
    /**
64
     * @var string $ChidrenBreakDown
65
     */
66
    protected $ChidrenBreakDown = null;
67
68
    /**
69
     * @var IAB2BMode $BackToBackMode
70
     */
71
    protected $BackToBackMode = null;
72
73
    /**
74
     * @param int $intGUID
75
     * @param string $strLang
76
     * @param \DateTime $ArrivalDate
77
     * @param \DateTime $DepartureDate
78
     * @param int $AccomodationType
79
     * @param int $RoomQuantity
80
     * @param int $GuestCount
81
     * @param string $Attributes
82
     * @param string $Localizations
83
     * @param string $ListOfRoomTypes
84
     * @param string $ListOfRateCodes
85
     * @param string $ChidrenBreakDown
86
     * @param IAB2BMode $BackToBackMode
87
     */
88
    public function __construct($intGUID, $strLang, \DateTime $ArrivalDate, \DateTime $DepartureDate, $AccomodationType, $RoomQuantity, $GuestCount, $Attributes, $Localizations, $ListOfRoomTypes, $ListOfRateCodes, $ChidrenBreakDown, $BackToBackMode)
89
    {
90
        $this->intGUID = $intGUID;
91
        $this->strLang = $strLang;
92
        $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...
93
        $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...
94
        $this->AccomodationType = $AccomodationType;
95
        $this->RoomQuantity = $RoomQuantity;
96
        $this->GuestCount = $GuestCount;
97
        $this->Attributes = $Attributes;
98
        $this->Localizations = $Localizations;
99
        $this->ListOfRoomTypes = $ListOfRoomTypes;
100
        $this->ListOfRateCodes = $ListOfRateCodes;
101
        $this->ChidrenBreakDown = $ChidrenBreakDown;
102
        $this->BackToBackMode = $BackToBackMode;
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\AvailRatesAndRooms
116
     */
117
    public function setIntGUID($intGUID)
118
    {
119
        $this->intGUID = $intGUID;
120
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getStrLang()
127
    {
128
        return $this->strLang;
129
    }
130
131
    /**
132
     * @param string $strLang
133
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
134
     */
135
    public function setStrLang($strLang)
136
    {
137
        $this->strLang = $strLang;
138
        return $this;
139
    }
140
141
    /**
142
     * @return \DateTime
143
     */
144
    public function getArrivalDate()
145
    {
146
        if ($this->ArrivalDate == null) {
147
            return null;
148
        } else {
149
            try {
150
                return new \DateTime($this->ArrivalDate);
151
            } catch (\Exception $e) {
152
                return false;
153
            }
154
        }
155
    }
156
157
    /**
158
     * @param \DateTime $ArrivalDate
159
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
160
     */
161
    public function setArrivalDate(\DateTime $ArrivalDate)
162
    {
163
        $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...
164
        return $this;
165
    }
166
167
    /**
168
     * @return \DateTime
169
     */
170
    public function getDepartureDate()
171
    {
172
        if ($this->DepartureDate == null) {
173
            return null;
174
        } else {
175
            try {
176
                return new \DateTime($this->DepartureDate);
177
            } catch (\Exception $e) {
178
                return false;
179
            }
180
        }
181
    }
182
183
    /**
184
     * @param \DateTime $DepartureDate
185
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
186
     */
187
    public function setDepartureDate(\DateTime $DepartureDate)
188
    {
189
        $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...
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\AvailRatesAndRooms
204
     */
205
    public function setAccomodationType($AccomodationType)
206
    {
207
        $this->AccomodationType = $AccomodationType;
208
        return $this;
209
    }
210
211
    /**
212
     * @return int
213
     */
214
    public function getRoomQuantity()
215
    {
216
        return $this->RoomQuantity;
217
    }
218
219
    /**
220
     * @param int $RoomQuantity
221
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
222
     */
223
    public function setRoomQuantity($RoomQuantity)
224
    {
225
        $this->RoomQuantity = $RoomQuantity;
226
        return $this;
227
    }
228
229
    /**
230
     * @return int
231
     */
232
    public function getGuestCount()
233
    {
234
        return $this->GuestCount;
235
    }
236
237
    /**
238
     * @param int $GuestCount
239
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
240
     */
241
    public function setGuestCount($GuestCount)
242
    {
243
        $this->GuestCount = $GuestCount;
244
        return $this;
245
    }
246
247
    /**
248
     * @return string
249
     */
250
    public function getAttributes()
251
    {
252
        return $this->Attributes;
253
    }
254
255
    /**
256
     * @param string $Attributes
257
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
258
     */
259
    public function setAttributes($Attributes)
260
    {
261
        $this->Attributes = $Attributes;
262
        return $this;
263
    }
264
265
    /**
266
     * @return string
267
     */
268
    public function getLocalizations()
269
    {
270
        return $this->Localizations;
271
    }
272
273
    /**
274
     * @param string $Localizations
275
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
276
     */
277
    public function setLocalizations($Localizations)
278
    {
279
        $this->Localizations = $Localizations;
280
        return $this;
281
    }
282
283
    /**
284
     * @return string
285
     */
286
    public function getListOfRoomTypes()
287
    {
288
        return $this->ListOfRoomTypes;
289
    }
290
291
    /**
292
     * @param string $ListOfRoomTypes
293
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
294
     */
295
    public function setListOfRoomTypes($ListOfRoomTypes)
296
    {
297
        $this->ListOfRoomTypes = $ListOfRoomTypes;
298
        return $this;
299
    }
300
301
    /**
302
     * @return string
303
     */
304
    public function getListOfRateCodes()
305
    {
306
        return $this->ListOfRateCodes;
307
    }
308
309
    /**
310
     * @param string $ListOfRateCodes
311
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
312
     */
313
    public function setListOfRateCodes($ListOfRateCodes)
314
    {
315
        $this->ListOfRateCodes = $ListOfRateCodes;
316
        return $this;
317
    }
318
319
    /**
320
     * @return string
321
     */
322
    public function getChidrenBreakDown()
323
    {
324
        return $this->ChidrenBreakDown;
325
    }
326
327
    /**
328
     * @param string $ChidrenBreakDown
329
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
330
     */
331
    public function setChidrenBreakDown($ChidrenBreakDown)
332
    {
333
        $this->ChidrenBreakDown = $ChidrenBreakDown;
334
        return $this;
335
    }
336
337
    /**
338
     * @return IAB2BMode
339
     */
340
    public function getBackToBackMode()
341
    {
342
        return $this->BackToBackMode;
343
    }
344
345
    /**
346
     * @param IAB2BMode $BackToBackMode
347
     * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms
348
     */
349
    public function setBackToBackMode($BackToBackMode)
350
    {
351
        $this->BackToBackMode = $BackToBackMode;
352
        return $this;
353
    }
354
}
355