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/Loyalty.php (4 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 Loyalty
6
{
7
8
    /**
9
     * @var int $ID_Member
10
     */
11
    protected $ID_Member = null;
12
13
    /**
14
     * @var string $GHClub_Name
15
     */
16
    protected $GHClub_Name = null;
17
18
    /**
19
     * @var string $GHClub_ShortName
20
     */
21
    protected $GHClub_ShortName = null;
22
23
    /**
24
     * @var boolean $GHClubLevel_IsActive
25
     */
26
    protected $GHClubLevel_IsActive = null;
27
28
    /**
29
     * @var string $GHClubLevel_Name
30
     */
31
    protected $GHClubLevel_Name = null;
32
33
    /**
34
     * @var string $GHClubLevel_Shortname
35
     */
36
    protected $GHClubLevel_Shortname = null;
37
38
    /**
39
     * @var boolean $GHClubLevel_IsVIP
40
     */
41
    protected $GHClubLevel_IsVIP = null;
42
43
    /**
44
     * @var int $ID_SpecialRequestGroup
45
     */
46
    protected $ID_SpecialRequestGroup = null;
47
48
    /**
49
     * @var int $ID_GHClub
50
     */
51
    protected $ID_GHClub = null;
52
53
    /**
54
     * @var int $GHClubLevel_ViewOrder
55
     */
56
    protected $GHClubLevel_ViewOrder = null;
57
58
    /**
59
     * @var int $MinPoint
60
     */
61
    protected $MinPoint = null;
62
63
    /**
64
     * @var int $ID_Reference
65
     */
66
    protected $ID_Reference = null;
67
68
    /**
69
     * @var int $GHClubLevel_ID_VIP
70
     */
71
    protected $GHClubLevel_ID_VIP = null;
72
73
    /**
74
     * @var int $ID_MemberClub
75
     */
76
    protected $ID_MemberClub = null;
77
78
    /**
79
     * @var boolean $MemberClub_IsActive
80
     */
81
    protected $MemberClub_IsActive = null;
82
83
    /**
84
     * @var int $ID_GHClubLevel
85
     */
86
    protected $ID_GHClubLevel = null;
87
88
    /**
89
     * @var string $MemberClub_CardNumber
90
     */
91
    protected $MemberClub_CardNumber = null;
92
93
    /**
94
     * @var boolean $MemberClub_IsDefault
95
     */
96
    protected $MemberClub_IsDefault = null;
97
98
    /**
99
     * @var int $PropertyGUID
100
     */
101
    protected $PropertyGUID = null;
102
103
    /**
104
     * @var \DateTime $CreationDate
105
     */
106
    protected $CreationDate = null;
107
108
    /**
109
     * @var int $ID_MemberClubPoints
110
     */
111
    protected $ID_MemberClubPoints = null;
112
113
    /**
114
     * @var int $AccumTotal
115
     */
116
    protected $AccumTotal = null;
117
118
    /**
119
     * @var int $AccumYear
120
     */
121
    protected $AccumYear = null;
122
123
    /**
124
     * @var int $ExpenseTotal
125
     */
126
    protected $ExpenseTotal = null;
127
128
    /**
129
     * @var \DateTime $SysModifDate
130
     */
131
    protected $SysModifDate = null;
132
133
    /**
134
     * @param int $ID_Member
135
     * @param boolean $GHClubLevel_IsActive
136
     * @param boolean $GHClubLevel_IsVIP
137
     * @param int $ID_SpecialRequestGroup
138
     * @param int $ID_GHClub
139
     * @param int $GHClubLevel_ViewOrder
140
     * @param int $MinPoint
141
     * @param int $ID_Reference
142
     * @param int $GHClubLevel_ID_VIP
143
     * @param int $ID_MemberClub
144
     * @param boolean $MemberClub_IsActive
145
     * @param int $ID_GHClubLevel
146
     * @param boolean $MemberClub_IsDefault
147
     * @param int $PropertyGUID
148
     * @param \DateTime $CreationDate
149
     * @param int $ID_MemberClubPoints
150
     * @param int $AccumTotal
151
     * @param int $AccumYear
152
     * @param int $ExpenseTotal
153
     * @param \DateTime $SysModifDate
154
     */
155
    public function __construct($ID_Member, $GHClubLevel_IsActive, $GHClubLevel_IsVIP, $ID_SpecialRequestGroup, $ID_GHClub, $GHClubLevel_ViewOrder, $MinPoint, $ID_Reference, $GHClubLevel_ID_VIP, $ID_MemberClub, $MemberClub_IsActive, $ID_GHClubLevel, $MemberClub_IsDefault, $PropertyGUID, \DateTime $CreationDate, $ID_MemberClubPoints, $AccumTotal, $AccumYear, $ExpenseTotal, \DateTime $SysModifDate)
156
    {
157
        $this->ID_Member = $ID_Member;
158
        $this->GHClubLevel_IsActive = $GHClubLevel_IsActive;
159
        $this->GHClubLevel_IsVIP = $GHClubLevel_IsVIP;
160
        $this->ID_SpecialRequestGroup = $ID_SpecialRequestGroup;
161
        $this->ID_GHClub = $ID_GHClub;
162
        $this->GHClubLevel_ViewOrder = $GHClubLevel_ViewOrder;
163
        $this->MinPoint = $MinPoint;
164
        $this->ID_Reference = $ID_Reference;
165
        $this->GHClubLevel_ID_VIP = $GHClubLevel_ID_VIP;
166
        $this->ID_MemberClub = $ID_MemberClub;
167
        $this->MemberClub_IsActive = $MemberClub_IsActive;
168
        $this->ID_GHClubLevel = $ID_GHClubLevel;
169
        $this->MemberClub_IsDefault = $MemberClub_IsDefault;
170
        $this->PropertyGUID = $PropertyGUID;
171
        $this->CreationDate = $CreationDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $CreationDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $CreationDate.

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...
172
        $this->ID_MemberClubPoints = $ID_MemberClubPoints;
173
        $this->AccumTotal = $AccumTotal;
174
        $this->AccumYear = $AccumYear;
175
        $this->ExpenseTotal = $ExpenseTotal;
176
        $this->SysModifDate = $SysModifDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $SysModifDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $SysModifDate.

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...
177
    }
178
179
    /**
180
     * @return int
181
     */
182
    public function getID_Member()
183
    {
184
        return $this->ID_Member;
185
    }
186
187
    /**
188
     * @param int $ID_Member
189
     * @return \Gueststream\PMS\IQWare\API\Loyalty
190
     */
191
    public function setID_Member($ID_Member)
192
    {
193
        $this->ID_Member = $ID_Member;
194
        return $this;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getGHClub_Name()
201
    {
202
        return $this->GHClub_Name;
203
    }
204
205
    /**
206
     * @param string $GHClub_Name
207
     * @return \Gueststream\PMS\IQWare\API\Loyalty
208
     */
209
    public function setGHClub_Name($GHClub_Name)
210
    {
211
        $this->GHClub_Name = $GHClub_Name;
212
        return $this;
213
    }
214
215
    /**
216
     * @return string
217
     */
218
    public function getGHClub_ShortName()
219
    {
220
        return $this->GHClub_ShortName;
221
    }
222
223
    /**
224
     * @param string $GHClub_ShortName
225
     * @return \Gueststream\PMS\IQWare\API\Loyalty
226
     */
227
    public function setGHClub_ShortName($GHClub_ShortName)
228
    {
229
        $this->GHClub_ShortName = $GHClub_ShortName;
230
        return $this;
231
    }
232
233
    /**
234
     * @return boolean
235
     */
236
    public function getGHClubLevel_IsActive()
237
    {
238
        return $this->GHClubLevel_IsActive;
239
    }
240
241
    /**
242
     * @param boolean $GHClubLevel_IsActive
243
     * @return \Gueststream\PMS\IQWare\API\Loyalty
244
     */
245
    public function setGHClubLevel_IsActive($GHClubLevel_IsActive)
246
    {
247
        $this->GHClubLevel_IsActive = $GHClubLevel_IsActive;
248
        return $this;
249
    }
250
251
    /**
252
     * @return string
253
     */
254
    public function getGHClubLevel_Name()
255
    {
256
        return $this->GHClubLevel_Name;
257
    }
258
259
    /**
260
     * @param string $GHClubLevel_Name
261
     * @return \Gueststream\PMS\IQWare\API\Loyalty
262
     */
263
    public function setGHClubLevel_Name($GHClubLevel_Name)
264
    {
265
        $this->GHClubLevel_Name = $GHClubLevel_Name;
266
        return $this;
267
    }
268
269
    /**
270
     * @return string
271
     */
272
    public function getGHClubLevel_Shortname()
273
    {
274
        return $this->GHClubLevel_Shortname;
275
    }
276
277
    /**
278
     * @param string $GHClubLevel_Shortname
279
     * @return \Gueststream\PMS\IQWare\API\Loyalty
280
     */
281
    public function setGHClubLevel_Shortname($GHClubLevel_Shortname)
282
    {
283
        $this->GHClubLevel_Shortname = $GHClubLevel_Shortname;
284
        return $this;
285
    }
286
287
    /**
288
     * @return boolean
289
     */
290
    public function getGHClubLevel_IsVIP()
291
    {
292
        return $this->GHClubLevel_IsVIP;
293
    }
294
295
    /**
296
     * @param boolean $GHClubLevel_IsVIP
297
     * @return \Gueststream\PMS\IQWare\API\Loyalty
298
     */
299
    public function setGHClubLevel_IsVIP($GHClubLevel_IsVIP)
300
    {
301
        $this->GHClubLevel_IsVIP = $GHClubLevel_IsVIP;
302
        return $this;
303
    }
304
305
    /**
306
     * @return int
307
     */
308
    public function getID_SpecialRequestGroup()
309
    {
310
        return $this->ID_SpecialRequestGroup;
311
    }
312
313
    /**
314
     * @param int $ID_SpecialRequestGroup
315
     * @return \Gueststream\PMS\IQWare\API\Loyalty
316
     */
317
    public function setID_SpecialRequestGroup($ID_SpecialRequestGroup)
318
    {
319
        $this->ID_SpecialRequestGroup = $ID_SpecialRequestGroup;
320
        return $this;
321
    }
322
323
    /**
324
     * @return int
325
     */
326
    public function getID_GHClub()
327
    {
328
        return $this->ID_GHClub;
329
    }
330
331
    /**
332
     * @param int $ID_GHClub
333
     * @return \Gueststream\PMS\IQWare\API\Loyalty
334
     */
335
    public function setID_GHClub($ID_GHClub)
336
    {
337
        $this->ID_GHClub = $ID_GHClub;
338
        return $this;
339
    }
340
341
    /**
342
     * @return int
343
     */
344
    public function getGHClubLevel_ViewOrder()
345
    {
346
        return $this->GHClubLevel_ViewOrder;
347
    }
348
349
    /**
350
     * @param int $GHClubLevel_ViewOrder
351
     * @return \Gueststream\PMS\IQWare\API\Loyalty
352
     */
353
    public function setGHClubLevel_ViewOrder($GHClubLevel_ViewOrder)
354
    {
355
        $this->GHClubLevel_ViewOrder = $GHClubLevel_ViewOrder;
356
        return $this;
357
    }
358
359
    /**
360
     * @return int
361
     */
362
    public function getMinPoint()
363
    {
364
        return $this->MinPoint;
365
    }
366
367
    /**
368
     * @param int $MinPoint
369
     * @return \Gueststream\PMS\IQWare\API\Loyalty
370
     */
371
    public function setMinPoint($MinPoint)
372
    {
373
        $this->MinPoint = $MinPoint;
374
        return $this;
375
    }
376
377
    /**
378
     * @return int
379
     */
380
    public function getID_Reference()
381
    {
382
        return $this->ID_Reference;
383
    }
384
385
    /**
386
     * @param int $ID_Reference
387
     * @return \Gueststream\PMS\IQWare\API\Loyalty
388
     */
389
    public function setID_Reference($ID_Reference)
390
    {
391
        $this->ID_Reference = $ID_Reference;
392
        return $this;
393
    }
394
395
    /**
396
     * @return int
397
     */
398
    public function getGHClubLevel_ID_VIP()
399
    {
400
        return $this->GHClubLevel_ID_VIP;
401
    }
402
403
    /**
404
     * @param int $GHClubLevel_ID_VIP
405
     * @return \Gueststream\PMS\IQWare\API\Loyalty
406
     */
407
    public function setGHClubLevel_ID_VIP($GHClubLevel_ID_VIP)
408
    {
409
        $this->GHClubLevel_ID_VIP = $GHClubLevel_ID_VIP;
410
        return $this;
411
    }
412
413
    /**
414
     * @return int
415
     */
416
    public function getID_MemberClub()
417
    {
418
        return $this->ID_MemberClub;
419
    }
420
421
    /**
422
     * @param int $ID_MemberClub
423
     * @return \Gueststream\PMS\IQWare\API\Loyalty
424
     */
425
    public function setID_MemberClub($ID_MemberClub)
426
    {
427
        $this->ID_MemberClub = $ID_MemberClub;
428
        return $this;
429
    }
430
431
    /**
432
     * @return boolean
433
     */
434
    public function getMemberClub_IsActive()
435
    {
436
        return $this->MemberClub_IsActive;
437
    }
438
439
    /**
440
     * @param boolean $MemberClub_IsActive
441
     * @return \Gueststream\PMS\IQWare\API\Loyalty
442
     */
443
    public function setMemberClub_IsActive($MemberClub_IsActive)
444
    {
445
        $this->MemberClub_IsActive = $MemberClub_IsActive;
446
        return $this;
447
    }
448
449
    /**
450
     * @return int
451
     */
452
    public function getID_GHClubLevel()
453
    {
454
        return $this->ID_GHClubLevel;
455
    }
456
457
    /**
458
     * @param int $ID_GHClubLevel
459
     * @return \Gueststream\PMS\IQWare\API\Loyalty
460
     */
461
    public function setID_GHClubLevel($ID_GHClubLevel)
462
    {
463
        $this->ID_GHClubLevel = $ID_GHClubLevel;
464
        return $this;
465
    }
466
467
    /**
468
     * @return string
469
     */
470
    public function getMemberClub_CardNumber()
471
    {
472
        return $this->MemberClub_CardNumber;
473
    }
474
475
    /**
476
     * @param string $MemberClub_CardNumber
477
     * @return \Gueststream\PMS\IQWare\API\Loyalty
478
     */
479
    public function setMemberClub_CardNumber($MemberClub_CardNumber)
480
    {
481
        $this->MemberClub_CardNumber = $MemberClub_CardNumber;
482
        return $this;
483
    }
484
485
    /**
486
     * @return boolean
487
     */
488
    public function getMemberClub_IsDefault()
489
    {
490
        return $this->MemberClub_IsDefault;
491
    }
492
493
    /**
494
     * @param boolean $MemberClub_IsDefault
495
     * @return \Gueststream\PMS\IQWare\API\Loyalty
496
     */
497
    public function setMemberClub_IsDefault($MemberClub_IsDefault)
498
    {
499
        $this->MemberClub_IsDefault = $MemberClub_IsDefault;
500
        return $this;
501
    }
502
503
    /**
504
     * @return int
505
     */
506
    public function getPropertyGUID()
507
    {
508
        return $this->PropertyGUID;
509
    }
510
511
    /**
512
     * @param int $PropertyGUID
513
     * @return \Gueststream\PMS\IQWare\API\Loyalty
514
     */
515
    public function setPropertyGUID($PropertyGUID)
516
    {
517
        $this->PropertyGUID = $PropertyGUID;
518
        return $this;
519
    }
520
521
    /**
522
     * @return \DateTime
523
     */
524
    public function getCreationDate()
525
    {
526
        if ($this->CreationDate == null) {
527
            return null;
528
        } else {
529
            try {
530
                return new \DateTime($this->CreationDate);
531
            } catch (\Exception $e) {
532
                return false;
533
            }
534
        }
535
    }
536
537
    /**
538
     * @param \DateTime $CreationDate
539
     * @return \Gueststream\PMS\IQWare\API\Loyalty
540
     */
541
    public function setCreationDate(\DateTime $CreationDate)
542
    {
543
        $this->CreationDate = $CreationDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $CreationDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $CreationDate.

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...
544
        return $this;
545
    }
546
547
    /**
548
     * @return int
549
     */
550
    public function getID_MemberClubPoints()
551
    {
552
        return $this->ID_MemberClubPoints;
553
    }
554
555
    /**
556
     * @param int $ID_MemberClubPoints
557
     * @return \Gueststream\PMS\IQWare\API\Loyalty
558
     */
559
    public function setID_MemberClubPoints($ID_MemberClubPoints)
560
    {
561
        $this->ID_MemberClubPoints = $ID_MemberClubPoints;
562
        return $this;
563
    }
564
565
    /**
566
     * @return int
567
     */
568
    public function getAccumTotal()
569
    {
570
        return $this->AccumTotal;
571
    }
572
573
    /**
574
     * @param int $AccumTotal
575
     * @return \Gueststream\PMS\IQWare\API\Loyalty
576
     */
577
    public function setAccumTotal($AccumTotal)
578
    {
579
        $this->AccumTotal = $AccumTotal;
580
        return $this;
581
    }
582
583
    /**
584
     * @return int
585
     */
586
    public function getAccumYear()
587
    {
588
        return $this->AccumYear;
589
    }
590
591
    /**
592
     * @param int $AccumYear
593
     * @return \Gueststream\PMS\IQWare\API\Loyalty
594
     */
595
    public function setAccumYear($AccumYear)
596
    {
597
        $this->AccumYear = $AccumYear;
598
        return $this;
599
    }
600
601
    /**
602
     * @return int
603
     */
604
    public function getExpenseTotal()
605
    {
606
        return $this->ExpenseTotal;
607
    }
608
609
    /**
610
     * @param int $ExpenseTotal
611
     * @return \Gueststream\PMS\IQWare\API\Loyalty
612
     */
613
    public function setExpenseTotal($ExpenseTotal)
614
    {
615
        $this->ExpenseTotal = $ExpenseTotal;
616
        return $this;
617
    }
618
619
    /**
620
     * @return \DateTime
621
     */
622
    public function getSysModifDate()
623
    {
624
        if ($this->SysModifDate == null) {
625
            return null;
626
        } else {
627
            try {
628
                return new \DateTime($this->SysModifDate);
629
            } catch (\Exception $e) {
630
                return false;
631
            }
632
        }
633
    }
634
635
    /**
636
     * @param \DateTime $SysModifDate
637
     * @return \Gueststream\PMS\IQWare\API\Loyalty
638
     */
639
    public function setSysModifDate(\DateTime $SysModifDate)
640
    {
641
        $this->SysModifDate = $SysModifDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $SysModifDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $SysModifDate.

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...
642
        return $this;
643
    }
644
}
645