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/WebRes_getRateStayValueWebRes.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 WebRes_getRateStayValueWebRes
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 $intRateCodeID
10
     */
11
    protected $intRateCodeID = null;
12
13
    /**
14
     * @var int $intGUID
15
     */
16
    protected $intGUID = null;
17
18
    /**
19
     * @var \DateTime $dtArrivalDate
20
     */
21
    protected $dtArrivalDate = null;
22
23
    /**
24
     * @var \DateTime $dtDepartureDate
25
     */
26
    protected $dtDepartureDate = null;
27
28
    /**
29
     * @var int $intGuestCount
30
     */
31
    protected $intGuestCount = null;
32
33
    /**
34
     * @var int $intRoomTypeID
35
     */
36
    protected $intRoomTypeID = null;
37
38
    /**
39
     * @var string $strISOLanguage
40
     */
41
    protected $strISOLanguage = null;
42
43
    /**
44
     * @var string $strChildren
45
     */
46
    protected $strChildren = null;
47
48
    /**
49
     * @var string $strAttributes
50
     */
51
    protected $strAttributes = null;
52
53
    /**
54
     * @var string $strLocations
55
     */
56
    protected $strLocations = null;
57
58
    /**
59
     * @var boolean $bGenerateActivities
60
     */
61
    protected $bGenerateActivities = null;
62
63
    /**
64
     * @var string $strActivityStructure
65
     */
66
    protected $strActivityStructure = null;
67
68
    /**
69
     * @var dstElements $dstElements
70
     */
71
    protected $dstElements = null;
72
73
    /**
74
     * @var int $intRoomQty
75
     */
76
    protected $intRoomQty = null;
77
78
    /**
79
     * @param int $intRateCodeID
80
     * @param int $intGUID
81
     * @param \DateTime $dtArrivalDate
82
     * @param \DateTime $dtDepartureDate
83
     * @param int $intGuestCount
84
     * @param int $intRoomTypeID
85
     * @param string $strISOLanguage
86
     * @param string $strChildren
87
     * @param string $strAttributes
88
     * @param string $strLocations
89
     * @param boolean $bGenerateActivities
90
     * @param string $strActivityStructure
91
     * @param dstElements $dstElements
92
     * @param int $intRoomQty
93
     */
94
    public function __construct($intRateCodeID, $intGUID, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $intRoomTypeID, $strISOLanguage, $strChildren, $strAttributes, $strLocations, $bGenerateActivities, $strActivityStructure, $dstElements, $intRoomQty)
95
    {
96
        $this->intRateCodeID = $intRateCodeID;
97
        $this->intGUID = $intGUID;
98
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtArrivalDate.

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

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...
100
        $this->intGuestCount = $intGuestCount;
101
        $this->intRoomTypeID = $intRoomTypeID;
102
        $this->strISOLanguage = $strISOLanguage;
103
        $this->strChildren = $strChildren;
104
        $this->strAttributes = $strAttributes;
105
        $this->strLocations = $strLocations;
106
        $this->bGenerateActivities = $bGenerateActivities;
107
        $this->strActivityStructure = $strActivityStructure;
108
        $this->dstElements = $dstElements;
109
        $this->intRoomQty = $intRoomQty;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getIntRateCodeID()
116
    {
117
        return $this->intRateCodeID;
118
    }
119
120
    /**
121
     * @param int $intRateCodeID
122
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
123
     */
124
    public function setIntRateCodeID($intRateCodeID)
125
    {
126
        $this->intRateCodeID = $intRateCodeID;
127
        return $this;
128
    }
129
130
    /**
131
     * @return int
132
     */
133
    public function getIntGUID()
134
    {
135
        return $this->intGUID;
136
    }
137
138
    /**
139
     * @param int $intGUID
140
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
141
     */
142
    public function setIntGUID($intGUID)
143
    {
144
        $this->intGUID = $intGUID;
145
        return $this;
146
    }
147
148
    /**
149
     * @return \DateTime
150
     */
151
    public function getDtArrivalDate()
152
    {
153
        if ($this->dtArrivalDate == null) {
154
            return null;
155
        } else {
156
            try {
157
                return new \DateTime($this->dtArrivalDate);
158
            } catch (\Exception $e) {
159
                return false;
160
            }
161
        }
162
    }
163
164
    /**
165
     * @param \DateTime $dtArrivalDate
166
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
167
     */
168
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
169
    {
170
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtArrivalDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtArrivalDate.

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...
171
        return $this;
172
    }
173
174
    /**
175
     * @return \DateTime
176
     */
177
    public function getDtDepartureDate()
178
    {
179
        if ($this->dtDepartureDate == null) {
180
            return null;
181
        } else {
182
            try {
183
                return new \DateTime($this->dtDepartureDate);
184
            } catch (\Exception $e) {
185
                return false;
186
            }
187
        }
188
    }
189
190
    /**
191
     * @param \DateTime $dtDepartureDate
192
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
193
     */
194
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
195
    {
196
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $dtDepartureDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $dtDepartureDate.

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...
197
        return $this;
198
    }
199
200
    /**
201
     * @return int
202
     */
203
    public function getIntGuestCount()
204
    {
205
        return $this->intGuestCount;
206
    }
207
208
    /**
209
     * @param int $intGuestCount
210
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
211
     */
212
    public function setIntGuestCount($intGuestCount)
213
    {
214
        $this->intGuestCount = $intGuestCount;
215
        return $this;
216
    }
217
218
    /**
219
     * @return int
220
     */
221
    public function getIntRoomTypeID()
222
    {
223
        return $this->intRoomTypeID;
224
    }
225
226
    /**
227
     * @param int $intRoomTypeID
228
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
229
     */
230
    public function setIntRoomTypeID($intRoomTypeID)
231
    {
232
        $this->intRoomTypeID = $intRoomTypeID;
233
        return $this;
234
    }
235
236
    /**
237
     * @return string
238
     */
239
    public function getStrISOLanguage()
240
    {
241
        return $this->strISOLanguage;
242
    }
243
244
    /**
245
     * @param string $strISOLanguage
246
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
247
     */
248
    public function setStrISOLanguage($strISOLanguage)
249
    {
250
        $this->strISOLanguage = $strISOLanguage;
251
        return $this;
252
    }
253
254
    /**
255
     * @return string
256
     */
257
    public function getStrChildren()
258
    {
259
        return $this->strChildren;
260
    }
261
262
    /**
263
     * @param string $strChildren
264
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
265
     */
266
    public function setStrChildren($strChildren)
267
    {
268
        $this->strChildren = $strChildren;
269
        return $this;
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function getStrAttributes()
276
    {
277
        return $this->strAttributes;
278
    }
279
280
    /**
281
     * @param string $strAttributes
282
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
283
     */
284
    public function setStrAttributes($strAttributes)
285
    {
286
        $this->strAttributes = $strAttributes;
287
        return $this;
288
    }
289
290
    /**
291
     * @return string
292
     */
293
    public function getStrLocations()
294
    {
295
        return $this->strLocations;
296
    }
297
298
    /**
299
     * @param string $strLocations
300
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
301
     */
302
    public function setStrLocations($strLocations)
303
    {
304
        $this->strLocations = $strLocations;
305
        return $this;
306
    }
307
308
    /**
309
     * @return boolean
310
     */
311
    public function getBGenerateActivities()
312
    {
313
        return $this->bGenerateActivities;
314
    }
315
316
    /**
317
     * @param boolean $bGenerateActivities
318
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
319
     */
320
    public function setBGenerateActivities($bGenerateActivities)
321
    {
322
        $this->bGenerateActivities = $bGenerateActivities;
323
        return $this;
324
    }
325
326
    /**
327
     * @return string
328
     */
329
    public function getStrActivityStructure()
330
    {
331
        return $this->strActivityStructure;
332
    }
333
334
    /**
335
     * @param string $strActivityStructure
336
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
337
     */
338
    public function setStrActivityStructure($strActivityStructure)
339
    {
340
        $this->strActivityStructure = $strActivityStructure;
341
        return $this;
342
    }
343
344
    /**
345
     * @return dstElements
346
     */
347
    public function getDstElements()
348
    {
349
        return $this->dstElements;
350
    }
351
352
    /**
353
     * @param dstElements $dstElements
354
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
355
     */
356
    public function setDstElements($dstElements)
357
    {
358
        $this->dstElements = $dstElements;
359
        return $this;
360
    }
361
362
    /**
363
     * @return int
364
     */
365
    public function getIntRoomQty()
366
    {
367
        return $this->intRoomQty;
368
    }
369
370
    /**
371
     * @param int $intRoomQty
372
     * @return \Gueststream\PMS\IQWare\API\WebRes_getRateStayValueWebRes
373
     */
374
    public function setIntRoomQty($intRoomQty)
375
    {
376
        $this->intRoomQty = $intRoomQty;
377
        return $this;
378
    }
379
}
380