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/OwnerReservationValidityResponse.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
class OwnerReservationValidityResponse
6
{
7
8
    /**
9
     * @var OwnerReservationValidity $Validity
10
     */
11
    protected $Validity = null;
12
13
    /**
14
     * @var RoomRestrictionStatus $RestrictionType
15
     */
16
    protected $RestrictionType = null;
17
18
    /**
19
     * @var int $RateYield_MinLengthValidity
20
     */
21
    protected $RateYield_MinLengthValidity = null;
22
23
    /**
24
     * @var int $RateCodeId
25
     */
26
    protected $RateCodeId = null;
27
28
    /**
29
     * @var int $RoomTypeId
30
     */
31
    protected $RoomTypeId = null;
32
33
    /**
34
     * @var int $RoomId
35
     */
36
    protected $RoomId = null;
37
38
    /**
39
     * @var string $RoomNo
40
     */
41
    protected $RoomNo = null;
42
43
    /**
44
     * @var string $RateCodeName
45
     */
46
    protected $RateCodeName = null;
47
48
    /**
49
     * @var string $RoomTypeName
50
     */
51
    protected $RoomTypeName = null;
52
53
    /**
54
     * @var string $RateCodeDescription
55
     */
56
    protected $RateCodeDescription = null;
57
58
    /**
59
     * @var string $RoomTypeDescription
60
     */
61
    protected $RoomTypeDescription = null;
62
63
    /**
64
     * @var string $Message
65
     */
66
    protected $Message = null;
67
68
    /**
69
     * @param OwnerReservationValidity $Validity
70
     * @param RoomRestrictionStatus $RestrictionType
71
     * @param int $RateYield_MinLengthValidity
72
     * @param int $RateCodeId
73
     * @param int $RoomTypeId
74
     * @param int $RoomId
75
     */
76 View Code Duplication
    public function __construct($Validity, $RestrictionType, $RateYield_MinLengthValidity, $RateCodeId, $RoomTypeId, $RoomId)
0 ignored issues
show
This method 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...
77
    {
78
        $this->Validity = $Validity;
79
        $this->RestrictionType = $RestrictionType;
80
        $this->RateYield_MinLengthValidity = $RateYield_MinLengthValidity;
81
        $this->RateCodeId = $RateCodeId;
82
        $this->RoomTypeId = $RoomTypeId;
83
        $this->RoomId = $RoomId;
84
    }
85
86
    /**
87
     * @return OwnerReservationValidity
88
     */
89
    public function getValidity()
90
    {
91
        return $this->Validity;
92
    }
93
94
    /**
95
     * @param OwnerReservationValidity $Validity
96
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
97
     */
98
    public function setValidity($Validity)
99
    {
100
        $this->Validity = $Validity;
101
        return $this;
102
    }
103
104
    /**
105
     * @return RoomRestrictionStatus
106
     */
107
    public function getRestrictionType()
108
    {
109
        return $this->RestrictionType;
110
    }
111
112
    /**
113
     * @param RoomRestrictionStatus $RestrictionType
114
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
115
     */
116
    public function setRestrictionType($RestrictionType)
117
    {
118
        $this->RestrictionType = $RestrictionType;
119
        return $this;
120
    }
121
122
    /**
123
     * @return int
124
     */
125
    public function getRateYield_MinLengthValidity()
126
    {
127
        return $this->RateYield_MinLengthValidity;
128
    }
129
130
    /**
131
     * @param int $RateYield_MinLengthValidity
132
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
133
     */
134
    public function setRateYield_MinLengthValidity($RateYield_MinLengthValidity)
135
    {
136
        $this->RateYield_MinLengthValidity = $RateYield_MinLengthValidity;
137
        return $this;
138
    }
139
140
    /**
141
     * @return int
142
     */
143
    public function getRateCodeId()
144
    {
145
        return $this->RateCodeId;
146
    }
147
148
    /**
149
     * @param int $RateCodeId
150
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
151
     */
152
    public function setRateCodeId($RateCodeId)
153
    {
154
        $this->RateCodeId = $RateCodeId;
155
        return $this;
156
    }
157
158
    /**
159
     * @return int
160
     */
161
    public function getRoomTypeId()
162
    {
163
        return $this->RoomTypeId;
164
    }
165
166
    /**
167
     * @param int $RoomTypeId
168
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
169
     */
170
    public function setRoomTypeId($RoomTypeId)
171
    {
172
        $this->RoomTypeId = $RoomTypeId;
173
        return $this;
174
    }
175
176
    /**
177
     * @return int
178
     */
179
    public function getRoomId()
180
    {
181
        return $this->RoomId;
182
    }
183
184
    /**
185
     * @param int $RoomId
186
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
187
     */
188
    public function setRoomId($RoomId)
189
    {
190
        $this->RoomId = $RoomId;
191
        return $this;
192
    }
193
194
    /**
195
     * @return string
196
     */
197
    public function getRoomNo()
198
    {
199
        return $this->RoomNo;
200
    }
201
202
    /**
203
     * @param string $RoomNo
204
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
205
     */
206
    public function setRoomNo($RoomNo)
207
    {
208
        $this->RoomNo = $RoomNo;
209
        return $this;
210
    }
211
212
    /**
213
     * @return string
214
     */
215
    public function getRateCodeName()
216
    {
217
        return $this->RateCodeName;
218
    }
219
220
    /**
221
     * @param string $RateCodeName
222
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
223
     */
224
    public function setRateCodeName($RateCodeName)
225
    {
226
        $this->RateCodeName = $RateCodeName;
227
        return $this;
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getRoomTypeName()
234
    {
235
        return $this->RoomTypeName;
236
    }
237
238
    /**
239
     * @param string $RoomTypeName
240
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
241
     */
242
    public function setRoomTypeName($RoomTypeName)
243
    {
244
        $this->RoomTypeName = $RoomTypeName;
245
        return $this;
246
    }
247
248
    /**
249
     * @return string
250
     */
251
    public function getRateCodeDescription()
252
    {
253
        return $this->RateCodeDescription;
254
    }
255
256
    /**
257
     * @param string $RateCodeDescription
258
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
259
     */
260
    public function setRateCodeDescription($RateCodeDescription)
261
    {
262
        $this->RateCodeDescription = $RateCodeDescription;
263
        return $this;
264
    }
265
266
    /**
267
     * @return string
268
     */
269
    public function getRoomTypeDescription()
270
    {
271
        return $this->RoomTypeDescription;
272
    }
273
274
    /**
275
     * @param string $RoomTypeDescription
276
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
277
     */
278
    public function setRoomTypeDescription($RoomTypeDescription)
279
    {
280
        $this->RoomTypeDescription = $RoomTypeDescription;
281
        return $this;
282
    }
283
284
    /**
285
     * @return string
286
     */
287
    public function getMessage()
288
    {
289
        return $this->Message;
290
    }
291
292
    /**
293
     * @param string $Message
294
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
295
     */
296
    public function setMessage($Message)
297
    {
298
        $this->Message = $Message;
299
        return $this;
300
    }
301
}
302