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/Comissions.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 Comissions
6
{
7
8
    /**
9
     * @var \DateTime $StatDate
10
     */
11
    protected $StatDate = null;
12
13
    /**
14
     * @var int $AccountNo
15
     */
16
    protected $AccountNo = null;
17
18
    /**
19
     * @var string $AccountName
20
     */
21
    protected $AccountName = null;
22
23
    /**
24
     * @var int $CommModeType
25
     */
26
    protected $CommModeType = null;
27
28
    /**
29
     * @var float $TotalRevComm
30
     */
31
    protected $TotalRevComm = null;
32
33
    /**
34
     * @var float $TotalGrossComm
35
     */
36
    protected $TotalGrossComm = null;
37
38
    /**
39
     * @var int $ProcessStatus
40
     */
41
    protected $ProcessStatus = null;
42
43
    /**
44
     * @var int $BookingStatus
45
     */
46
    protected $BookingStatus = null;
47
48
    /**
49
     * @var float $PrepaidAmount
50
     */
51
    protected $PrepaidAmount = null;
52
53
    /**
54
     * @var int $CheckNo
55
     */
56
    protected $CheckNo = null;
57
58
    /**
59
     * @var float $TotalNetComm
60
     */
61
    protected $TotalNetComm = null;
62
63
    /**
64
     * @param \DateTime $StatDate
65
     * @param int $AccountNo
66
     * @param string $AccountName
67
     * @param int $CommModeType
68
     * @param float $TotalRevComm
69
     * @param float $TotalGrossComm
70
     * @param int $ProcessStatus
71
     * @param int $BookingStatus
72
     * @param float $PrepaidAmount
73
     * @param int $CheckNo
74
     * @param float $TotalNetComm
75
     */
76
    public function __construct(\DateTime $StatDate, $AccountNo, $AccountName, $CommModeType, $TotalRevComm, $TotalGrossComm, $ProcessStatus, $BookingStatus, $PrepaidAmount, $CheckNo, $TotalNetComm)
77
    {
78
        $this->StatDate = $StatDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StatDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StatDate.

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...
79
        $this->AccountNo = $AccountNo;
80
        $this->AccountName = $AccountName;
81
        $this->CommModeType = $CommModeType;
82
        $this->TotalRevComm = $TotalRevComm;
83
        $this->TotalGrossComm = $TotalGrossComm;
84
        $this->ProcessStatus = $ProcessStatus;
85
        $this->BookingStatus = $BookingStatus;
86
        $this->PrepaidAmount = $PrepaidAmount;
87
        $this->CheckNo = $CheckNo;
88
        $this->TotalNetComm = $TotalNetComm;
89
    }
90
91
    /**
92
     * @return \DateTime
93
     */
94
    public function getStatDate()
95
    {
96
        if ($this->StatDate == null) {
97
            return null;
98
        } else {
99
            try {
100
                return new \DateTime($this->StatDate);
101
            } catch (\Exception $e) {
102
                return false;
103
            }
104
        }
105
    }
106
107
    /**
108
     * @param \DateTime $StatDate
109
     * @return \Gueststream\PMS\IQWare\API\Comissions
110
     */
111
    public function setStatDate(\DateTime $StatDate)
112
    {
113
        $this->StatDate = $StatDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StatDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StatDate.

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...
114
        return $this;
115
    }
116
117
    /**
118
     * @return int
119
     */
120
    public function getAccountNo()
121
    {
122
        return $this->AccountNo;
123
    }
124
125
    /**
126
     * @param int $AccountNo
127
     * @return \Gueststream\PMS\IQWare\API\Comissions
128
     */
129
    public function setAccountNo($AccountNo)
130
    {
131
        $this->AccountNo = $AccountNo;
132
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getAccountName()
139
    {
140
        return $this->AccountName;
141
    }
142
143
    /**
144
     * @param string $AccountName
145
     * @return \Gueststream\PMS\IQWare\API\Comissions
146
     */
147
    public function setAccountName($AccountName)
148
    {
149
        $this->AccountName = $AccountName;
150
        return $this;
151
    }
152
153
    /**
154
     * @return int
155
     */
156
    public function getCommModeType()
157
    {
158
        return $this->CommModeType;
159
    }
160
161
    /**
162
     * @param int $CommModeType
163
     * @return \Gueststream\PMS\IQWare\API\Comissions
164
     */
165
    public function setCommModeType($CommModeType)
166
    {
167
        $this->CommModeType = $CommModeType;
168
        return $this;
169
    }
170
171
    /**
172
     * @return float
173
     */
174
    public function getTotalRevComm()
175
    {
176
        return $this->TotalRevComm;
177
    }
178
179
    /**
180
     * @param float $TotalRevComm
181
     * @return \Gueststream\PMS\IQWare\API\Comissions
182
     */
183
    public function setTotalRevComm($TotalRevComm)
184
    {
185
        $this->TotalRevComm = $TotalRevComm;
186
        return $this;
187
    }
188
189
    /**
190
     * @return float
191
     */
192
    public function getTotalGrossComm()
193
    {
194
        return $this->TotalGrossComm;
195
    }
196
197
    /**
198
     * @param float $TotalGrossComm
199
     * @return \Gueststream\PMS\IQWare\API\Comissions
200
     */
201
    public function setTotalGrossComm($TotalGrossComm)
202
    {
203
        $this->TotalGrossComm = $TotalGrossComm;
204
        return $this;
205
    }
206
207
    /**
208
     * @return int
209
     */
210
    public function getProcessStatus()
211
    {
212
        return $this->ProcessStatus;
213
    }
214
215
    /**
216
     * @param int $ProcessStatus
217
     * @return \Gueststream\PMS\IQWare\API\Comissions
218
     */
219
    public function setProcessStatus($ProcessStatus)
220
    {
221
        $this->ProcessStatus = $ProcessStatus;
222
        return $this;
223
    }
224
225
    /**
226
     * @return int
227
     */
228
    public function getBookingStatus()
229
    {
230
        return $this->BookingStatus;
231
    }
232
233
    /**
234
     * @param int $BookingStatus
235
     * @return \Gueststream\PMS\IQWare\API\Comissions
236
     */
237
    public function setBookingStatus($BookingStatus)
238
    {
239
        $this->BookingStatus = $BookingStatus;
240
        return $this;
241
    }
242
243
    /**
244
     * @return float
245
     */
246
    public function getPrepaidAmount()
247
    {
248
        return $this->PrepaidAmount;
249
    }
250
251
    /**
252
     * @param float $PrepaidAmount
253
     * @return \Gueststream\PMS\IQWare\API\Comissions
254
     */
255
    public function setPrepaidAmount($PrepaidAmount)
256
    {
257
        $this->PrepaidAmount = $PrepaidAmount;
258
        return $this;
259
    }
260
261
    /**
262
     * @return int
263
     */
264
    public function getCheckNo()
265
    {
266
        return $this->CheckNo;
267
    }
268
269
    /**
270
     * @param int $CheckNo
271
     * @return \Gueststream\PMS\IQWare\API\Comissions
272
     */
273
    public function setCheckNo($CheckNo)
274
    {
275
        $this->CheckNo = $CheckNo;
276
        return $this;
277
    }
278
279
    /**
280
     * @return float
281
     */
282
    public function getTotalNetComm()
283
    {
284
        return $this->TotalNetComm;
285
    }
286
287
    /**
288
     * @param float $TotalNetComm
289
     * @return \Gueststream\PMS\IQWare\API\Comissions
290
     */
291
    public function setTotalNetComm($TotalNetComm)
292
    {
293
        $this->TotalNetComm = $TotalNetComm;
294
        return $this;
295
    }
296
}
297