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

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

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
    }
72
73
    /**
74
     * @return \DateTime
75
     */
76
    public function getBeginDate()
77
    {
78
        if ($this->BeginDate == null) {
79
            return null;
80
        } else {
81
            try {
82
                return new \DateTime($this->BeginDate);
83
            } catch (\Exception $e) {
84
                return false;
85
            }
86
        }
87
    }
88
89
    /**
90
     * @param \DateTime $BeginDate
91
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
92
     */
93
    public function setBeginDate(\DateTime $BeginDate)
94
    {
95
        $this->BeginDate = $BeginDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $BeginDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $BeginDate.

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...
96
        return $this;
97
    }
98
99
    /**
100
     * @return \DateTime
101
     */
102
    public function getEndDate()
103
    {
104
        if ($this->EndDate == null) {
105
            return null;
106
        } else {
107
            try {
108
                return new \DateTime($this->EndDate);
109
            } catch (\Exception $e) {
110
                return false;
111
            }
112
        }
113
    }
114
115
    /**
116
     * @param \DateTime $EndDate
117
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
118
     */
119
    public function setEndDate(\DateTime $EndDate)
120
    {
121
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate.

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...
122
        return $this;
123
    }
124
125
    /**
126
     * @return string
127
     */
128
    public function getSingleOcc()
129
    {
130
        return $this->SingleOcc;
131
    }
132
133
    /**
134
     * @param string $SingleOcc
135
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
136
     */
137
    public function setSingleOcc($SingleOcc)
138
    {
139
        $this->SingleOcc = $SingleOcc;
140
        return $this;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getDoubleOcc()
147
    {
148
        return $this->DoubleOcc;
149
    }
150
151
    /**
152
     * @param string $DoubleOcc
153
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
154
     */
155
    public function setDoubleOcc($DoubleOcc)
156
    {
157
        $this->DoubleOcc = $DoubleOcc;
158
        return $this;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getTripleOcc()
165
    {
166
        return $this->TripleOcc;
167
    }
168
169
    /**
170
     * @param string $TripleOcc
171
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
172
     */
173
    public function setTripleOcc($TripleOcc)
174
    {
175
        $this->TripleOcc = $TripleOcc;
176
        return $this;
177
    }
178
179
    /**
180
     * @return string
181
     */
182
    public function getQuadOcc()
183
    {
184
        return $this->QuadOcc;
185
    }
186
187
    /**
188
     * @param string $QuadOcc
189
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
190
     */
191
    public function setQuadOcc($QuadOcc)
192
    {
193
        $this->QuadOcc = $QuadOcc;
194
        return $this;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getAdditional()
201
    {
202
        return $this->Additional;
203
    }
204
205
    /**
206
     * @param string $Additional
207
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
208
     */
209
    public function setAdditional($Additional)
210
    {
211
        $this->Additional = $Additional;
212
        return $this;
213
    }
214
215
    /**
216
     * @return string
217
     */
218
    public function getCat1()
219
    {
220
        return $this->Cat1;
221
    }
222
223
    /**
224
     * @param string $Cat1
225
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
226
     */
227
    public function setCat1($Cat1)
228
    {
229
        $this->Cat1 = $Cat1;
230
        return $this;
231
    }
232
233
    /**
234
     * @return string
235
     */
236
    public function getCat2()
237
    {
238
        return $this->Cat2;
239
    }
240
241
    /**
242
     * @param string $Cat2
243
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
244
     */
245
    public function setCat2($Cat2)
246
    {
247
        $this->Cat2 = $Cat2;
248
        return $this;
249
    }
250
251
    /**
252
     * @return string
253
     */
254
    public function getCat3()
255
    {
256
        return $this->Cat3;
257
    }
258
259
    /**
260
     * @param string $Cat3
261
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
262
     */
263
    public function setCat3($Cat3)
264
    {
265
        $this->Cat3 = $Cat3;
266
        return $this;
267
    }
268
269
    /**
270
     * @return string
271
     */
272
    public function getCat4()
273
    {
274
        return $this->Cat4;
275
    }
276
277
    /**
278
     * @param string $Cat4
279
     * @return \Gueststream\PMS\IQWare\API\SpecificDayOccupancyValue
280
     */
281
    public function setCat4($Cat4)
282
    {
283
        $this->Cat4 = $Cat4;
284
        return $this;
285
    }
286
}
287