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_GetResaStayValueWebRes.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 WebRes_GetResaStayValueWebRes
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 int $intGuestCount
30
     */
31
    protected $intGuestCount = null;
32
33
    /**
34
     * @var string $strChildren
35
     */
36
    protected $strChildren = null;
37
38
    /**
39
     * @var \DateTime $dArrDate
40
     */
41
    protected $dArrDate = null;
42
43
    /**
44
     * @var \DateTime $dDepDate
45
     */
46
    protected $dDepDate = 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 dstElements $dstElements
60
     */
61
    protected $dstElements = null;
62
63
    /**
64
     * @var string $strSpecialOffers
65
     */
66
    protected $strSpecialOffers = null;
67
68
    /**
69
     * @var int $intRoomQty
70
     */
71
    protected $intRoomQty = null;
72
73
    /**
74
     * @var int $ID_ManualRateReason
75
     */
76
    protected $ID_ManualRateReason = null;
77
78
    /**
79
     * @var int $ID_Grp
80
     */
81
    protected $ID_Grp = null;
82
83
    /**
84
     * @var int $ID_PrivateGrid
85
     */
86
    protected $ID_PrivateGrid = null;
87
88
    /**
89
     * @var TManualTypeBooking $TManualTypeBooking
90
     */
91
    protected $TManualTypeBooking = null;
92
93
    /**
94
     * @var TSBDSvcChargeStayStatus $TvlInsuranceStatus
95
     */
96
    protected $TvlInsuranceStatus = null;
97
98
    /**
99
     * @param int $intGUID
100
     * @param string $strISOLanguage
101
     * @param int $intRoomType
102
     * @param int $intRateID
103
     * @param int $intGuestCount
104
     * @param string $strChildren
105
     * @param \DateTime $dArrDate
106
     * @param \DateTime $dDepDate
107
     * @param string $strAttributes
108
     * @param string $strLocations
109
     * @param dstElements $dstElements
110
     * @param string $strSpecialOffers
111
     * @param int $intRoomQty
112
     * @param int $ID_ManualRateReason
113
     * @param int $ID_Grp
114
     * @param int $ID_PrivateGrid
115
     * @param TManualTypeBooking $TManualTypeBooking
116
     * @param TSBDSvcChargeStayStatus $TvlInsuranceStatus
117
     */
118 View Code Duplication
    public function __construct($intGUID, $strISOLanguage, $intRoomType, $intRateID, $intGuestCount, $strChildren, \DateTime $dArrDate, \DateTime $dDepDate, $strAttributes, $strLocations, $dstElements, $strSpecialOffers, $intRoomQty, $ID_ManualRateReason, $ID_Grp, $ID_PrivateGrid, $TManualTypeBooking, $TvlInsuranceStatus)
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->intGuestCount = $intGuestCount;
125
        $this->strChildren = $strChildren;
126
        $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...
127
        $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...
128
        $this->strAttributes = $strAttributes;
129
        $this->strLocations = $strLocations;
130
        $this->dstElements = $dstElements;
131
        $this->strSpecialOffers = $strSpecialOffers;
132
        $this->intRoomQty = $intRoomQty;
133
        $this->ID_ManualRateReason = $ID_ManualRateReason;
134
        $this->ID_Grp = $ID_Grp;
135
        $this->ID_PrivateGrid = $ID_PrivateGrid;
136
        $this->TManualTypeBooking = $TManualTypeBooking;
137
        $this->TvlInsuranceStatus = $TvlInsuranceStatus;
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\WebRes_GetResaStayValueWebRes
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\WebRes_GetResaStayValueWebRes
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\WebRes_GetResaStayValueWebRes
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\WebRes_GetResaStayValueWebRes
205
     */
206
    public function setIntRateID($intRateID)
207
    {
208
        $this->intRateID = $intRateID;
209
        return $this;
210
    }
211
212
    /**
213
     * @return int
214
     */
215
    public function getIntGuestCount()
216
    {
217
        return $this->intGuestCount;
218
    }
219
220
    /**
221
     * @param int $intGuestCount
222
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
223
     */
224
    public function setIntGuestCount($intGuestCount)
225
    {
226
        $this->intGuestCount = $intGuestCount;
227
        return $this;
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getStrChildren()
234
    {
235
        return $this->strChildren;
236
    }
237
238
    /**
239
     * @param string $strChildren
240
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
241
     */
242
    public function setStrChildren($strChildren)
243
    {
244
        $this->strChildren = $strChildren;
245
        return $this;
246
    }
247
248
    /**
249
     * @return \DateTime
250
     */
251
    public function getDArrDate()
252
    {
253
        if ($this->dArrDate == null) {
254
            return null;
255
        } else {
256
            try {
257
                return new \DateTime($this->dArrDate);
258
            } catch (\Exception $e) {
259
                return false;
260
            }
261
        }
262
    }
263
264
    /**
265
     * @param \DateTime $dArrDate
266
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
267
     */
268
    public function setDArrDate(\DateTime $dArrDate)
269
    {
270
        $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...
271
        return $this;
272
    }
273
274
    /**
275
     * @return \DateTime
276
     */
277
    public function getDDepDate()
278
    {
279
        if ($this->dDepDate == null) {
280
            return null;
281
        } else {
282
            try {
283
                return new \DateTime($this->dDepDate);
284
            } catch (\Exception $e) {
285
                return false;
286
            }
287
        }
288
    }
289
290
    /**
291
     * @param \DateTime $dDepDate
292
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
293
     */
294
    public function setDDepDate(\DateTime $dDepDate)
295
    {
296
        $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...
297
        return $this;
298
    }
299
300
    /**
301
     * @return string
302
     */
303
    public function getStrAttributes()
304
    {
305
        return $this->strAttributes;
306
    }
307
308
    /**
309
     * @param string $strAttributes
310
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
311
     */
312
    public function setStrAttributes($strAttributes)
313
    {
314
        $this->strAttributes = $strAttributes;
315
        return $this;
316
    }
317
318
    /**
319
     * @return string
320
     */
321
    public function getStrLocations()
322
    {
323
        return $this->strLocations;
324
    }
325
326
    /**
327
     * @param string $strLocations
328
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
329
     */
330
    public function setStrLocations($strLocations)
331
    {
332
        $this->strLocations = $strLocations;
333
        return $this;
334
    }
335
336
    /**
337
     * @return dstElements
338
     */
339
    public function getDstElements()
340
    {
341
        return $this->dstElements;
342
    }
343
344
    /**
345
     * @param dstElements $dstElements
346
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
347
     */
348
    public function setDstElements($dstElements)
349
    {
350
        $this->dstElements = $dstElements;
351
        return $this;
352
    }
353
354
    /**
355
     * @return string
356
     */
357
    public function getStrSpecialOffers()
358
    {
359
        return $this->strSpecialOffers;
360
    }
361
362
    /**
363
     * @param string $strSpecialOffers
364
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
365
     */
366
    public function setStrSpecialOffers($strSpecialOffers)
367
    {
368
        $this->strSpecialOffers = $strSpecialOffers;
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\WebRes_GetResaStayValueWebRes
383
     */
384
    public function setIntRoomQty($intRoomQty)
385
    {
386
        $this->intRoomQty = $intRoomQty;
387
        return $this;
388
    }
389
390
    /**
391
     * @return int
392
     */
393
    public function getID_ManualRateReason()
394
    {
395
        return $this->ID_ManualRateReason;
396
    }
397
398
    /**
399
     * @param int $ID_ManualRateReason
400
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
401
     */
402
    public function setID_ManualRateReason($ID_ManualRateReason)
403
    {
404
        $this->ID_ManualRateReason = $ID_ManualRateReason;
405
        return $this;
406
    }
407
408
    /**
409
     * @return int
410
     */
411
    public function getID_Grp()
412
    {
413
        return $this->ID_Grp;
414
    }
415
416
    /**
417
     * @param int $ID_Grp
418
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
419
     */
420
    public function setID_Grp($ID_Grp)
421
    {
422
        $this->ID_Grp = $ID_Grp;
423
        return $this;
424
    }
425
426
    /**
427
     * @return int
428
     */
429
    public function getID_PrivateGrid()
430
    {
431
        return $this->ID_PrivateGrid;
432
    }
433
434
    /**
435
     * @param int $ID_PrivateGrid
436
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
437
     */
438
    public function setID_PrivateGrid($ID_PrivateGrid)
439
    {
440
        $this->ID_PrivateGrid = $ID_PrivateGrid;
441
        return $this;
442
    }
443
444
    /**
445
     * @return TManualTypeBooking
446
     */
447
    public function getTManualTypeBooking()
448
    {
449
        return $this->TManualTypeBooking;
450
    }
451
452
    /**
453
     * @param TManualTypeBooking $TManualTypeBooking
454
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
455
     */
456
    public function setTManualTypeBooking($TManualTypeBooking)
457
    {
458
        $this->TManualTypeBooking = $TManualTypeBooking;
459
        return $this;
460
    }
461
462
    /**
463
     * @return TSBDSvcChargeStayStatus
464
     */
465
    public function getTvlInsuranceStatus()
466
    {
467
        return $this->TvlInsuranceStatus;
468
    }
469
470
    /**
471
     * @param TSBDSvcChargeStayStatus $TvlInsuranceStatus
472
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetResaStayValueWebRes
473
     */
474
    public function setTvlInsuranceStatus($TvlInsuranceStatus)
475
    {
476
        $this->TvlInsuranceStatus = $TvlInsuranceStatus;
477
        return $this;
478
    }
479
}
480