Total Complexity | 143 |
Total Lines | 1078 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like BusinessDossierV3 often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use BusinessDossierV3, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class BusinessDossierV3 extends AbstractStructBase |
||
13 | { |
||
14 | /** |
||
15 | * The RegisterLetter |
||
16 | * @var string |
||
17 | */ |
||
18 | public $RegisterLetter; |
||
19 | /** |
||
20 | * The DossierNo |
||
21 | * @var string |
||
22 | */ |
||
23 | public $DossierNo; |
||
24 | /** |
||
25 | * The SubDossierNo |
||
26 | * @var string |
||
27 | */ |
||
28 | public $SubDossierNo; |
||
29 | /** |
||
30 | * The ChamberNo |
||
31 | * @var string |
||
32 | */ |
||
33 | public $ChamberNo; |
||
34 | /** |
||
35 | * The Legalformcode |
||
36 | * @var string |
||
37 | */ |
||
38 | public $Legalformcode; |
||
39 | /** |
||
40 | * The LegalformcodeText |
||
41 | * @var string |
||
42 | */ |
||
43 | public $LegalformcodeText; |
||
44 | /** |
||
45 | * The PreviousDossierNo |
||
46 | * @var string |
||
47 | */ |
||
48 | public $PreviousDossierNo; |
||
49 | /** |
||
50 | * The PreviousSubDossierNo |
||
51 | * @var string |
||
52 | */ |
||
53 | public $PreviousSubDossierNo; |
||
54 | /** |
||
55 | * The Tradename45 |
||
56 | * @var string |
||
57 | */ |
||
58 | public $Tradename45; |
||
59 | /** |
||
60 | * The TradenameFull |
||
61 | * @var string |
||
62 | */ |
||
63 | public $TradenameFull; |
||
64 | /** |
||
65 | * The EstablishmentPostcode |
||
66 | * @var string |
||
67 | */ |
||
68 | public $EstablishmentPostcode; |
||
69 | /** |
||
70 | * The EstablishmentCity |
||
71 | * @var string |
||
72 | */ |
||
73 | public $EstablishmentCity; |
||
74 | /** |
||
75 | * The EstablishmentStreetname |
||
76 | * @var string |
||
77 | */ |
||
78 | public $EstablishmentStreetname; |
||
79 | /** |
||
80 | * The EstablishmentHouseNo |
||
81 | * @var int |
||
82 | */ |
||
83 | public $EstablishmentHouseNo; |
||
84 | /** |
||
85 | * The EstablishmentHouseNoAddition |
||
86 | * @var string |
||
87 | */ |
||
88 | public $EstablishmentHouseNoAddition; |
||
89 | /** |
||
90 | * The CorrespondencePostcode |
||
91 | * @var string |
||
92 | */ |
||
93 | public $CorrespondencePostcode; |
||
94 | /** |
||
95 | * The CorrespondenceCity |
||
96 | * @var string |
||
97 | */ |
||
98 | public $CorrespondenceCity; |
||
99 | /** |
||
100 | * The CorrespondenceStreetname |
||
101 | * @var string |
||
102 | */ |
||
103 | public $CorrespondenceStreetname; |
||
104 | /** |
||
105 | * The CorrespondenceHouseNo |
||
106 | * @var int |
||
107 | */ |
||
108 | public $CorrespondenceHouseNo; |
||
109 | /** |
||
110 | * The CorrespondenceHouseNoAddition |
||
111 | * @var string |
||
112 | */ |
||
113 | public $CorrespondenceHouseNoAddition; |
||
114 | /** |
||
115 | * The TelephoneNo |
||
116 | * @var string |
||
117 | */ |
||
118 | public $TelephoneNo; |
||
119 | /** |
||
120 | * The Domainname |
||
121 | * @var string |
||
122 | */ |
||
123 | public $Domainname; |
||
124 | /** |
||
125 | * The PrimarySBICode |
||
126 | * @var string |
||
127 | */ |
||
128 | public $PrimarySBICode; |
||
129 | /** |
||
130 | * The SecondarySBICode1 |
||
131 | * @var string |
||
132 | */ |
||
133 | public $SecondarySBICode1; |
||
134 | /** |
||
135 | * The SecondarySBICode2 |
||
136 | * @var string |
||
137 | */ |
||
138 | public $SecondarySBICode2; |
||
139 | /** |
||
140 | * The PrimarySBICodeText |
||
141 | * @var string |
||
142 | */ |
||
143 | public $PrimarySBICodeText; |
||
144 | /** |
||
145 | * The SecondarySBICode1Text |
||
146 | * @var string |
||
147 | */ |
||
148 | public $SecondarySBICode1Text; |
||
149 | /** |
||
150 | * The SecondarySBICode2Text |
||
151 | * @var string |
||
152 | */ |
||
153 | public $SecondarySBICode2Text; |
||
154 | /** |
||
155 | * The Personnel |
||
156 | * @var int |
||
157 | */ |
||
158 | public $Personnel; |
||
159 | /** |
||
160 | * The ClassPersonnel |
||
161 | * @var int |
||
162 | */ |
||
163 | public $ClassPersonnel; |
||
164 | /** |
||
165 | * The IndicationOrganisationcode |
||
166 | * @var string |
||
167 | */ |
||
168 | public $IndicationOrganisationcode; |
||
169 | /** |
||
170 | * The IndicationEconomicallyActive |
||
171 | * @var bool |
||
172 | */ |
||
173 | public $IndicationEconomicallyActive; |
||
174 | /** |
||
175 | * The IndicationNonMailing |
||
176 | * @var bool |
||
177 | */ |
||
178 | public $IndicationNonMailing; |
||
179 | /** |
||
180 | * The IndicationBankruptcy |
||
181 | * @var bool |
||
182 | */ |
||
183 | public $IndicationBankruptcy; |
||
184 | /** |
||
185 | * The IndicationDIP |
||
186 | * @var bool |
||
187 | */ |
||
188 | public $IndicationDIP; |
||
189 | /** |
||
190 | * Constructor method for BusinessDossierV3 |
||
191 | * @uses BusinessDossierV3::setRegisterLetter() |
||
192 | * @uses BusinessDossierV3::setDossierNo() |
||
193 | * @uses BusinessDossierV3::setSubDossierNo() |
||
194 | * @uses BusinessDossierV3::setChamberNo() |
||
195 | * @uses BusinessDossierV3::setLegalformcode() |
||
196 | * @uses BusinessDossierV3::setLegalformcodeText() |
||
197 | * @uses BusinessDossierV3::setPreviousDossierNo() |
||
198 | * @uses BusinessDossierV3::setPreviousSubDossierNo() |
||
199 | * @uses BusinessDossierV3::setTradename45() |
||
200 | * @uses BusinessDossierV3::setTradenameFull() |
||
201 | * @uses BusinessDossierV3::setEstablishmentPostcode() |
||
202 | * @uses BusinessDossierV3::setEstablishmentCity() |
||
203 | * @uses BusinessDossierV3::setEstablishmentStreetname() |
||
204 | * @uses BusinessDossierV3::setEstablishmentHouseNo() |
||
205 | * @uses BusinessDossierV3::setEstablishmentHouseNoAddition() |
||
206 | * @uses BusinessDossierV3::setCorrespondencePostcode() |
||
207 | * @uses BusinessDossierV3::setCorrespondenceCity() |
||
208 | * @uses BusinessDossierV3::setCorrespondenceStreetname() |
||
209 | * @uses BusinessDossierV3::setCorrespondenceHouseNo() |
||
210 | * @uses BusinessDossierV3::setCorrespondenceHouseNoAddition() |
||
211 | * @uses BusinessDossierV3::setTelephoneNo() |
||
212 | * @uses BusinessDossierV3::setDomainname() |
||
213 | * @uses BusinessDossierV3::setPrimarySBICode() |
||
214 | * @uses BusinessDossierV3::setSecondarySBICode1() |
||
215 | * @uses BusinessDossierV3::setSecondarySBICode2() |
||
216 | * @uses BusinessDossierV3::setPrimarySBICodeText() |
||
217 | * @uses BusinessDossierV3::setSecondarySBICode1Text() |
||
218 | * @uses BusinessDossierV3::setSecondarySBICode2Text() |
||
219 | * @uses BusinessDossierV3::setPersonnel() |
||
220 | * @uses BusinessDossierV3::setClassPersonnel() |
||
221 | * @uses BusinessDossierV3::setIndicationOrganisationcode() |
||
222 | * @uses BusinessDossierV3::setIndicationEconomicallyActive() |
||
223 | * @uses BusinessDossierV3::setIndicationNonMailing() |
||
224 | * @uses BusinessDossierV3::setIndicationBankruptcy() |
||
225 | * @uses BusinessDossierV3::setIndicationDIP() |
||
226 | * @param string $registerLetter |
||
227 | * @param string $dossierNo |
||
228 | * @param string $subDossierNo |
||
229 | * @param string $chamberNo |
||
230 | * @param string $legalformcode |
||
231 | * @param string $legalformcodeText |
||
232 | * @param string $previousDossierNo |
||
233 | * @param string $previousSubDossierNo |
||
234 | * @param string $tradename45 |
||
235 | * @param string $tradenameFull |
||
236 | * @param string $establishmentPostcode |
||
237 | * @param string $establishmentCity |
||
238 | * @param string $establishmentStreetname |
||
239 | * @param int $establishmentHouseNo |
||
240 | * @param string $establishmentHouseNoAddition |
||
241 | * @param string $correspondencePostcode |
||
242 | * @param string $correspondenceCity |
||
243 | * @param string $correspondenceStreetname |
||
244 | * @param int $correspondenceHouseNo |
||
245 | * @param string $correspondenceHouseNoAddition |
||
246 | * @param string $telephoneNo |
||
247 | * @param string $domainname |
||
248 | * @param string $primarySBICode |
||
249 | * @param string $secondarySBICode1 |
||
250 | * @param string $secondarySBICode2 |
||
251 | * @param string $primarySBICodeText |
||
252 | * @param string $secondarySBICode1Text |
||
253 | * @param string $secondarySBICode2Text |
||
254 | * @param int $personnel |
||
255 | * @param int $classPersonnel |
||
256 | * @param string $indicationOrganisationcode |
||
257 | * @param bool $indicationEconomicallyActive |
||
258 | * @param bool $indicationNonMailing |
||
259 | * @param bool $indicationBankruptcy |
||
260 | * @param bool $indicationDIP |
||
261 | */ |
||
262 | public function __construct($registerLetter = null, $dossierNo = null, $subDossierNo = null, $chamberNo = null, $legalformcode = null, $legalformcodeText = null, $previousDossierNo = null, $previousSubDossierNo = null, $tradename45 = null, $tradenameFull = null, $establishmentPostcode = null, $establishmentCity = null, $establishmentStreetname = null, $establishmentHouseNo = null, $establishmentHouseNoAddition = null, $correspondencePostcode = null, $correspondenceCity = null, $correspondenceStreetname = null, $correspondenceHouseNo = null, $correspondenceHouseNoAddition = null, $telephoneNo = null, $domainname = null, $primarySBICode = null, $secondarySBICode1 = null, $secondarySBICode2 = null, $primarySBICodeText = null, $secondarySBICode1Text = null, $secondarySBICode2Text = null, $personnel = null, $classPersonnel = null, $indicationOrganisationcode = null, $indicationEconomicallyActive = null, $indicationNonMailing = null, $indicationBankruptcy = null, $indicationDIP = null) |
||
263 | { |
||
264 | $this |
||
265 | ->setRegisterLetter($registerLetter) |
||
266 | ->setDossierNo($dossierNo) |
||
267 | ->setSubDossierNo($subDossierNo) |
||
268 | ->setChamberNo($chamberNo) |
||
269 | ->setLegalformcode($legalformcode) |
||
270 | ->setLegalformcodeText($legalformcodeText) |
||
271 | ->setPreviousDossierNo($previousDossierNo) |
||
272 | ->setPreviousSubDossierNo($previousSubDossierNo) |
||
273 | ->setTradename45($tradename45) |
||
274 | ->setTradenameFull($tradenameFull) |
||
275 | ->setEstablishmentPostcode($establishmentPostcode) |
||
276 | ->setEstablishmentCity($establishmentCity) |
||
277 | ->setEstablishmentStreetname($establishmentStreetname) |
||
278 | ->setEstablishmentHouseNo($establishmentHouseNo) |
||
279 | ->setEstablishmentHouseNoAddition($establishmentHouseNoAddition) |
||
280 | ->setCorrespondencePostcode($correspondencePostcode) |
||
281 | ->setCorrespondenceCity($correspondenceCity) |
||
282 | ->setCorrespondenceStreetname($correspondenceStreetname) |
||
283 | ->setCorrespondenceHouseNo($correspondenceHouseNo) |
||
284 | ->setCorrespondenceHouseNoAddition($correspondenceHouseNoAddition) |
||
285 | ->setTelephoneNo($telephoneNo) |
||
286 | ->setDomainname($domainname) |
||
287 | ->setPrimarySBICode($primarySBICode) |
||
288 | ->setSecondarySBICode1($secondarySBICode1) |
||
289 | ->setSecondarySBICode2($secondarySBICode2) |
||
290 | ->setPrimarySBICodeText($primarySBICodeText) |
||
291 | ->setSecondarySBICode1Text($secondarySBICode1Text) |
||
292 | ->setSecondarySBICode2Text($secondarySBICode2Text) |
||
293 | ->setPersonnel($personnel) |
||
294 | ->setClassPersonnel($classPersonnel) |
||
295 | ->setIndicationOrganisationcode($indicationOrganisationcode) |
||
296 | ->setIndicationEconomicallyActive($indicationEconomicallyActive) |
||
297 | ->setIndicationNonMailing($indicationNonMailing) |
||
298 | ->setIndicationBankruptcy($indicationBankruptcy) |
||
299 | ->setIndicationDIP($indicationDIP); |
||
300 | } |
||
301 | /** |
||
302 | * Get RegisterLetter value |
||
303 | * @return string|null |
||
304 | */ |
||
305 | public function getRegisterLetter() |
||
306 | { |
||
307 | return $this->RegisterLetter; |
||
308 | } |
||
309 | /** |
||
310 | * Set RegisterLetter value |
||
311 | * @param string $registerLetter |
||
312 | * @return \Webservices\StructType\BusinessDossierV3 |
||
313 | */ |
||
314 | public function setRegisterLetter($registerLetter = null) |
||
315 | { |
||
316 | // validation for constraint: string |
||
317 | if (!is_null($registerLetter) && !is_string($registerLetter)) { |
||
|
|||
318 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($registerLetter)), __LINE__); |
||
319 | } |
||
320 | $this->RegisterLetter = $registerLetter; |
||
321 | return $this; |
||
322 | } |
||
323 | /** |
||
324 | * Get DossierNo value |
||
325 | * @return string|null |
||
326 | */ |
||
327 | public function getDossierNo() |
||
328 | { |
||
329 | return $this->DossierNo; |
||
330 | } |
||
331 | /** |
||
332 | * Set DossierNo value |
||
333 | * @param string $dossierNo |
||
334 | * @return \Webservices\StructType\BusinessDossierV3 |
||
335 | */ |
||
336 | public function setDossierNo($dossierNo = null) |
||
337 | { |
||
338 | // validation for constraint: string |
||
339 | if (!is_null($dossierNo) && !is_string($dossierNo)) { |
||
340 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($dossierNo)), __LINE__); |
||
341 | } |
||
342 | $this->DossierNo = $dossierNo; |
||
343 | return $this; |
||
344 | } |
||
345 | /** |
||
346 | * Get SubDossierNo value |
||
347 | * @return string|null |
||
348 | */ |
||
349 | public function getSubDossierNo() |
||
350 | { |
||
351 | return $this->SubDossierNo; |
||
352 | } |
||
353 | /** |
||
354 | * Set SubDossierNo value |
||
355 | * @param string $subDossierNo |
||
356 | * @return \Webservices\StructType\BusinessDossierV3 |
||
357 | */ |
||
358 | public function setSubDossierNo($subDossierNo = null) |
||
359 | { |
||
360 | // validation for constraint: string |
||
361 | if (!is_null($subDossierNo) && !is_string($subDossierNo)) { |
||
362 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($subDossierNo)), __LINE__); |
||
363 | } |
||
364 | $this->SubDossierNo = $subDossierNo; |
||
365 | return $this; |
||
366 | } |
||
367 | /** |
||
368 | * Get ChamberNo value |
||
369 | * @return string|null |
||
370 | */ |
||
371 | public function getChamberNo() |
||
372 | { |
||
373 | return $this->ChamberNo; |
||
374 | } |
||
375 | /** |
||
376 | * Set ChamberNo value |
||
377 | * @param string $chamberNo |
||
378 | * @return \Webservices\StructType\BusinessDossierV3 |
||
379 | */ |
||
380 | public function setChamberNo($chamberNo = null) |
||
388 | } |
||
389 | /** |
||
390 | * Get Legalformcode value |
||
391 | * @return string|null |
||
392 | */ |
||
393 | public function getLegalformcode() |
||
394 | { |
||
395 | return $this->Legalformcode; |
||
396 | } |
||
397 | /** |
||
398 | * Set Legalformcode value |
||
399 | * @param string $legalformcode |
||
400 | * @return \Webservices\StructType\BusinessDossierV3 |
||
401 | */ |
||
402 | public function setLegalformcode($legalformcode = null) |
||
403 | { |
||
404 | // validation for constraint: string |
||
405 | if (!is_null($legalformcode) && !is_string($legalformcode)) { |
||
406 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($legalformcode)), __LINE__); |
||
407 | } |
||
408 | $this->Legalformcode = $legalformcode; |
||
409 | return $this; |
||
410 | } |
||
411 | /** |
||
412 | * Get LegalformcodeText value |
||
413 | * @return string|null |
||
414 | */ |
||
415 | public function getLegalformcodeText() |
||
416 | { |
||
417 | return $this->LegalformcodeText; |
||
418 | } |
||
419 | /** |
||
420 | * Set LegalformcodeText value |
||
421 | * @param string $legalformcodeText |
||
422 | * @return \Webservices\StructType\BusinessDossierV3 |
||
423 | */ |
||
424 | public function setLegalformcodeText($legalformcodeText = null) |
||
425 | { |
||
426 | // validation for constraint: string |
||
427 | if (!is_null($legalformcodeText) && !is_string($legalformcodeText)) { |
||
428 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($legalformcodeText)), __LINE__); |
||
429 | } |
||
430 | $this->LegalformcodeText = $legalformcodeText; |
||
431 | return $this; |
||
432 | } |
||
433 | /** |
||
434 | * Get PreviousDossierNo value |
||
435 | * @return string|null |
||
436 | */ |
||
437 | public function getPreviousDossierNo() |
||
438 | { |
||
439 | return $this->PreviousDossierNo; |
||
440 | } |
||
441 | /** |
||
442 | * Set PreviousDossierNo value |
||
443 | * @param string $previousDossierNo |
||
444 | * @return \Webservices\StructType\BusinessDossierV3 |
||
445 | */ |
||
446 | public function setPreviousDossierNo($previousDossierNo = null) |
||
447 | { |
||
448 | // validation for constraint: string |
||
449 | if (!is_null($previousDossierNo) && !is_string($previousDossierNo)) { |
||
450 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($previousDossierNo)), __LINE__); |
||
451 | } |
||
452 | $this->PreviousDossierNo = $previousDossierNo; |
||
453 | return $this; |
||
454 | } |
||
455 | /** |
||
456 | * Get PreviousSubDossierNo value |
||
457 | * @return string|null |
||
458 | */ |
||
459 | public function getPreviousSubDossierNo() |
||
460 | { |
||
461 | return $this->PreviousSubDossierNo; |
||
462 | } |
||
463 | /** |
||
464 | * Set PreviousSubDossierNo value |
||
465 | * @param string $previousSubDossierNo |
||
466 | * @return \Webservices\StructType\BusinessDossierV3 |
||
467 | */ |
||
468 | public function setPreviousSubDossierNo($previousSubDossierNo = null) |
||
469 | { |
||
470 | // validation for constraint: string |
||
471 | if (!is_null($previousSubDossierNo) && !is_string($previousSubDossierNo)) { |
||
472 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($previousSubDossierNo)), __LINE__); |
||
473 | } |
||
474 | $this->PreviousSubDossierNo = $previousSubDossierNo; |
||
475 | return $this; |
||
476 | } |
||
477 | /** |
||
478 | * Get Tradename45 value |
||
479 | * @return string|null |
||
480 | */ |
||
481 | public function getTradename45() |
||
482 | { |
||
483 | return $this->Tradename45; |
||
484 | } |
||
485 | /** |
||
486 | * Set Tradename45 value |
||
487 | * @param string $tradename45 |
||
488 | * @return \Webservices\StructType\BusinessDossierV3 |
||
489 | */ |
||
490 | public function setTradename45($tradename45 = null) |
||
491 | { |
||
492 | // validation for constraint: string |
||
493 | if (!is_null($tradename45) && !is_string($tradename45)) { |
||
494 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($tradename45)), __LINE__); |
||
495 | } |
||
496 | $this->Tradename45 = $tradename45; |
||
497 | return $this; |
||
498 | } |
||
499 | /** |
||
500 | * Get TradenameFull value |
||
501 | * @return string|null |
||
502 | */ |
||
503 | public function getTradenameFull() |
||
504 | { |
||
505 | return $this->TradenameFull; |
||
506 | } |
||
507 | /** |
||
508 | * Set TradenameFull value |
||
509 | * @param string $tradenameFull |
||
510 | * @return \Webservices\StructType\BusinessDossierV3 |
||
511 | */ |
||
512 | public function setTradenameFull($tradenameFull = null) |
||
513 | { |
||
514 | // validation for constraint: string |
||
515 | if (!is_null($tradenameFull) && !is_string($tradenameFull)) { |
||
516 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($tradenameFull)), __LINE__); |
||
517 | } |
||
518 | $this->TradenameFull = $tradenameFull; |
||
519 | return $this; |
||
520 | } |
||
521 | /** |
||
522 | * Get EstablishmentPostcode value |
||
523 | * @return string|null |
||
524 | */ |
||
525 | public function getEstablishmentPostcode() |
||
526 | { |
||
527 | return $this->EstablishmentPostcode; |
||
528 | } |
||
529 | /** |
||
530 | * Set EstablishmentPostcode value |
||
531 | * @param string $establishmentPostcode |
||
532 | * @return \Webservices\StructType\BusinessDossierV3 |
||
533 | */ |
||
534 | public function setEstablishmentPostcode($establishmentPostcode = null) |
||
535 | { |
||
536 | // validation for constraint: string |
||
537 | if (!is_null($establishmentPostcode) && !is_string($establishmentPostcode)) { |
||
538 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishmentPostcode)), __LINE__); |
||
539 | } |
||
540 | $this->EstablishmentPostcode = $establishmentPostcode; |
||
541 | return $this; |
||
542 | } |
||
543 | /** |
||
544 | * Get EstablishmentCity value |
||
545 | * @return string|null |
||
546 | */ |
||
547 | public function getEstablishmentCity() |
||
550 | } |
||
551 | /** |
||
552 | * Set EstablishmentCity value |
||
553 | * @param string $establishmentCity |
||
554 | * @return \Webservices\StructType\BusinessDossierV3 |
||
555 | */ |
||
556 | public function setEstablishmentCity($establishmentCity = null) |
||
557 | { |
||
558 | // validation for constraint: string |
||
559 | if (!is_null($establishmentCity) && !is_string($establishmentCity)) { |
||
560 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishmentCity)), __LINE__); |
||
561 | } |
||
562 | $this->EstablishmentCity = $establishmentCity; |
||
563 | return $this; |
||
564 | } |
||
565 | /** |
||
566 | * Get EstablishmentStreetname value |
||
567 | * @return string|null |
||
568 | */ |
||
569 | public function getEstablishmentStreetname() |
||
570 | { |
||
571 | return $this->EstablishmentStreetname; |
||
572 | } |
||
573 | /** |
||
574 | * Set EstablishmentStreetname value |
||
575 | * @param string $establishmentStreetname |
||
576 | * @return \Webservices\StructType\BusinessDossierV3 |
||
577 | */ |
||
578 | public function setEstablishmentStreetname($establishmentStreetname = null) |
||
579 | { |
||
580 | // validation for constraint: string |
||
581 | if (!is_null($establishmentStreetname) && !is_string($establishmentStreetname)) { |
||
582 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishmentStreetname)), __LINE__); |
||
583 | } |
||
584 | $this->EstablishmentStreetname = $establishmentStreetname; |
||
585 | return $this; |
||
586 | } |
||
587 | /** |
||
588 | * Get EstablishmentHouseNo value |
||
589 | * @return int|null |
||
590 | */ |
||
591 | public function getEstablishmentHouseNo() |
||
592 | { |
||
593 | return $this->EstablishmentHouseNo; |
||
594 | } |
||
595 | /** |
||
596 | * Set EstablishmentHouseNo value |
||
597 | * @param int $establishmentHouseNo |
||
598 | * @return \Webservices\StructType\BusinessDossierV3 |
||
599 | */ |
||
600 | public function setEstablishmentHouseNo($establishmentHouseNo = null) |
||
601 | { |
||
602 | // validation for constraint: int |
||
603 | if (!is_null($establishmentHouseNo) && !is_numeric($establishmentHouseNo)) { |
||
604 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($establishmentHouseNo)), __LINE__); |
||
605 | } |
||
606 | $this->EstablishmentHouseNo = $establishmentHouseNo; |
||
607 | return $this; |
||
608 | } |
||
609 | /** |
||
610 | * Get EstablishmentHouseNoAddition value |
||
611 | * @return string|null |
||
612 | */ |
||
613 | public function getEstablishmentHouseNoAddition() |
||
614 | { |
||
615 | return $this->EstablishmentHouseNoAddition; |
||
616 | } |
||
617 | /** |
||
618 | * Set EstablishmentHouseNoAddition value |
||
619 | * @param string $establishmentHouseNoAddition |
||
620 | * @return \Webservices\StructType\BusinessDossierV3 |
||
621 | */ |
||
622 | public function setEstablishmentHouseNoAddition($establishmentHouseNoAddition = null) |
||
623 | { |
||
624 | // validation for constraint: string |
||
625 | if (!is_null($establishmentHouseNoAddition) && !is_string($establishmentHouseNoAddition)) { |
||
626 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishmentHouseNoAddition)), __LINE__); |
||
627 | } |
||
628 | $this->EstablishmentHouseNoAddition = $establishmentHouseNoAddition; |
||
629 | return $this; |
||
630 | } |
||
631 | /** |
||
632 | * Get CorrespondencePostcode value |
||
633 | * @return string|null |
||
634 | */ |
||
635 | public function getCorrespondencePostcode() |
||
636 | { |
||
637 | return $this->CorrespondencePostcode; |
||
638 | } |
||
639 | /** |
||
640 | * Set CorrespondencePostcode value |
||
641 | * @param string $correspondencePostcode |
||
642 | * @return \Webservices\StructType\BusinessDossierV3 |
||
643 | */ |
||
644 | public function setCorrespondencePostcode($correspondencePostcode = null) |
||
645 | { |
||
646 | // validation for constraint: string |
||
647 | if (!is_null($correspondencePostcode) && !is_string($correspondencePostcode)) { |
||
648 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondencePostcode)), __LINE__); |
||
649 | } |
||
650 | $this->CorrespondencePostcode = $correspondencePostcode; |
||
651 | return $this; |
||
652 | } |
||
653 | /** |
||
654 | * Get CorrespondenceCity value |
||
655 | * @return string|null |
||
656 | */ |
||
657 | public function getCorrespondenceCity() |
||
658 | { |
||
659 | return $this->CorrespondenceCity; |
||
660 | } |
||
661 | /** |
||
662 | * Set CorrespondenceCity value |
||
663 | * @param string $correspondenceCity |
||
664 | * @return \Webservices\StructType\BusinessDossierV3 |
||
665 | */ |
||
666 | public function setCorrespondenceCity($correspondenceCity = null) |
||
667 | { |
||
668 | // validation for constraint: string |
||
669 | if (!is_null($correspondenceCity) && !is_string($correspondenceCity)) { |
||
670 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondenceCity)), __LINE__); |
||
671 | } |
||
672 | $this->CorrespondenceCity = $correspondenceCity; |
||
673 | return $this; |
||
674 | } |
||
675 | /** |
||
676 | * Get CorrespondenceStreetname value |
||
677 | * @return string|null |
||
678 | */ |
||
679 | public function getCorrespondenceStreetname() |
||
680 | { |
||
681 | return $this->CorrespondenceStreetname; |
||
682 | } |
||
683 | /** |
||
684 | * Set CorrespondenceStreetname value |
||
685 | * @param string $correspondenceStreetname |
||
686 | * @return \Webservices\StructType\BusinessDossierV3 |
||
687 | */ |
||
688 | public function setCorrespondenceStreetname($correspondenceStreetname = null) |
||
689 | { |
||
690 | // validation for constraint: string |
||
691 | if (!is_null($correspondenceStreetname) && !is_string($correspondenceStreetname)) { |
||
692 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondenceStreetname)), __LINE__); |
||
693 | } |
||
694 | $this->CorrespondenceStreetname = $correspondenceStreetname; |
||
695 | return $this; |
||
696 | } |
||
697 | /** |
||
698 | * Get CorrespondenceHouseNo value |
||
699 | * @return int|null |
||
700 | */ |
||
701 | public function getCorrespondenceHouseNo() |
||
702 | { |
||
703 | return $this->CorrespondenceHouseNo; |
||
704 | } |
||
705 | /** |
||
706 | * Set CorrespondenceHouseNo value |
||
707 | * @param int $correspondenceHouseNo |
||
708 | * @return \Webservices\StructType\BusinessDossierV3 |
||
709 | */ |
||
710 | public function setCorrespondenceHouseNo($correspondenceHouseNo = null) |
||
711 | { |
||
712 | // validation for constraint: int |
||
713 | if (!is_null($correspondenceHouseNo) && !is_numeric($correspondenceHouseNo)) { |
||
714 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($correspondenceHouseNo)), __LINE__); |
||
715 | } |
||
716 | $this->CorrespondenceHouseNo = $correspondenceHouseNo; |
||
717 | return $this; |
||
718 | } |
||
719 | /** |
||
720 | * Get CorrespondenceHouseNoAddition value |
||
721 | * @return string|null |
||
722 | */ |
||
723 | public function getCorrespondenceHouseNoAddition() |
||
724 | { |
||
725 | return $this->CorrespondenceHouseNoAddition; |
||
726 | } |
||
727 | /** |
||
728 | * Set CorrespondenceHouseNoAddition value |
||
729 | * @param string $correspondenceHouseNoAddition |
||
730 | * @return \Webservices\StructType\BusinessDossierV3 |
||
731 | */ |
||
732 | public function setCorrespondenceHouseNoAddition($correspondenceHouseNoAddition = null) |
||
733 | { |
||
734 | // validation for constraint: string |
||
735 | if (!is_null($correspondenceHouseNoAddition) && !is_string($correspondenceHouseNoAddition)) { |
||
736 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondenceHouseNoAddition)), __LINE__); |
||
737 | } |
||
738 | $this->CorrespondenceHouseNoAddition = $correspondenceHouseNoAddition; |
||
739 | return $this; |
||
740 | } |
||
741 | /** |
||
742 | * Get TelephoneNo value |
||
743 | * @return string|null |
||
744 | */ |
||
745 | public function getTelephoneNo() |
||
746 | { |
||
747 | return $this->TelephoneNo; |
||
748 | } |
||
749 | /** |
||
750 | * Set TelephoneNo value |
||
751 | * @param string $telephoneNo |
||
752 | * @return \Webservices\StructType\BusinessDossierV3 |
||
753 | */ |
||
754 | public function setTelephoneNo($telephoneNo = null) |
||
755 | { |
||
756 | // validation for constraint: string |
||
757 | if (!is_null($telephoneNo) && !is_string($telephoneNo)) { |
||
758 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($telephoneNo)), __LINE__); |
||
759 | } |
||
760 | $this->TelephoneNo = $telephoneNo; |
||
761 | return $this; |
||
762 | } |
||
763 | /** |
||
764 | * Get Domainname value |
||
765 | * @return string|null |
||
766 | */ |
||
767 | public function getDomainname() |
||
768 | { |
||
769 | return $this->Domainname; |
||
770 | } |
||
771 | /** |
||
772 | * Set Domainname value |
||
773 | * @param string $domainname |
||
774 | * @return \Webservices\StructType\BusinessDossierV3 |
||
775 | */ |
||
776 | public function setDomainname($domainname = null) |
||
777 | { |
||
778 | // validation for constraint: string |
||
779 | if (!is_null($domainname) && !is_string($domainname)) { |
||
780 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($domainname)), __LINE__); |
||
781 | } |
||
782 | $this->Domainname = $domainname; |
||
783 | return $this; |
||
784 | } |
||
785 | /** |
||
786 | * Get PrimarySBICode value |
||
787 | * @return string|null |
||
788 | */ |
||
789 | public function getPrimarySBICode() |
||
790 | { |
||
791 | return $this->PrimarySBICode; |
||
792 | } |
||
793 | /** |
||
794 | * Set PrimarySBICode value |
||
795 | * @param string $primarySBICode |
||
796 | * @return \Webservices\StructType\BusinessDossierV3 |
||
797 | */ |
||
798 | public function setPrimarySBICode($primarySBICode = null) |
||
799 | { |
||
800 | // validation for constraint: string |
||
801 | if (!is_null($primarySBICode) && !is_string($primarySBICode)) { |
||
802 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($primarySBICode)), __LINE__); |
||
803 | } |
||
804 | $this->PrimarySBICode = $primarySBICode; |
||
805 | return $this; |
||
806 | } |
||
807 | /** |
||
808 | * Get SecondarySBICode1 value |
||
809 | * @return string|null |
||
810 | */ |
||
811 | public function getSecondarySBICode1() |
||
814 | } |
||
815 | /** |
||
816 | * Set SecondarySBICode1 value |
||
817 | * @param string $secondarySBICode1 |
||
818 | * @return \Webservices\StructType\BusinessDossierV3 |
||
819 | */ |
||
820 | public function setSecondarySBICode1($secondarySBICode1 = null) |
||
821 | { |
||
822 | // validation for constraint: string |
||
823 | if (!is_null($secondarySBICode1) && !is_string($secondarySBICode1)) { |
||
824 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($secondarySBICode1)), __LINE__); |
||
825 | } |
||
826 | $this->SecondarySBICode1 = $secondarySBICode1; |
||
827 | return $this; |
||
828 | } |
||
829 | /** |
||
830 | * Get SecondarySBICode2 value |
||
831 | * @return string|null |
||
832 | */ |
||
833 | public function getSecondarySBICode2() |
||
836 | } |
||
837 | /** |
||
838 | * Set SecondarySBICode2 value |
||
839 | * @param string $secondarySBICode2 |
||
840 | * @return \Webservices\StructType\BusinessDossierV3 |
||
841 | */ |
||
842 | public function setSecondarySBICode2($secondarySBICode2 = null) |
||
843 | { |
||
844 | // validation for constraint: string |
||
845 | if (!is_null($secondarySBICode2) && !is_string($secondarySBICode2)) { |
||
846 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($secondarySBICode2)), __LINE__); |
||
847 | } |
||
848 | $this->SecondarySBICode2 = $secondarySBICode2; |
||
849 | return $this; |
||
850 | } |
||
851 | /** |
||
852 | * Get PrimarySBICodeText value |
||
853 | * @return string|null |
||
854 | */ |
||
855 | public function getPrimarySBICodeText() |
||
856 | { |
||
857 | return $this->PrimarySBICodeText; |
||
858 | } |
||
859 | /** |
||
860 | * Set PrimarySBICodeText value |
||
861 | * @param string $primarySBICodeText |
||
862 | * @return \Webservices\StructType\BusinessDossierV3 |
||
863 | */ |
||
864 | public function setPrimarySBICodeText($primarySBICodeText = null) |
||
865 | { |
||
866 | // validation for constraint: string |
||
867 | if (!is_null($primarySBICodeText) && !is_string($primarySBICodeText)) { |
||
868 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($primarySBICodeText)), __LINE__); |
||
869 | } |
||
870 | $this->PrimarySBICodeText = $primarySBICodeText; |
||
871 | return $this; |
||
872 | } |
||
873 | /** |
||
874 | * Get SecondarySBICode1Text value |
||
875 | * @return string|null |
||
876 | */ |
||
877 | public function getSecondarySBICode1Text() |
||
880 | } |
||
881 | /** |
||
882 | * Set SecondarySBICode1Text value |
||
883 | * @param string $secondarySBICode1Text |
||
884 | * @return \Webservices\StructType\BusinessDossierV3 |
||
885 | */ |
||
886 | public function setSecondarySBICode1Text($secondarySBICode1Text = null) |
||
887 | { |
||
888 | // validation for constraint: string |
||
889 | if (!is_null($secondarySBICode1Text) && !is_string($secondarySBICode1Text)) { |
||
890 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($secondarySBICode1Text)), __LINE__); |
||
891 | } |
||
892 | $this->SecondarySBICode1Text = $secondarySBICode1Text; |
||
893 | return $this; |
||
894 | } |
||
895 | /** |
||
896 | * Get SecondarySBICode2Text value |
||
897 | * @return string|null |
||
898 | */ |
||
899 | public function getSecondarySBICode2Text() |
||
900 | { |
||
901 | return $this->SecondarySBICode2Text; |
||
902 | } |
||
903 | /** |
||
904 | * Set SecondarySBICode2Text value |
||
905 | * @param string $secondarySBICode2Text |
||
906 | * @return \Webservices\StructType\BusinessDossierV3 |
||
907 | */ |
||
908 | public function setSecondarySBICode2Text($secondarySBICode2Text = null) |
||
909 | { |
||
910 | // validation for constraint: string |
||
911 | if (!is_null($secondarySBICode2Text) && !is_string($secondarySBICode2Text)) { |
||
912 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($secondarySBICode2Text)), __LINE__); |
||
913 | } |
||
914 | $this->SecondarySBICode2Text = $secondarySBICode2Text; |
||
915 | return $this; |
||
916 | } |
||
917 | /** |
||
918 | * Get Personnel value |
||
919 | * @return int|null |
||
920 | */ |
||
921 | public function getPersonnel() |
||
922 | { |
||
923 | return $this->Personnel; |
||
924 | } |
||
925 | /** |
||
926 | * Set Personnel value |
||
927 | * @param int $personnel |
||
928 | * @return \Webservices\StructType\BusinessDossierV3 |
||
929 | */ |
||
930 | public function setPersonnel($personnel = null) |
||
931 | { |
||
932 | // validation for constraint: int |
||
933 | if (!is_null($personnel) && !is_numeric($personnel)) { |
||
934 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($personnel)), __LINE__); |
||
935 | } |
||
936 | $this->Personnel = $personnel; |
||
937 | return $this; |
||
938 | } |
||
939 | /** |
||
940 | * Get ClassPersonnel value |
||
941 | * @return int|null |
||
942 | */ |
||
943 | public function getClassPersonnel() |
||
944 | { |
||
945 | return $this->ClassPersonnel; |
||
946 | } |
||
947 | /** |
||
948 | * Set ClassPersonnel value |
||
949 | * @param int $classPersonnel |
||
950 | * @return \Webservices\StructType\BusinessDossierV3 |
||
951 | */ |
||
952 | public function setClassPersonnel($classPersonnel = null) |
||
953 | { |
||
954 | // validation for constraint: int |
||
955 | if (!is_null($classPersonnel) && !is_numeric($classPersonnel)) { |
||
956 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($classPersonnel)), __LINE__); |
||
957 | } |
||
958 | $this->ClassPersonnel = $classPersonnel; |
||
959 | return $this; |
||
960 | } |
||
961 | /** |
||
962 | * Get IndicationOrganisationcode value |
||
963 | * @return string|null |
||
964 | */ |
||
965 | public function getIndicationOrganisationcode() |
||
968 | } |
||
969 | /** |
||
970 | * Set IndicationOrganisationcode value |
||
971 | * @param string $indicationOrganisationcode |
||
972 | * @return \Webservices\StructType\BusinessDossierV3 |
||
973 | */ |
||
974 | public function setIndicationOrganisationcode($indicationOrganisationcode = null) |
||
975 | { |
||
976 | // validation for constraint: string |
||
977 | if (!is_null($indicationOrganisationcode) && !is_string($indicationOrganisationcode)) { |
||
978 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($indicationOrganisationcode)), __LINE__); |
||
979 | } |
||
980 | $this->IndicationOrganisationcode = $indicationOrganisationcode; |
||
981 | return $this; |
||
982 | } |
||
983 | /** |
||
984 | * Get IndicationEconomicallyActive value |
||
985 | * @return bool|null |
||
986 | */ |
||
987 | public function getIndicationEconomicallyActive() |
||
988 | { |
||
989 | return $this->IndicationEconomicallyActive; |
||
990 | } |
||
991 | /** |
||
992 | * Set IndicationEconomicallyActive value |
||
993 | * @param bool $indicationEconomicallyActive |
||
994 | * @return \Webservices\StructType\BusinessDossierV3 |
||
995 | */ |
||
996 | public function setIndicationEconomicallyActive($indicationEconomicallyActive = null) |
||
1004 | } |
||
1005 | /** |
||
1006 | * Get IndicationNonMailing value |
||
1007 | * @return bool|null |
||
1008 | */ |
||
1009 | public function getIndicationNonMailing() |
||
1010 | { |
||
1011 | return $this->IndicationNonMailing; |
||
1012 | } |
||
1013 | /** |
||
1014 | * Set IndicationNonMailing value |
||
1015 | * @param bool $indicationNonMailing |
||
1016 | * @return \Webservices\StructType\BusinessDossierV3 |
||
1017 | */ |
||
1018 | public function setIndicationNonMailing($indicationNonMailing = null) |
||
1019 | { |
||
1020 | // validation for constraint: boolean |
||
1021 | if (!is_null($indicationNonMailing) && !is_bool($indicationNonMailing)) { |
||
1022 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($indicationNonMailing)), __LINE__); |
||
1023 | } |
||
1024 | $this->IndicationNonMailing = $indicationNonMailing; |
||
1025 | return $this; |
||
1026 | } |
||
1027 | /** |
||
1028 | * Get IndicationBankruptcy value |
||
1029 | * @return bool|null |
||
1030 | */ |
||
1031 | public function getIndicationBankruptcy() |
||
1032 | { |
||
1033 | return $this->IndicationBankruptcy; |
||
1034 | } |
||
1035 | /** |
||
1036 | * Set IndicationBankruptcy value |
||
1037 | * @param bool $indicationBankruptcy |
||
1038 | * @return \Webservices\StructType\BusinessDossierV3 |
||
1039 | */ |
||
1040 | public function setIndicationBankruptcy($indicationBankruptcy = null) |
||
1041 | { |
||
1042 | // validation for constraint: boolean |
||
1043 | if (!is_null($indicationBankruptcy) && !is_bool($indicationBankruptcy)) { |
||
1044 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($indicationBankruptcy)), __LINE__); |
||
1045 | } |
||
1046 | $this->IndicationBankruptcy = $indicationBankruptcy; |
||
1047 | return $this; |
||
1048 | } |
||
1049 | /** |
||
1050 | * Get IndicationDIP value |
||
1051 | * @return bool|null |
||
1052 | */ |
||
1053 | public function getIndicationDIP() |
||
1056 | } |
||
1057 | /** |
||
1058 | * Set IndicationDIP value |
||
1059 | * @param bool $indicationDIP |
||
1060 | * @return \Webservices\StructType\BusinessDossierV3 |
||
1061 | */ |
||
1062 | public function setIndicationDIP($indicationDIP = null) |
||
1063 | { |
||
1064 | // validation for constraint: boolean |
||
1065 | if (!is_null($indicationDIP) && !is_bool($indicationDIP)) { |
||
1066 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($indicationDIP)), __LINE__); |
||
1067 | } |
||
1068 | $this->IndicationDIP = $indicationDIP; |
||
1069 | return $this; |
||
1070 | } |
||
1071 | /** |
||
1072 | * Method called when an object has been exported with var_export() functions |
||
1073 | * It allows to return an object instantiated with the values |
||
1074 | * @see AbstractStructBase::__set_state() |
||
1075 | * @uses AbstractStructBase::__set_state() |
||
1076 | * @param array $array the exported values |
||
1077 | * @return \Webservices\StructType\BusinessDossierV3 |
||
1078 | */ |
||
1079 | public static function __set_state(array $array) |
||
1080 | { |
||
1081 | return parent::__set_state($array); |
||
1082 | } |
||
1083 | /** |
||
1084 | * Method returning the class name |
||
1085 | * @return string __CLASS__ |
||
1086 | */ |
||
1087 | public function __toString() |
||
1090 | } |
||
1091 | } |
||
1092 |