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/cClubMember.php (2 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 cClubMember
6
{
7
8
    /**
9
     * @var int $MemberNo
10
     */
11
    protected $MemberNo = null;
12
13
    /**
14
     * @var int $ClubNo
15
     */
16
    protected $ClubNo = null;
17
18
    /**
19
     * @var int $ClubLevelNo
20
     */
21
    protected $ClubLevelNo = null;
22
23
    /**
24
     * @var string $CardPrefixGUID
25
     */
26
    protected $CardPrefixGUID = null;
27
28
    /**
29
     * @var string $CardNumber
30
     */
31
    protected $CardNumber = null;
32
33
    /**
34
     * @var int $AccumTotal
35
     */
36
    protected $AccumTotal = null;
37
38
    /**
39
     * @var int $ExpenseTotal
40
     */
41
    protected $ExpenseTotal = null;
42
43
    /**
44
     * @var \DateTime $MemberSince
45
     */
46
    protected $MemberSince = null;
47
48
    /**
49
     * @var boolean $IsActive
50
     */
51
    protected $IsActive = null;
52
53
    /**
54
     * @param int $MemberNo
55
     * @param int $ClubNo
56
     * @param int $ClubLevelNo
57
     * @param int $AccumTotal
58
     * @param int $ExpenseTotal
59
     * @param \DateTime $MemberSince
60
     * @param boolean $IsActive
61
     */
62
    public function __construct($MemberNo, $ClubNo, $ClubLevelNo, $AccumTotal, $ExpenseTotal, \DateTime $MemberSince, $IsActive)
63
    {
64
        $this->MemberNo = $MemberNo;
65
        $this->ClubNo = $ClubNo;
66
        $this->ClubLevelNo = $ClubLevelNo;
67
        $this->AccumTotal = $AccumTotal;
68
        $this->ExpenseTotal = $ExpenseTotal;
69
        $this->MemberSince = $MemberSince->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $MemberSince->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $MemberSince.

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...
70
        $this->IsActive = $IsActive;
71
    }
72
73
    /**
74
     * @return int
75
     */
76
    public function getMemberNo()
77
    {
78
        return $this->MemberNo;
79
    }
80
81
    /**
82
     * @param int $MemberNo
83
     * @return \Gueststream\PMS\IQWare\API\cClubMember
84
     */
85
    public function setMemberNo($MemberNo)
86
    {
87
        $this->MemberNo = $MemberNo;
88
        return $this;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getClubNo()
95
    {
96
        return $this->ClubNo;
97
    }
98
99
    /**
100
     * @param int $ClubNo
101
     * @return \Gueststream\PMS\IQWare\API\cClubMember
102
     */
103
    public function setClubNo($ClubNo)
104
    {
105
        $this->ClubNo = $ClubNo;
106
        return $this;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getClubLevelNo()
113
    {
114
        return $this->ClubLevelNo;
115
    }
116
117
    /**
118
     * @param int $ClubLevelNo
119
     * @return \Gueststream\PMS\IQWare\API\cClubMember
120
     */
121
    public function setClubLevelNo($ClubLevelNo)
122
    {
123
        $this->ClubLevelNo = $ClubLevelNo;
124
        return $this;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getCardPrefixGUID()
131
    {
132
        return $this->CardPrefixGUID;
133
    }
134
135
    /**
136
     * @param string $CardPrefixGUID
137
     * @return \Gueststream\PMS\IQWare\API\cClubMember
138
     */
139
    public function setCardPrefixGUID($CardPrefixGUID)
140
    {
141
        $this->CardPrefixGUID = $CardPrefixGUID;
142
        return $this;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getCardNumber()
149
    {
150
        return $this->CardNumber;
151
    }
152
153
    /**
154
     * @param string $CardNumber
155
     * @return \Gueststream\PMS\IQWare\API\cClubMember
156
     */
157
    public function setCardNumber($CardNumber)
158
    {
159
        $this->CardNumber = $CardNumber;
160
        return $this;
161
    }
162
163
    /**
164
     * @return int
165
     */
166
    public function getAccumTotal()
167
    {
168
        return $this->AccumTotal;
169
    }
170
171
    /**
172
     * @param int $AccumTotal
173
     * @return \Gueststream\PMS\IQWare\API\cClubMember
174
     */
175
    public function setAccumTotal($AccumTotal)
176
    {
177
        $this->AccumTotal = $AccumTotal;
178
        return $this;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getExpenseTotal()
185
    {
186
        return $this->ExpenseTotal;
187
    }
188
189
    /**
190
     * @param int $ExpenseTotal
191
     * @return \Gueststream\PMS\IQWare\API\cClubMember
192
     */
193
    public function setExpenseTotal($ExpenseTotal)
194
    {
195
        $this->ExpenseTotal = $ExpenseTotal;
196
        return $this;
197
    }
198
199
    /**
200
     * @return \DateTime
201
     */
202
    public function getMemberSince()
203
    {
204
        if ($this->MemberSince == null) {
205
            return null;
206
        } else {
207
            try {
208
                return new \DateTime($this->MemberSince);
209
            } catch (\Exception $e) {
210
                return false;
211
            }
212
        }
213
    }
214
215
    /**
216
     * @param \DateTime $MemberSince
217
     * @return \Gueststream\PMS\IQWare\API\cClubMember
218
     */
219
    public function setMemberSince(\DateTime $MemberSince)
220
    {
221
        $this->MemberSince = $MemberSince->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $MemberSince->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $MemberSince.

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...
222
        return $this;
223
    }
224
225
    /**
226
     * @return boolean
227
     */
228
    public function getIsActive()
229
    {
230
        return $this->IsActive;
231
    }
232
233
    /**
234
     * @param boolean $IsActive
235
     * @return \Gueststream\PMS\IQWare\API\cClubMember
236
     */
237
    public function setIsActive($IsActive)
238
    {
239
        $this->IsActive = $IsActive;
240
        return $this;
241
    }
242
}
243