This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
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 cMemberAccount |
||
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 string $TaxNo3 |
||
50 | */ |
||
51 | protected $TaxNo3 = null; |
||
52 | |||
53 | /** |
||
54 | * @var ArrayOfCFolioDist $FolioDist |
||
55 | */ |
||
56 | protected $FolioDist = null; |
||
57 | |||
58 | /** |
||
59 | * @var ArrayOfCTransfer $Transfer |
||
60 | */ |
||
61 | protected $Transfer = null; |
||
62 | |||
63 | /** |
||
64 | * @param \DateTime $CreationDate |
||
65 | * @param boolean $IsAR |
||
66 | * @param boolean $IsCashOnly |
||
67 | * @param int $ID_CreditLimit |
||
68 | * @param int $ID_TaxExemption |
||
69 | * @param TInvoiceBillingType $InvoiceBillingType |
||
70 | */ |
||
71 | View Code Duplication | public function __construct(\DateTime $CreationDate, $IsAR, $IsCashOnly, $ID_CreditLimit, $ID_TaxExemption, $InvoiceBillingType) |
|
0 ignored issues
–
show
|
|||
72 | { |
||
73 | $this->CreationDate = $CreationDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
74 | $this->IsAR = $IsAR; |
||
75 | $this->IsCashOnly = $IsCashOnly; |
||
76 | $this->ID_CreditLimit = $ID_CreditLimit; |
||
77 | $this->ID_TaxExemption = $ID_TaxExemption; |
||
78 | $this->InvoiceBillingType = $InvoiceBillingType; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @return \DateTime |
||
83 | */ |
||
84 | public function getCreationDate() |
||
85 | { |
||
86 | if ($this->CreationDate == null) { |
||
87 | return null; |
||
88 | } else { |
||
89 | try { |
||
90 | return new \DateTime($this->CreationDate); |
||
91 | } catch (\Exception $e) { |
||
92 | return false; |
||
93 | } |
||
94 | } |
||
95 | } |
||
96 | |||
97 | /** |
||
98 | * @param \DateTime $CreationDate |
||
99 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
100 | */ |
||
101 | public function setCreationDate(\DateTime $CreationDate) |
||
102 | { |
||
103 | $this->CreationDate = $CreationDate->format(\DateTime::ATOM); |
||
0 ignored issues
–
show
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.. ![]() |
|||
104 | return $this; |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * @return boolean |
||
109 | */ |
||
110 | public function getIsAR() |
||
111 | { |
||
112 | return $this->IsAR; |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * @param boolean $IsAR |
||
117 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
118 | */ |
||
119 | public function setIsAR($IsAR) |
||
120 | { |
||
121 | $this->IsAR = $IsAR; |
||
122 | return $this; |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | * @return boolean |
||
127 | */ |
||
128 | public function getIsCashOnly() |
||
129 | { |
||
130 | return $this->IsCashOnly; |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * @param boolean $IsCashOnly |
||
135 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
136 | */ |
||
137 | public function setIsCashOnly($IsCashOnly) |
||
138 | { |
||
139 | $this->IsCashOnly = $IsCashOnly; |
||
140 | return $this; |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @return int |
||
145 | */ |
||
146 | public function getID_CreditLimit() |
||
147 | { |
||
148 | return $this->ID_CreditLimit; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @param int $ID_CreditLimit |
||
153 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
154 | */ |
||
155 | public function setID_CreditLimit($ID_CreditLimit) |
||
156 | { |
||
157 | $this->ID_CreditLimit = $ID_CreditLimit; |
||
158 | return $this; |
||
159 | } |
||
160 | |||
161 | /** |
||
162 | * @return int |
||
163 | */ |
||
164 | public function getID_TaxExemption() |
||
165 | { |
||
166 | return $this->ID_TaxExemption; |
||
167 | } |
||
168 | |||
169 | /** |
||
170 | * @param int $ID_TaxExemption |
||
171 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
172 | */ |
||
173 | public function setID_TaxExemption($ID_TaxExemption) |
||
174 | { |
||
175 | $this->ID_TaxExemption = $ID_TaxExemption; |
||
176 | return $this; |
||
177 | } |
||
178 | |||
179 | /** |
||
180 | * @return TInvoiceBillingType |
||
181 | */ |
||
182 | public function getInvoiceBillingType() |
||
183 | { |
||
184 | return $this->InvoiceBillingType; |
||
185 | } |
||
186 | |||
187 | /** |
||
188 | * @param TInvoiceBillingType $InvoiceBillingType |
||
189 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
190 | */ |
||
191 | public function setInvoiceBillingType($InvoiceBillingType) |
||
192 | { |
||
193 | $this->InvoiceBillingType = $InvoiceBillingType; |
||
194 | return $this; |
||
195 | } |
||
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | public function getTaxNo() |
||
201 | { |
||
202 | return $this->TaxNo; |
||
203 | } |
||
204 | |||
205 | /** |
||
206 | * @param string $TaxNo |
||
207 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
208 | */ |
||
209 | public function setTaxNo($TaxNo) |
||
210 | { |
||
211 | $this->TaxNo = $TaxNo; |
||
212 | return $this; |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * @return string |
||
217 | */ |
||
218 | public function getTaxNo2() |
||
219 | { |
||
220 | return $this->TaxNo2; |
||
221 | } |
||
222 | |||
223 | /** |
||
224 | * @param string $TaxNo2 |
||
225 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
226 | */ |
||
227 | public function setTaxNo2($TaxNo2) |
||
228 | { |
||
229 | $this->TaxNo2 = $TaxNo2; |
||
230 | return $this; |
||
231 | } |
||
232 | |||
233 | /** |
||
234 | * @return string |
||
235 | */ |
||
236 | public function getTaxNo3() |
||
237 | { |
||
238 | return $this->TaxNo3; |
||
239 | } |
||
240 | |||
241 | /** |
||
242 | * @param string $TaxNo3 |
||
243 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
244 | */ |
||
245 | public function setTaxNo3($TaxNo3) |
||
246 | { |
||
247 | $this->TaxNo3 = $TaxNo3; |
||
248 | return $this; |
||
249 | } |
||
250 | |||
251 | /** |
||
252 | * @return ArrayOfCFolioDist |
||
253 | */ |
||
254 | public function getFolioDist() |
||
255 | { |
||
256 | return $this->FolioDist; |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * @param ArrayOfCFolioDist $FolioDist |
||
261 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
262 | */ |
||
263 | public function setFolioDist($FolioDist) |
||
264 | { |
||
265 | $this->FolioDist = $FolioDist; |
||
266 | return $this; |
||
267 | } |
||
268 | |||
269 | /** |
||
270 | * @return ArrayOfCTransfer |
||
271 | */ |
||
272 | public function getTransfer() |
||
273 | { |
||
274 | return $this->Transfer; |
||
275 | } |
||
276 | |||
277 | /** |
||
278 | * @param ArrayOfCTransfer $Transfer |
||
279 | * @return \Gueststream\PMS\IQWare\API\cMemberAccount |
||
280 | */ |
||
281 | public function setTransfer($Transfer) |
||
282 | { |
||
283 | $this->Transfer = $Transfer; |
||
284 | return $this; |
||
285 | } |
||
286 | } |
||
287 |
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.