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

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

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...
68
        $this->ID_UserComDelivered = $ID_UserComDelivered;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getSeqNo()
75
    {
76
        return $this->SeqNo;
77
    }
78
79
    /**
80
     * @param int $SeqNo
81
     * @return \Gueststream\PMS\IQWare\API\cComments
82
     */
83
    public function setSeqNo($SeqNo)
84
    {
85
        $this->SeqNo = $SeqNo;
86
        return $this;
87
    }
88
89
    /**
90
     * @return string
91
     */
92
    public function getComDescription()
93
    {
94
        return $this->ComDescription;
95
    }
96
97
    /**
98
     * @param string $ComDescription
99
     * @return \Gueststream\PMS\IQWare\API\cComments
100
     */
101
    public function setComDescription($ComDescription)
102
    {
103
        $this->ComDescription = $ComDescription;
104
        return $this;
105
    }
106
107
    /**
108
     * @return TCommentStatus
109
     */
110
    public function getStatus()
111
    {
112
        return $this->Status;
113
    }
114
115
    /**
116
     * @param TCommentStatus $Status
117
     * @return \Gueststream\PMS\IQWare\API\cComments
118
     */
119
    public function setStatus($Status)
120
    {
121
        $this->Status = $Status;
122
        return $this;
123
    }
124
125
    /**
126
     * @return \DateTime
127
     */
128
    public function getDateComIn()
129
    {
130
        if ($this->DateComIn == null) {
131
            return null;
132
        } else {
133
            try {
134
                return new \DateTime($this->DateComIn);
135
            } catch (\Exception $e) {
136
                return false;
137
            }
138
        }
139
    }
140
141
    /**
142
     * @param \DateTime $DateComIn
143
     * @return \Gueststream\PMS\IQWare\API\cComments
144
     */
145
    public function setDateComIn(\DateTime $DateComIn)
146
    {
147
        $this->DateComIn = $DateComIn->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $DateComIn->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DateComIn.

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...
148
        return $this;
149
    }
150
151
    /**
152
     * @return int
153
     */
154
    public function getID_UserComIn()
155
    {
156
        return $this->ID_UserComIn;
157
    }
158
159
    /**
160
     * @param int $ID_UserComIn
161
     * @return \Gueststream\PMS\IQWare\API\cComments
162
     */
163
    public function setID_UserComIn($ID_UserComIn)
164
    {
165
        $this->ID_UserComIn = $ID_UserComIn;
166
        return $this;
167
    }
168
169
    /**
170
     * @return string
171
     */
172
    public function getUserNameComIn()
173
    {
174
        return $this->UserNameComIn;
175
    }
176
177
    /**
178
     * @param string $UserNameComIn
179
     * @return \Gueststream\PMS\IQWare\API\cComments
180
     */
181
    public function setUserNameComIn($UserNameComIn)
182
    {
183
        $this->UserNameComIn = $UserNameComIn;
184
        return $this;
185
    }
186
187
    /**
188
     * @return \DateTime
189
     */
190
    public function getDateComDelivered()
191
    {
192
        if ($this->DateComDelivered == null) {
193
            return null;
194
        } else {
195
            try {
196
                return new \DateTime($this->DateComDelivered);
197
            } catch (\Exception $e) {
198
                return false;
199
            }
200
        }
201
    }
202
203
    /**
204
     * @param \DateTime $DateComDelivered
205
     * @return \Gueststream\PMS\IQWare\API\cComments
206
     */
207
    public function setDateComDelivered(\DateTime $DateComDelivered)
208
    {
209
        $this->DateComDelivered = $DateComDelivered->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $DateComDelivered->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DateComDelivered.

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...
210
        return $this;
211
    }
212
213
    /**
214
     * @return int
215
     */
216
    public function getID_UserComDelivered()
217
    {
218
        return $this->ID_UserComDelivered;
219
    }
220
221
    /**
222
     * @param int $ID_UserComDelivered
223
     * @return \Gueststream\PMS\IQWare\API\cComments
224
     */
225
    public function setID_UserComDelivered($ID_UserComDelivered)
226
    {
227
        $this->ID_UserComDelivered = $ID_UserComDelivered;
228
        return $this;
229
    }
230
231
    /**
232
     * @return string
233
     */
234
    public function getUserNameComDelivered()
235
    {
236
        return $this->UserNameComDelivered;
237
    }
238
239
    /**
240
     * @param string $UserNameComDelivered
241
     * @return \Gueststream\PMS\IQWare\API\cComments
242
     */
243
    public function setUserNameComDelivered($UserNameComDelivered)
244
    {
245
        $this->UserNameComDelivered = $UserNameComDelivered;
246
        return $this;
247
    }
248
}
249