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/GetSingleStayValueForUnit.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
class GetSingleStayValueForUnit
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var string $strISOLanguage
15
     */
16
    protected $strISOLanguage = null;
17
18
    /**
19
     * @var int $intRoomType
20
     */
21
    protected $intRoomType = null;
22
23
    /**
24
     * @var int $intRateID
25
     */
26
    protected $intRateID = null;
27
28
    /**
29
     * @var string $strRateSpecial
30
     */
31
    protected $strRateSpecial = null;
32
33
    /**
34
     * @var int $intGuestCount
35
     */
36
    protected $intGuestCount = null;
37
38
    /**
39
     * @var string $strChildren
40
     */
41
    protected $strChildren = null;
42
43
    /**
44
     * @var \DateTime $dArrDate
45
     */
46
    protected $dArrDate = null;
47
48
    /**
49
     * @var \DateTime $dDepDate
50
     */
51
    protected $dDepDate = null;
52
53
    /**
54
     * @var string $strAttributes
55
     */
56
    protected $strAttributes = null;
57
58
    /**
59
     * @var string $strLocations
60
     */
61
    protected $strLocations = null;
62
63
    /**
64
     * @var dstElements $dstElements
65
     */
66
    protected $dstElements = null;
67
68
    /**
69
     * @var int $intRoomQty
70
     */
71
    protected $intRoomQty = null;
72
73
    /**
74
     * @var boolean $IsInsuranceAccepted
75
     */
76
    protected $IsInsuranceAccepted = null;
77
78
    /**
79
     * @var string $strAttributeGroupings
80
     */
81
    protected $strAttributeGroupings = null;
82
83
    /**
84
     * @var string $strLocationsGroupings
85
     */
86
    protected $strLocationsGroupings = null;
87
88
    /**
89
     * @var int $ID_Room
90
     */
91
    protected $ID_Room = null;
92
93
    /**
94
     * @var int $intBusinessSourceID
95
     */
96
    protected $intBusinessSourceID = null;
97
98
    /**
99
     * @param int $intGUID
100
     * @param string $strISOLanguage
101
     * @param int $intRoomType
102
     * @param int $intRateID
103
     * @param string $strRateSpecial
104
     * @param int $intGuestCount
105
     * @param string $strChildren
106
     * @param \DateTime $dArrDate
107
     * @param \DateTime $dDepDate
108
     * @param string $strAttributes
109
     * @param string $strLocations
110
     * @param dstElements $dstElements
111
     * @param int $intRoomQty
112
     * @param boolean $IsInsuranceAccepted
113
     * @param string $strAttributeGroupings
114
     * @param string $strLocationsGroupings
115
     * @param int $ID_Room
116
     * @param int $intBusinessSourceID
117
     */
118 View Code Duplication
    public function __construct($intGUID, $strISOLanguage, $intRoomType, $intRateID, $strRateSpecial, $intGuestCount, $strChildren, \DateTime $dArrDate, \DateTime $dDepDate, $strAttributes, $strLocations, $dstElements, $intRoomQty, $IsInsuranceAccepted, $strAttributeGroupings, $strLocationsGroupings, $ID_Room, $intBusinessSourceID)
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...
119
    {
120
        $this->intGUID = $intGUID;
121
        $this->strISOLanguage = $strISOLanguage;
122
        $this->intRoomType = $intRoomType;
123
        $this->intRateID = $intRateID;
124
        $this->strRateSpecial = $strRateSpecial;
125
        $this->intGuestCount = $intGuestCount;
126
        $this->strChildren = $strChildren;
127
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

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...
128
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

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...
129
        $this->strAttributes = $strAttributes;
130
        $this->strLocations = $strLocations;
131
        $this->dstElements = $dstElements;
132
        $this->intRoomQty = $intRoomQty;
133
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
134
        $this->strAttributeGroupings = $strAttributeGroupings;
135
        $this->strLocationsGroupings = $strLocationsGroupings;
136
        $this->ID_Room = $ID_Room;
137
        $this->intBusinessSourceID = $intBusinessSourceID;
138
    }
139
140
    /**
141
     * @return int
142
     */
143
    public function getIntGUID()
144
    {
145
        return $this->intGUID;
146
    }
147
148
    /**
149
     * @param int $intGUID
150
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
151
     */
152
    public function setIntGUID($intGUID)
153
    {
154
        $this->intGUID = $intGUID;
155
        return $this;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getStrISOLanguage()
162
    {
163
        return $this->strISOLanguage;
164
    }
165
166
    /**
167
     * @param string $strISOLanguage
168
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
169
     */
170
    public function setStrISOLanguage($strISOLanguage)
171
    {
172
        $this->strISOLanguage = $strISOLanguage;
173
        return $this;
174
    }
175
176
    /**
177
     * @return int
178
     */
179
    public function getIntRoomType()
180
    {
181
        return $this->intRoomType;
182
    }
183
184
    /**
185
     * @param int $intRoomType
186
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
187
     */
188
    public function setIntRoomType($intRoomType)
189
    {
190
        $this->intRoomType = $intRoomType;
191
        return $this;
192
    }
193
194
    /**
195
     * @return int
196
     */
197
    public function getIntRateID()
198
    {
199
        return $this->intRateID;
200
    }
201
202
    /**
203
     * @param int $intRateID
204
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
205
     */
206
    public function setIntRateID($intRateID)
207
    {
208
        $this->intRateID = $intRateID;
209
        return $this;
210
    }
211
212
    /**
213
     * @return string
214
     */
215
    public function getStrRateSpecial()
216
    {
217
        return $this->strRateSpecial;
218
    }
219
220
    /**
221
     * @param string $strRateSpecial
222
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
223
     */
224
    public function setStrRateSpecial($strRateSpecial)
225
    {
226
        $this->strRateSpecial = $strRateSpecial;
227
        return $this;
228
    }
229
230
    /**
231
     * @return int
232
     */
233
    public function getIntGuestCount()
234
    {
235
        return $this->intGuestCount;
236
    }
237
238
    /**
239
     * @param int $intGuestCount
240
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
241
     */
242
    public function setIntGuestCount($intGuestCount)
243
    {
244
        $this->intGuestCount = $intGuestCount;
245
        return $this;
246
    }
247
248
    /**
249
     * @return string
250
     */
251
    public function getStrChildren()
252
    {
253
        return $this->strChildren;
254
    }
255
256
    /**
257
     * @param string $strChildren
258
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
259
     */
260
    public function setStrChildren($strChildren)
261
    {
262
        $this->strChildren = $strChildren;
263
        return $this;
264
    }
265
266
    /**
267
     * @return \DateTime
268
     */
269
    public function getDArrDate()
270
    {
271
        if ($this->dArrDate == null) {
272
            return null;
273
        } else {
274
            try {
275
                return new \DateTime($this->dArrDate);
276
            } catch (\Exception $e) {
277
                return false;
278
            }
279
        }
280
    }
281
282
    /**
283
     * @param \DateTime $dArrDate
284
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
285
     */
286
    public function setDArrDate(\DateTime $dArrDate)
287
    {
288
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

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...
289
        return $this;
290
    }
291
292
    /**
293
     * @return \DateTime
294
     */
295
    public function getDDepDate()
296
    {
297
        if ($this->dDepDate == null) {
298
            return null;
299
        } else {
300
            try {
301
                return new \DateTime($this->dDepDate);
302
            } catch (\Exception $e) {
303
                return false;
304
            }
305
        }
306
    }
307
308
    /**
309
     * @param \DateTime $dDepDate
310
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
311
     */
312
    public function setDDepDate(\DateTime $dDepDate)
313
    {
314
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

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...
315
        return $this;
316
    }
317
318
    /**
319
     * @return string
320
     */
321
    public function getStrAttributes()
322
    {
323
        return $this->strAttributes;
324
    }
325
326
    /**
327
     * @param string $strAttributes
328
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
329
     */
330
    public function setStrAttributes($strAttributes)
331
    {
332
        $this->strAttributes = $strAttributes;
333
        return $this;
334
    }
335
336
    /**
337
     * @return string
338
     */
339
    public function getStrLocations()
340
    {
341
        return $this->strLocations;
342
    }
343
344
    /**
345
     * @param string $strLocations
346
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
347
     */
348
    public function setStrLocations($strLocations)
349
    {
350
        $this->strLocations = $strLocations;
351
        return $this;
352
    }
353
354
    /**
355
     * @return dstElements
356
     */
357
    public function getDstElements()
358
    {
359
        return $this->dstElements;
360
    }
361
362
    /**
363
     * @param dstElements $dstElements
364
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
365
     */
366
    public function setDstElements($dstElements)
367
    {
368
        $this->dstElements = $dstElements;
369
        return $this;
370
    }
371
372
    /**
373
     * @return int
374
     */
375
    public function getIntRoomQty()
376
    {
377
        return $this->intRoomQty;
378
    }
379
380
    /**
381
     * @param int $intRoomQty
382
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
383
     */
384
    public function setIntRoomQty($intRoomQty)
385
    {
386
        $this->intRoomQty = $intRoomQty;
387
        return $this;
388
    }
389
390
    /**
391
     * @return boolean
392
     */
393
    public function getIsInsuranceAccepted()
394
    {
395
        return $this->IsInsuranceAccepted;
396
    }
397
398
    /**
399
     * @param boolean $IsInsuranceAccepted
400
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
401
     */
402
    public function setIsInsuranceAccepted($IsInsuranceAccepted)
403
    {
404
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
405
        return $this;
406
    }
407
408
    /**
409
     * @return string
410
     */
411
    public function getStrAttributeGroupings()
412
    {
413
        return $this->strAttributeGroupings;
414
    }
415
416
    /**
417
     * @param string $strAttributeGroupings
418
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
419
     */
420
    public function setStrAttributeGroupings($strAttributeGroupings)
421
    {
422
        $this->strAttributeGroupings = $strAttributeGroupings;
423
        return $this;
424
    }
425
426
    /**
427
     * @return string
428
     */
429
    public function getStrLocationsGroupings()
430
    {
431
        return $this->strLocationsGroupings;
432
    }
433
434
    /**
435
     * @param string $strLocationsGroupings
436
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
437
     */
438
    public function setStrLocationsGroupings($strLocationsGroupings)
439
    {
440
        $this->strLocationsGroupings = $strLocationsGroupings;
441
        return $this;
442
    }
443
444
    /**
445
     * @return int
446
     */
447
    public function getID_Room()
448
    {
449
        return $this->ID_Room;
450
    }
451
452
    /**
453
     * @param int $ID_Room
454
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
455
     */
456
    public function setID_Room($ID_Room)
457
    {
458
        $this->ID_Room = $ID_Room;
459
        return $this;
460
    }
461
462
    /**
463
     * @return int
464
     */
465
    public function getIntBusinessSourceID()
466
    {
467
        return $this->intBusinessSourceID;
468
    }
469
470
    /**
471
     * @param int $intBusinessSourceID
472
     * @return \Gueststream\PMS\IQWare\API\GetSingleStayValueForUnit
473
     */
474
    public function setIntBusinessSourceID($intBusinessSourceID)
475
    {
476
        $this->intBusinessSourceID = $intBusinessSourceID;
477
        return $this;
478
    }
479
}
480