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/PMSResaSearch.php (5 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 View Code Duplication
class PMSResaSearch
0 ignored issues
show
This class 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...
6
{
7
8
    /**
9
     * @var string $AccountNo
10
     */
11
    protected $AccountNo = null;
12
13
    /**
14
     * @var string $FirstName
15
     */
16
    protected $FirstName = null;
17
18
    /**
19
     * @var string $LastName
20
     */
21
    protected $LastName = null;
22
23
    /**
24
     * @var string $CompanyName
25
     */
26
    protected $CompanyName = null;
27
28
    /**
29
     * @var string $PhoneNo
30
     */
31
    protected $PhoneNo = null;
32
33
    /**
34
     * @var string $ClubMemberCardNo
35
     */
36
    protected $ClubMemberCardNo = null;
37
38
    /**
39
     * @var \DateTime $ArrivalDateMin
40
     */
41
    protected $ArrivalDateMin = null;
42
43
    /**
44
     * @var \DateTime $ArrivalDateMax
45
     */
46
    protected $ArrivalDateMax = null;
47
48
    /**
49
     * @var TSearchRigidity $SearchRigidity
50
     */
51
    protected $SearchRigidity = null;
52
53
    /**
54
     * @param string $AccountNo
55
     * @param string $FirstName
56
     * @param string $LastName
57
     * @param string $CompanyName
58
     * @param string $PhoneNo
59
     * @param string $ClubMemberCardNo
60
     * @param \DateTime $ArrivalDateMin
61
     * @param \DateTime $ArrivalDateMax
62
     * @param TSearchRigidity $SearchRigidity
63
     */
64
    public function __construct($AccountNo, $FirstName, $LastName, $CompanyName, $PhoneNo, $ClubMemberCardNo, \DateTime $ArrivalDateMin, \DateTime $ArrivalDateMax, $SearchRigidity)
65
    {
66
        $this->AccountNo = $AccountNo;
67
        $this->FirstName = $FirstName;
68
        $this->LastName = $LastName;
69
        $this->CompanyName = $CompanyName;
70
        $this->PhoneNo = $PhoneNo;
71
        $this->ClubMemberCardNo = $ClubMemberCardNo;
72
        $this->ArrivalDateMin = $ArrivalDateMin->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ArrivalDateMin->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ArrivalDateMin.

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

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...
74
        $this->SearchRigidity = $SearchRigidity;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getAccountNo()
81
    {
82
        return $this->AccountNo;
83
    }
84
85
    /**
86
     * @param string $AccountNo
87
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
88
     */
89
    public function setAccountNo($AccountNo)
90
    {
91
        $this->AccountNo = $AccountNo;
92
        return $this;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getFirstName()
99
    {
100
        return $this->FirstName;
101
    }
102
103
    /**
104
     * @param string $FirstName
105
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
106
     */
107
    public function setFirstName($FirstName)
108
    {
109
        $this->FirstName = $FirstName;
110
        return $this;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getLastName()
117
    {
118
        return $this->LastName;
119
    }
120
121
    /**
122
     * @param string $LastName
123
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
124
     */
125
    public function setLastName($LastName)
126
    {
127
        $this->LastName = $LastName;
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getCompanyName()
135
    {
136
        return $this->CompanyName;
137
    }
138
139
    /**
140
     * @param string $CompanyName
141
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
142
     */
143
    public function setCompanyName($CompanyName)
144
    {
145
        $this->CompanyName = $CompanyName;
146
        return $this;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getPhoneNo()
153
    {
154
        return $this->PhoneNo;
155
    }
156
157
    /**
158
     * @param string $PhoneNo
159
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
160
     */
161
    public function setPhoneNo($PhoneNo)
162
    {
163
        $this->PhoneNo = $PhoneNo;
164
        return $this;
165
    }
166
167
    /**
168
     * @return string
169
     */
170
    public function getClubMemberCardNo()
171
    {
172
        return $this->ClubMemberCardNo;
173
    }
174
175
    /**
176
     * @param string $ClubMemberCardNo
177
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
178
     */
179
    public function setClubMemberCardNo($ClubMemberCardNo)
180
    {
181
        $this->ClubMemberCardNo = $ClubMemberCardNo;
182
        return $this;
183
    }
184
185
    /**
186
     * @return \DateTime
187
     */
188
    public function getArrivalDateMin()
189
    {
190
        if ($this->ArrivalDateMin == null) {
191
            return null;
192
        } else {
193
            try {
194
                return new \DateTime($this->ArrivalDateMin);
195
            } catch (\Exception $e) {
196
                return false;
197
            }
198
        }
199
    }
200
201
    /**
202
     * @param \DateTime $ArrivalDateMin
203
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
204
     */
205
    public function setArrivalDateMin(\DateTime $ArrivalDateMin)
206
    {
207
        $this->ArrivalDateMin = $ArrivalDateMin->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ArrivalDateMin->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ArrivalDateMin.

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...
208
        return $this;
209
    }
210
211
    /**
212
     * @return \DateTime
213
     */
214
    public function getArrivalDateMax()
215
    {
216
        if ($this->ArrivalDateMax == null) {
217
            return null;
218
        } else {
219
            try {
220
                return new \DateTime($this->ArrivalDateMax);
221
            } catch (\Exception $e) {
222
                return false;
223
            }
224
        }
225
    }
226
227
    /**
228
     * @param \DateTime $ArrivalDateMax
229
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
230
     */
231
    public function setArrivalDateMax(\DateTime $ArrivalDateMax)
232
    {
233
        $this->ArrivalDateMax = $ArrivalDateMax->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ArrivalDateMax->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ArrivalDateMax.

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...
234
        return $this;
235
    }
236
237
    /**
238
     * @return TSearchRigidity
239
     */
240
    public function getSearchRigidity()
241
    {
242
        return $this->SearchRigidity;
243
    }
244
245
    /**
246
     * @param TSearchRigidity $SearchRigidity
247
     * @return \Gueststream\PMS\IQWare\API\PMSResaSearch
248
     */
249
    public function setSearchRigidity($SearchRigidity)
250
    {
251
        $this->SearchRigidity = $SearchRigidity;
252
        return $this;
253
    }
254
}
255