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/GetRatesAndRoomsPrices.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 GetRatesAndRoomsPrices
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 ArrayOfInt $iGuids
10
     */
11
    protected $iGuids = null;
12
13
    /**
14
     * @var \DateTime $dtArrivalDate
15
     */
16
    protected $dtArrivalDate = null;
17
18
    /**
19
     * @var \DateTime $dtDepartureDate
20
     */
21
    protected $dtDepartureDate = null;
22
23
    /**
24
     * @var int $intGuestCount
25
     */
26
    protected $intGuestCount = null;
27
28
    /**
29
     * @var string $strChildrens
30
     */
31
    protected $strChildrens = null;
32
33
    /**
34
     * @var string $strISOLanguageCode
35
     */
36
    protected $strISOLanguageCode = null;
37
38
    /**
39
     * @var int $intID_AccommodationType
40
     */
41
    protected $intID_AccommodationType = null;
42
43
    /**
44
     * @var int $intRoomQty
45
     */
46
    protected $intRoomQty = null;
47
48
    /**
49
     * @var string $strListOfPromoRates
50
     */
51
    protected $strListOfPromoRates = null;
52
53
    /**
54
     * @var boolean $IsPromoByRate
55
     */
56
    protected $IsPromoByRate = null;
57
58
    /**
59
     * @var int $intRateSpecial
60
     */
61
    protected $intRateSpecial = null;
62
63
    /**
64
     * @var string $strAttributes
65
     */
66
    protected $strAttributes = null;
67
68
    /**
69
     * @var string $strLocations
70
     */
71
    protected $strLocations = null;
72
73
    /**
74
     * @var string $strRateCodes
75
     */
76
    protected $strRateCodes = null;
77
78
    /**
79
     * @var string $strRoomTypes
80
     */
81
    protected $strRoomTypes = null;
82
83
    /**
84
     * @var string $strBuildings
85
     */
86
    protected $strBuildings = null;
87
88
    /**
89
     * @var string $strBeddingIDs
90
     */
91
    protected $strBeddingIDs = null;
92
93
    /**
94
     * @var string $strAttributeGroupings
95
     */
96
    protected $strAttributeGroupings = null;
97
98
    /**
99
     * @var string $strLocationsGroupings
100
     */
101
    protected $strLocationsGroupings = null;
102
103
    /**
104
     * @param ArrayOfInt $iGuids
105
     * @param \DateTime $dtArrivalDate
106
     * @param \DateTime $dtDepartureDate
107
     * @param int $intGuestCount
108
     * @param string $strChildrens
109
     * @param string $strISOLanguageCode
110
     * @param int $intID_AccommodationType
111
     * @param int $intRoomQty
112
     * @param string $strListOfPromoRates
113
     * @param boolean $IsPromoByRate
114
     * @param int $intRateSpecial
115
     * @param string $strAttributes
116
     * @param string $strLocations
117
     * @param string $strRateCodes
118
     * @param string $strRoomTypes
119
     * @param string $strBuildings
120
     * @param string $strBeddingIDs
121
     * @param string $strAttributeGroupings
122
     * @param string $strLocationsGroupings
123
     */
124
    public function __construct($iGuids, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildrens, $strISOLanguageCode, $intID_AccommodationType, $intRoomQty, $strListOfPromoRates, $IsPromoByRate, $intRateSpecial, $strAttributes, $strLocations, $strRateCodes, $strRoomTypes, $strBuildings, $strBeddingIDs, $strAttributeGroupings, $strLocationsGroupings)
125
    {
126
        $this->iGuids = $iGuids;
127
        $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...
128
        $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...
129
        $this->intGuestCount = $intGuestCount;
130
        $this->strChildrens = $strChildrens;
131
        $this->strISOLanguageCode = $strISOLanguageCode;
132
        $this->intID_AccommodationType = $intID_AccommodationType;
133
        $this->intRoomQty = $intRoomQty;
134
        $this->strListOfPromoRates = $strListOfPromoRates;
135
        $this->IsPromoByRate = $IsPromoByRate;
136
        $this->intRateSpecial = $intRateSpecial;
137
        $this->strAttributes = $strAttributes;
138
        $this->strLocations = $strLocations;
139
        $this->strRateCodes = $strRateCodes;
140
        $this->strRoomTypes = $strRoomTypes;
141
        $this->strBuildings = $strBuildings;
142
        $this->strBeddingIDs = $strBeddingIDs;
143
        $this->strAttributeGroupings = $strAttributeGroupings;
144
        $this->strLocationsGroupings = $strLocationsGroupings;
145
    }
146
147
    /**
148
     * @return ArrayOfInt
149
     */
150
    public function getIGuids()
151
    {
152
        return $this->iGuids;
153
    }
154
155
    /**
156
     * @param ArrayOfInt $iGuids
157
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
158
     */
159
    public function setIGuids($iGuids)
160
    {
161
        $this->iGuids = $iGuids;
162
        return $this;
163
    }
164
165
    /**
166
     * @return \DateTime
167
     */
168
    public function getDtArrivalDate()
169
    {
170
        if ($this->dtArrivalDate == null) {
171
            return null;
172
        } else {
173
            try {
174
                return new \DateTime($this->dtArrivalDate);
175
            } catch (\Exception $e) {
176
                return false;
177
            }
178
        }
179
    }
180
181
    /**
182
     * @param \DateTime $dtArrivalDate
183
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
184
     */
185
    public function setDtArrivalDate(\DateTime $dtArrivalDate)
186
    {
187
        $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...
188
        return $this;
189
    }
190
191
    /**
192
     * @return \DateTime
193
     */
194
    public function getDtDepartureDate()
195
    {
196
        if ($this->dtDepartureDate == null) {
197
            return null;
198
        } else {
199
            try {
200
                return new \DateTime($this->dtDepartureDate);
201
            } catch (\Exception $e) {
202
                return false;
203
            }
204
        }
205
    }
206
207
    /**
208
     * @param \DateTime $dtDepartureDate
209
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
210
     */
211
    public function setDtDepartureDate(\DateTime $dtDepartureDate)
212
    {
213
        $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...
214
        return $this;
215
    }
216
217
    /**
218
     * @return int
219
     */
220
    public function getIntGuestCount()
221
    {
222
        return $this->intGuestCount;
223
    }
224
225
    /**
226
     * @param int $intGuestCount
227
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
228
     */
229
    public function setIntGuestCount($intGuestCount)
230
    {
231
        $this->intGuestCount = $intGuestCount;
232
        return $this;
233
    }
234
235
    /**
236
     * @return string
237
     */
238
    public function getStrChildrens()
239
    {
240
        return $this->strChildrens;
241
    }
242
243
    /**
244
     * @param string $strChildrens
245
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
246
     */
247
    public function setStrChildrens($strChildrens)
248
    {
249
        $this->strChildrens = $strChildrens;
250
        return $this;
251
    }
252
253
    /**
254
     * @return string
255
     */
256
    public function getStrISOLanguageCode()
257
    {
258
        return $this->strISOLanguageCode;
259
    }
260
261
    /**
262
     * @param string $strISOLanguageCode
263
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
264
     */
265
    public function setStrISOLanguageCode($strISOLanguageCode)
266
    {
267
        $this->strISOLanguageCode = $strISOLanguageCode;
268
        return $this;
269
    }
270
271
    /**
272
     * @return int
273
     */
274
    public function getIntID_AccommodationType()
275
    {
276
        return $this->intID_AccommodationType;
277
    }
278
279
    /**
280
     * @param int $intID_AccommodationType
281
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
282
     */
283
    public function setIntID_AccommodationType($intID_AccommodationType)
284
    {
285
        $this->intID_AccommodationType = $intID_AccommodationType;
286
        return $this;
287
    }
288
289
    /**
290
     * @return int
291
     */
292
    public function getIntRoomQty()
293
    {
294
        return $this->intRoomQty;
295
    }
296
297
    /**
298
     * @param int $intRoomQty
299
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
300
     */
301
    public function setIntRoomQty($intRoomQty)
302
    {
303
        $this->intRoomQty = $intRoomQty;
304
        return $this;
305
    }
306
307
    /**
308
     * @return string
309
     */
310
    public function getStrListOfPromoRates()
311
    {
312
        return $this->strListOfPromoRates;
313
    }
314
315
    /**
316
     * @param string $strListOfPromoRates
317
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
318
     */
319
    public function setStrListOfPromoRates($strListOfPromoRates)
320
    {
321
        $this->strListOfPromoRates = $strListOfPromoRates;
322
        return $this;
323
    }
324
325
    /**
326
     * @return boolean
327
     */
328
    public function getIsPromoByRate()
329
    {
330
        return $this->IsPromoByRate;
331
    }
332
333
    /**
334
     * @param boolean $IsPromoByRate
335
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
336
     */
337
    public function setIsPromoByRate($IsPromoByRate)
338
    {
339
        $this->IsPromoByRate = $IsPromoByRate;
340
        return $this;
341
    }
342
343
    /**
344
     * @return int
345
     */
346
    public function getIntRateSpecial()
347
    {
348
        return $this->intRateSpecial;
349
    }
350
351
    /**
352
     * @param int $intRateSpecial
353
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
354
     */
355
    public function setIntRateSpecial($intRateSpecial)
356
    {
357
        $this->intRateSpecial = $intRateSpecial;
358
        return $this;
359
    }
360
361
    /**
362
     * @return string
363
     */
364
    public function getStrAttributes()
365
    {
366
        return $this->strAttributes;
367
    }
368
369
    /**
370
     * @param string $strAttributes
371
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
372
     */
373
    public function setStrAttributes($strAttributes)
374
    {
375
        $this->strAttributes = $strAttributes;
376
        return $this;
377
    }
378
379
    /**
380
     * @return string
381
     */
382
    public function getStrLocations()
383
    {
384
        return $this->strLocations;
385
    }
386
387
    /**
388
     * @param string $strLocations
389
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
390
     */
391
    public function setStrLocations($strLocations)
392
    {
393
        $this->strLocations = $strLocations;
394
        return $this;
395
    }
396
397
    /**
398
     * @return string
399
     */
400
    public function getStrRateCodes()
401
    {
402
        return $this->strRateCodes;
403
    }
404
405
    /**
406
     * @param string $strRateCodes
407
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
408
     */
409
    public function setStrRateCodes($strRateCodes)
410
    {
411
        $this->strRateCodes = $strRateCodes;
412
        return $this;
413
    }
414
415
    /**
416
     * @return string
417
     */
418
    public function getStrRoomTypes()
419
    {
420
        return $this->strRoomTypes;
421
    }
422
423
    /**
424
     * @param string $strRoomTypes
425
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
426
     */
427
    public function setStrRoomTypes($strRoomTypes)
428
    {
429
        $this->strRoomTypes = $strRoomTypes;
430
        return $this;
431
    }
432
433
    /**
434
     * @return string
435
     */
436
    public function getStrBuildings()
437
    {
438
        return $this->strBuildings;
439
    }
440
441
    /**
442
     * @param string $strBuildings
443
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
444
     */
445
    public function setStrBuildings($strBuildings)
446
    {
447
        $this->strBuildings = $strBuildings;
448
        return $this;
449
    }
450
451
    /**
452
     * @return string
453
     */
454
    public function getStrBeddingIDs()
455
    {
456
        return $this->strBeddingIDs;
457
    }
458
459
    /**
460
     * @param string $strBeddingIDs
461
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
462
     */
463
    public function setStrBeddingIDs($strBeddingIDs)
464
    {
465
        $this->strBeddingIDs = $strBeddingIDs;
466
        return $this;
467
    }
468
469
    /**
470
     * @return string
471
     */
472
    public function getStrAttributeGroupings()
473
    {
474
        return $this->strAttributeGroupings;
475
    }
476
477
    /**
478
     * @param string $strAttributeGroupings
479
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
480
     */
481
    public function setStrAttributeGroupings($strAttributeGroupings)
482
    {
483
        $this->strAttributeGroupings = $strAttributeGroupings;
484
        return $this;
485
    }
486
487
    /**
488
     * @return string
489
     */
490
    public function getStrLocationsGroupings()
491
    {
492
        return $this->strLocationsGroupings;
493
    }
494
495
    /**
496
     * @param string $strLocationsGroupings
497
     * @return \Gueststream\PMS\IQWare\API\GetRatesAndRoomsPrices
498
     */
499
    public function setStrLocationsGroupings($strLocationsGroupings)
500
    {
501
        $this->strLocationsGroupings = $strLocationsGroupings;
502
        return $this;
503
    }
504
}
505