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

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...
71
        $this->IsAvailable = $IsAvailable;
72
        $this->RoomCategory = $RoomCategory;
73
    }
74
75
    /**
76
     * @return int
77
     */
78
    public function getID_Room()
79
    {
80
        return $this->ID_Room;
81
    }
82
83
    /**
84
     * @param int $ID_Room
85
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
86
     */
87
    public function setID_Room($ID_Room)
88
    {
89
        $this->ID_Room = $ID_Room;
90
        return $this;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getRoomNo()
97
    {
98
        return $this->RoomNo;
99
    }
100
101
    /**
102
     * @param string $RoomNo
103
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
104
     */
105
    public function setRoomNo($RoomNo)
106
    {
107
        $this->RoomNo = $RoomNo;
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getID_RoomType()
115
    {
116
        return $this->ID_RoomType;
117
    }
118
119
    /**
120
     * @param int $ID_RoomType
121
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
122
     */
123
    public function setID_RoomType($ID_RoomType)
124
    {
125
        $this->ID_RoomType = $ID_RoomType;
126
        return $this;
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getID_Address()
133
    {
134
        return $this->ID_Address;
135
    }
136
137
    /**
138
     * @param int $ID_Address
139
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
140
     */
141
    public function setID_Address($ID_Address)
142
    {
143
        $this->ID_Address = $ID_Address;
144
        return $this;
145
    }
146
147
    /**
148
     * @return int
149
     */
150
    public function getID_Bedding()
151
    {
152
        return $this->ID_Bedding;
153
    }
154
155
    /**
156
     * @param int $ID_Bedding
157
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
158
     */
159
    public function setID_Bedding($ID_Bedding)
160
    {
161
        $this->ID_Bedding = $ID_Bedding;
162
        return $this;
163
    }
164
165
    /**
166
     * @return int
167
     */
168
    public function getID_Floor()
169
    {
170
        return $this->ID_Floor;
171
    }
172
173
    /**
174
     * @param int $ID_Floor
175
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
176
     */
177
    public function setID_Floor($ID_Floor)
178
    {
179
        $this->ID_Floor = $ID_Floor;
180
        return $this;
181
    }
182
183
    /**
184
     * @return \DateTime
185
     */
186
    public function getADate()
187
    {
188
        if ($this->ADate == null) {
189
            return null;
190
        } else {
191
            try {
192
                return new \DateTime($this->ADate);
193
            } catch (\Exception $e) {
194
                return false;
195
            }
196
        }
197
    }
198
199
    /**
200
     * @param \DateTime $ADate
201
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
202
     */
203
    public function setADate(\DateTime $ADate)
204
    {
205
        $this->ADate = $ADate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ADate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ADate.

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...
206
        return $this;
207
    }
208
209
    /**
210
     * @return boolean
211
     */
212
    public function getIsAvailable()
213
    {
214
        return $this->IsAvailable;
215
    }
216
217
    /**
218
     * @param boolean $IsAvailable
219
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
220
     */
221
    public function setIsAvailable($IsAvailable)
222
    {
223
        $this->IsAvailable = $IsAvailable;
224
        return $this;
225
    }
226
227
    /**
228
     * @return int
229
     */
230
    public function getRoomCategory()
231
    {
232
        return $this->RoomCategory;
233
    }
234
235
    /**
236
     * @param int $RoomCategory
237
     * @return \Gueststream\PMS\IQWare\API\UnitAvailable
238
     */
239
    public function setRoomCategory($RoomCategory)
240
    {
241
        $this->RoomCategory = $RoomCategory;
242
        return $this;
243
    }
244
}
245