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/Evaluation.php (1 issue)

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 Evaluation
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 int $ID_Stay
10
     */
11
    protected $ID_Stay = null;
12
13
    /**
14
     * @var int $ID_RoomType
15
     */
16
    protected $ID_RoomType = null;
17
18
    /**
19
     * @var int $ID_RateCode
20
     */
21
    protected $ID_RateCode = null;
22
23
    /**
24
     * @var float $TotalStay
25
     */
26
    protected $TotalStay = null;
27
28
    /**
29
     * @var float $TotalStayTx
30
     */
31
    protected $TotalStayTx = null;
32
33
    /**
34
     * @var float $FirstNight
35
     */
36
    protected $FirstNight = null;
37
38
    /**
39
     * @var float $FirstNightTx
40
     */
41
    protected $FirstNightTx = null;
42
43
    /**
44
     * @var float $FirstNightOthers
45
     */
46
    protected $FirstNightOthers = null;
47
48
    /**
49
     * @var float $AvgNight
50
     */
51
    protected $AvgNight = null;
52
53
    /**
54
     * @var float $AvgNightTx
55
     */
56
    protected $AvgNightTx = null;
57
58
    /**
59
     * @var float $TotalRate
60
     */
61
    protected $TotalRate = null;
62
63
    /**
64
     * @var float $TotalOthers
65
     */
66
    protected $TotalOthers = null;
67
68
    /**
69
     * @var ArrayOfDailyEvaluation $DailyEvaluations
70
     */
71
    protected $DailyEvaluations = null;
72
73
    /**
74
     * @param int $ID_Stay
75
     * @param int $ID_RoomType
76
     * @param int $ID_RateCode
77
     * @param float $TotalStay
78
     * @param float $TotalStayTx
79
     * @param float $FirstNight
80
     * @param float $FirstNightTx
81
     * @param float $FirstNightOthers
82
     * @param float $AvgNight
83
     * @param float $AvgNightTx
84
     * @param float $TotalRate
85
     * @param float $TotalOthers
86
     */
87
    public function __construct($ID_Stay, $ID_RoomType, $ID_RateCode, $TotalStay, $TotalStayTx, $FirstNight, $FirstNightTx, $FirstNightOthers, $AvgNight, $AvgNightTx, $TotalRate, $TotalOthers)
88
    {
89
        $this->ID_Stay = $ID_Stay;
90
        $this->ID_RoomType = $ID_RoomType;
91
        $this->ID_RateCode = $ID_RateCode;
92
        $this->TotalStay = $TotalStay;
93
        $this->TotalStayTx = $TotalStayTx;
94
        $this->FirstNight = $FirstNight;
95
        $this->FirstNightTx = $FirstNightTx;
96
        $this->FirstNightOthers = $FirstNightOthers;
97
        $this->AvgNight = $AvgNight;
98
        $this->AvgNightTx = $AvgNightTx;
99
        $this->TotalRate = $TotalRate;
100
        $this->TotalOthers = $TotalOthers;
101
    }
102
103
    /**
104
     * @return int
105
     */
106
    public function getID_Stay()
107
    {
108
        return $this->ID_Stay;
109
    }
110
111
    /**
112
     * @param int $ID_Stay
113
     * @return \Gueststream\PMS\IQWare\API\Evaluation
114
     */
115
    public function setID_Stay($ID_Stay)
116
    {
117
        $this->ID_Stay = $ID_Stay;
118
        return $this;
119
    }
120
121
    /**
122
     * @return int
123
     */
124
    public function getID_RoomType()
125
    {
126
        return $this->ID_RoomType;
127
    }
128
129
    /**
130
     * @param int $ID_RoomType
131
     * @return \Gueststream\PMS\IQWare\API\Evaluation
132
     */
133
    public function setID_RoomType($ID_RoomType)
134
    {
135
        $this->ID_RoomType = $ID_RoomType;
136
        return $this;
137
    }
138
139
    /**
140
     * @return int
141
     */
142
    public function getID_RateCode()
143
    {
144
        return $this->ID_RateCode;
145
    }
146
147
    /**
148
     * @param int $ID_RateCode
149
     * @return \Gueststream\PMS\IQWare\API\Evaluation
150
     */
151
    public function setID_RateCode($ID_RateCode)
152
    {
153
        $this->ID_RateCode = $ID_RateCode;
154
        return $this;
155
    }
156
157
    /**
158
     * @return float
159
     */
160
    public function getTotalStay()
161
    {
162
        return $this->TotalStay;
163
    }
164
165
    /**
166
     * @param float $TotalStay
167
     * @return \Gueststream\PMS\IQWare\API\Evaluation
168
     */
169
    public function setTotalStay($TotalStay)
170
    {
171
        $this->TotalStay = $TotalStay;
172
        return $this;
173
    }
174
175
    /**
176
     * @return float
177
     */
178
    public function getTotalStayTx()
179
    {
180
        return $this->TotalStayTx;
181
    }
182
183
    /**
184
     * @param float $TotalStayTx
185
     * @return \Gueststream\PMS\IQWare\API\Evaluation
186
     */
187
    public function setTotalStayTx($TotalStayTx)
188
    {
189
        $this->TotalStayTx = $TotalStayTx;
190
        return $this;
191
    }
192
193
    /**
194
     * @return float
195
     */
196
    public function getFirstNight()
197
    {
198
        return $this->FirstNight;
199
    }
200
201
    /**
202
     * @param float $FirstNight
203
     * @return \Gueststream\PMS\IQWare\API\Evaluation
204
     */
205
    public function setFirstNight($FirstNight)
206
    {
207
        $this->FirstNight = $FirstNight;
208
        return $this;
209
    }
210
211
    /**
212
     * @return float
213
     */
214
    public function getFirstNightTx()
215
    {
216
        return $this->FirstNightTx;
217
    }
218
219
    /**
220
     * @param float $FirstNightTx
221
     * @return \Gueststream\PMS\IQWare\API\Evaluation
222
     */
223
    public function setFirstNightTx($FirstNightTx)
224
    {
225
        $this->FirstNightTx = $FirstNightTx;
226
        return $this;
227
    }
228
229
    /**
230
     * @return float
231
     */
232
    public function getFirstNightOthers()
233
    {
234
        return $this->FirstNightOthers;
235
    }
236
237
    /**
238
     * @param float $FirstNightOthers
239
     * @return \Gueststream\PMS\IQWare\API\Evaluation
240
     */
241
    public function setFirstNightOthers($FirstNightOthers)
242
    {
243
        $this->FirstNightOthers = $FirstNightOthers;
244
        return $this;
245
    }
246
247
    /**
248
     * @return float
249
     */
250
    public function getAvgNight()
251
    {
252
        return $this->AvgNight;
253
    }
254
255
    /**
256
     * @param float $AvgNight
257
     * @return \Gueststream\PMS\IQWare\API\Evaluation
258
     */
259
    public function setAvgNight($AvgNight)
260
    {
261
        $this->AvgNight = $AvgNight;
262
        return $this;
263
    }
264
265
    /**
266
     * @return float
267
     */
268
    public function getAvgNightTx()
269
    {
270
        return $this->AvgNightTx;
271
    }
272
273
    /**
274
     * @param float $AvgNightTx
275
     * @return \Gueststream\PMS\IQWare\API\Evaluation
276
     */
277
    public function setAvgNightTx($AvgNightTx)
278
    {
279
        $this->AvgNightTx = $AvgNightTx;
280
        return $this;
281
    }
282
283
    /**
284
     * @return float
285
     */
286
    public function getTotalRate()
287
    {
288
        return $this->TotalRate;
289
    }
290
291
    /**
292
     * @param float $TotalRate
293
     * @return \Gueststream\PMS\IQWare\API\Evaluation
294
     */
295
    public function setTotalRate($TotalRate)
296
    {
297
        $this->TotalRate = $TotalRate;
298
        return $this;
299
    }
300
301
    /**
302
     * @return float
303
     */
304
    public function getTotalOthers()
305
    {
306
        return $this->TotalOthers;
307
    }
308
309
    /**
310
     * @param float $TotalOthers
311
     * @return \Gueststream\PMS\IQWare\API\Evaluation
312
     */
313
    public function setTotalOthers($TotalOthers)
314
    {
315
        $this->TotalOthers = $TotalOthers;
316
        return $this;
317
    }
318
319
    /**
320
     * @return ArrayOfDailyEvaluation
321
     */
322
    public function getDailyEvaluations()
323
    {
324
        return $this->DailyEvaluations;
325
    }
326
327
    /**
328
     * @param ArrayOfDailyEvaluation $DailyEvaluations
329
     * @return \Gueststream\PMS\IQWare\API\Evaluation
330
     */
331
    public function setDailyEvaluations($DailyEvaluations)
332
    {
333
        $this->DailyEvaluations = $DailyEvaluations;
334
        return $this;
335
    }
336
}
337