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/cCpyAccount.php (3 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 cCpyAccount
6
{
7
8
    /**
9
     * @var \DateTime $CreationDate
10
     */
11
    protected $CreationDate = null;
12
13
    /**
14
     * @var boolean $IsAR
15
     */
16
    protected $IsAR = null;
17
18
    /**
19
     * @var boolean $IsCashOnly
20
     */
21
    protected $IsCashOnly = null;
22
23
    /**
24
     * @var int $ID_CreditLimit
25
     */
26
    protected $ID_CreditLimit = null;
27
28
    /**
29
     * @var int $ID_TaxExemption
30
     */
31
    protected $ID_TaxExemption = null;
32
33
    /**
34
     * @var TInvoiceBillingType $InvoiceBillingType
35
     */
36
    protected $InvoiceBillingType = null;
37
38
    /**
39
     * @var string $TaxNo
40
     */
41
    protected $TaxNo = null;
42
43
    /**
44
     * @var string $TaxNo2
45
     */
46
    protected $TaxNo2 = null;
47
48
    /**
49
     * @var ArrayOfCFolioDist $FolioDist
50
     */
51
    protected $FolioDist = null;
52
53
    /**
54
     * @var ArrayOfCTransfer $Transfer
55
     */
56
    protected $Transfer = null;
57
58
    /**
59
     * @param \DateTime $CreationDate
60
     * @param boolean $IsAR
61
     * @param boolean $IsCashOnly
62
     * @param int $ID_CreditLimit
63
     * @param int $ID_TaxExemption
64
     * @param TInvoiceBillingType $InvoiceBillingType
65
     */
66 View Code Duplication
    public function __construct(\DateTime $CreationDate, $IsAR, $IsCashOnly, $ID_CreditLimit, $ID_TaxExemption, $InvoiceBillingType)
0 ignored issues
show
This method 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...
67
    {
68
        $this->CreationDate = $CreationDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $CreationDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $CreationDate.

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

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...
99
        return $this;
100
    }
101
102
    /**
103
     * @return boolean
104
     */
105
    public function getIsAR()
106
    {
107
        return $this->IsAR;
108
    }
109
110
    /**
111
     * @param boolean $IsAR
112
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
113
     */
114
    public function setIsAR($IsAR)
115
    {
116
        $this->IsAR = $IsAR;
117
        return $this;
118
    }
119
120
    /**
121
     * @return boolean
122
     */
123
    public function getIsCashOnly()
124
    {
125
        return $this->IsCashOnly;
126
    }
127
128
    /**
129
     * @param boolean $IsCashOnly
130
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
131
     */
132
    public function setIsCashOnly($IsCashOnly)
133
    {
134
        $this->IsCashOnly = $IsCashOnly;
135
        return $this;
136
    }
137
138
    /**
139
     * @return int
140
     */
141
    public function getID_CreditLimit()
142
    {
143
        return $this->ID_CreditLimit;
144
    }
145
146
    /**
147
     * @param int $ID_CreditLimit
148
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
149
     */
150
    public function setID_CreditLimit($ID_CreditLimit)
151
    {
152
        $this->ID_CreditLimit = $ID_CreditLimit;
153
        return $this;
154
    }
155
156
    /**
157
     * @return int
158
     */
159
    public function getID_TaxExemption()
160
    {
161
        return $this->ID_TaxExemption;
162
    }
163
164
    /**
165
     * @param int $ID_TaxExemption
166
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
167
     */
168
    public function setID_TaxExemption($ID_TaxExemption)
169
    {
170
        $this->ID_TaxExemption = $ID_TaxExemption;
171
        return $this;
172
    }
173
174
    /**
175
     * @return TInvoiceBillingType
176
     */
177
    public function getInvoiceBillingType()
178
    {
179
        return $this->InvoiceBillingType;
180
    }
181
182
    /**
183
     * @param TInvoiceBillingType $InvoiceBillingType
184
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
185
     */
186
    public function setInvoiceBillingType($InvoiceBillingType)
187
    {
188
        $this->InvoiceBillingType = $InvoiceBillingType;
189
        return $this;
190
    }
191
192
    /**
193
     * @return string
194
     */
195
    public function getTaxNo()
196
    {
197
        return $this->TaxNo;
198
    }
199
200
    /**
201
     * @param string $TaxNo
202
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
203
     */
204
    public function setTaxNo($TaxNo)
205
    {
206
        $this->TaxNo = $TaxNo;
207
        return $this;
208
    }
209
210
    /**
211
     * @return string
212
     */
213
    public function getTaxNo2()
214
    {
215
        return $this->TaxNo2;
216
    }
217
218
    /**
219
     * @param string $TaxNo2
220
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
221
     */
222
    public function setTaxNo2($TaxNo2)
223
    {
224
        $this->TaxNo2 = $TaxNo2;
225
        return $this;
226
    }
227
228
    /**
229
     * @return ArrayOfCFolioDist
230
     */
231
    public function getFolioDist()
232
    {
233
        return $this->FolioDist;
234
    }
235
236
    /**
237
     * @param ArrayOfCFolioDist $FolioDist
238
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
239
     */
240
    public function setFolioDist($FolioDist)
241
    {
242
        $this->FolioDist = $FolioDist;
243
        return $this;
244
    }
245
246
    /**
247
     * @return ArrayOfCTransfer
248
     */
249
    public function getTransfer()
250
    {
251
        return $this->Transfer;
252
    }
253
254
    /**
255
     * @param ArrayOfCTransfer $Transfer
256
     * @return \Gueststream\PMS\IQWare\API\cCpyAccount
257
     */
258
    public function setTransfer($Transfer)
259
    {
260
        $this->Transfer = $Transfer;
261
        return $this;
262
    }
263
}
264