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/OwnerReservation.php (4 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 OwnerReservation
6
{
7
8
    /**
9
     * @var \DateTime $Arrival
10
     */
11
    protected $Arrival = null;
12
13
    /**
14
     * @var \DateTime $Departure
15
     */
16
    protected $Departure = null;
17
18
    /**
19
     * @var int $NightCount
20
     */
21
    protected $NightCount = null;
22
23
    /**
24
     * @var int $GuestCount
25
     */
26
    protected $GuestCount = null;
27
28
    /**
29
     * @var int $CondoOwnerId
30
     */
31
    protected $CondoOwnerId = null;
32
33
    /**
34
     * @var int $AdminId
35
     */
36
    protected $AdminId = null;
37
38
    /**
39
     * @var ArrayOfShort $ChildrenAges
40
     */
41
    protected $ChildrenAges = null;
42
43
    /**
44
     * @var string $LanguageCode
45
     */
46
    protected $LanguageCode = null;
47
48
    /**
49
     * @param \DateTime $Arrival
50
     * @param \DateTime $Departure
51
     * @param int $NightCount
52
     * @param int $GuestCount
53
     * @param int $CondoOwnerId
54
     * @param int $AdminId
55
     */
56
    public function __construct(\DateTime $Arrival, \DateTime $Departure, $NightCount, $GuestCount, $CondoOwnerId, $AdminId)
57
    {
58
        $this->Arrival = $Arrival->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $Arrival->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Arrival.

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...
59
        $this->Departure = $Departure->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $Departure->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Departure.

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...
60
        $this->NightCount = $NightCount;
61
        $this->GuestCount = $GuestCount;
62
        $this->CondoOwnerId = $CondoOwnerId;
63
        $this->AdminId = $AdminId;
64
    }
65
66
    /**
67
     * @return \DateTime
68
     */
69
    public function getArrival()
70
    {
71
        if ($this->Arrival == null) {
72
            return null;
73
        } else {
74
            try {
75
                return new \DateTime($this->Arrival);
76
            } catch (\Exception $e) {
77
                return false;
78
            }
79
        }
80
    }
81
82
    /**
83
     * @param \DateTime $Arrival
84
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
85
     */
86
    public function setArrival(\DateTime $Arrival)
87
    {
88
        $this->Arrival = $Arrival->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $Arrival->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Arrival.

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...
89
        return $this;
90
    }
91
92
    /**
93
     * @return \DateTime
94
     */
95
    public function getDeparture()
96
    {
97
        if ($this->Departure == null) {
98
            return null;
99
        } else {
100
            try {
101
                return new \DateTime($this->Departure);
102
            } catch (\Exception $e) {
103
                return false;
104
            }
105
        }
106
    }
107
108
    /**
109
     * @param \DateTime $Departure
110
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
111
     */
112
    public function setDeparture(\DateTime $Departure)
113
    {
114
        $this->Departure = $Departure->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $Departure->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $Departure.

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...
115
        return $this;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getNightCount()
122
    {
123
        return $this->NightCount;
124
    }
125
126
    /**
127
     * @param int $NightCount
128
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
129
     */
130
    public function setNightCount($NightCount)
131
    {
132
        $this->NightCount = $NightCount;
133
        return $this;
134
    }
135
136
    /**
137
     * @return int
138
     */
139
    public function getGuestCount()
140
    {
141
        return $this->GuestCount;
142
    }
143
144
    /**
145
     * @param int $GuestCount
146
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
147
     */
148
    public function setGuestCount($GuestCount)
149
    {
150
        $this->GuestCount = $GuestCount;
151
        return $this;
152
    }
153
154
    /**
155
     * @return int
156
     */
157
    public function getCondoOwnerId()
158
    {
159
        return $this->CondoOwnerId;
160
    }
161
162
    /**
163
     * @param int $CondoOwnerId
164
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
165
     */
166
    public function setCondoOwnerId($CondoOwnerId)
167
    {
168
        $this->CondoOwnerId = $CondoOwnerId;
169
        return $this;
170
    }
171
172
    /**
173
     * @return int
174
     */
175
    public function getAdminId()
176
    {
177
        return $this->AdminId;
178
    }
179
180
    /**
181
     * @param int $AdminId
182
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
183
     */
184
    public function setAdminId($AdminId)
185
    {
186
        $this->AdminId = $AdminId;
187
        return $this;
188
    }
189
190
    /**
191
     * @return ArrayOfShort
192
     */
193
    public function getChildrenAges()
194
    {
195
        return $this->ChildrenAges;
196
    }
197
198
    /**
199
     * @param ArrayOfShort $ChildrenAges
200
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
201
     */
202
    public function setChildrenAges($ChildrenAges)
203
    {
204
        $this->ChildrenAges = $ChildrenAges;
205
        return $this;
206
    }
207
208
    /**
209
     * @return string
210
     */
211
    public function getLanguageCode()
212
    {
213
        return $this->LanguageCode;
214
    }
215
216
    /**
217
     * @param string $LanguageCode
218
     * @return \Gueststream\PMS\IQWare\API\OwnerReservation
219
     */
220
    public function setLanguageCode($LanguageCode)
221
    {
222
        $this->LanguageCode = $LanguageCode;
223
        return $this;
224
    }
225
}
226