DutchBusinessEnterprise::__construct()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 35
Code Lines 33

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 33
nc 1
nop 32
dl 0
loc 35
rs 8.8571
c 0
b 0
f 0

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
3
namespace Webservices\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for DutchBusinessEnterprise StructType
9
 * @subpackage Structs
10
 * @author JCID <[email protected]>
11
 */
12
class DutchBusinessEnterprise extends AbstractStructBase
13
{
14
    /**
15
     * The rsin_number
16
     * Meta informations extracted from the WSDL
17
     * - minOccurs: 0
18
     * @var string
19
     */
20
    public $rsin_number;
21
    /**
22
     * The name
23
     * Meta informations extracted from the WSDL
24
     * - minOccurs: 0
25
     * @var string
26
     */
27
    public $name;
28
    /**
29
     * The registration
30
     * Meta informations extracted from the WSDL
31
     * - minOccurs: 0
32
     * @var string
33
     */
34
    public $registration;
35
    /**
36
     * The status
37
     * Meta informations extracted from the WSDL
38
     * - minOccurs: 0
39
     * @var string
40
     */
41
    public $status;
42
    /**
43
     * The legal_form_text
44
     * Meta informations extracted from the WSDL
45
     * - minOccurs: 0
46
     * @var string
47
     */
48
    public $legal_form_text;
49
    /**
50
     * The trade_names
51
     * Meta informations extracted from the WSDL
52
     * - minOccurs: 0
53
     * @var \Webservices\ArrayType\StringArray
54
     */
55
    public $trade_names;
56
    /**
57
     * The activity
58
     * Meta informations extracted from the WSDL
59
     * - minOccurs: 0
60
     * @var string
61
     */
62
    public $activity;
63
    /**
64
     * The description
65
     * Meta informations extracted from the WSDL
66
     * - minOccurs: 0
67
     * @var string
68
     */
69
    public $description;
70
    /**
71
     * The sbi_codes
72
     * Meta informations extracted from the WSDL
73
     * - minOccurs: 0
74
     * @var \Webservices\ArrayType\StringArray
75
     */
76
    public $sbi_codes;
77
    /**
78
     * The sbi_codes_text
79
     * Meta informations extracted from the WSDL
80
     * - minOccurs: 0
81
     * @var \Webservices\ArrayType\StringArray
82
     */
83
    public $sbi_codes_text;
84
    /**
85
     * The establishment_postcode
86
     * Meta informations extracted from the WSDL
87
     * - minOccurs: 0
88
     * @var string
89
     */
90
    public $establishment_postcode;
91
    /**
92
     * The establishment_city
93
     * Meta informations extracted from the WSDL
94
     * - minOccurs: 0
95
     * @var string
96
     */
97
    public $establishment_city;
98
    /**
99
     * The establishment_street
100
     * Meta informations extracted from the WSDL
101
     * - minOccurs: 0
102
     * @var string
103
     */
104
    public $establishment_street;
105
    /**
106
     * The establishment_house_number
107
     * Meta informations extracted from the WSDL
108
     * - minOccurs: 0
109
     * @var int
110
     */
111
    public $establishment_house_number;
112
    /**
113
     * The establishment_house_number_addition
114
     * Meta informations extracted from the WSDL
115
     * - minOccurs: 0
116
     * @var string
117
     */
118
    public $establishment_house_number_addition;
119
    /**
120
     * The establishment_country
121
     * Meta informations extracted from the WSDL
122
     * - minOccurs: 0
123
     * @var string
124
     */
125
    public $establishment_country;
126
    /**
127
     * The correspondence_postcode
128
     * Meta informations extracted from the WSDL
129
     * - minOccurs: 0
130
     * @var string
131
     */
132
    public $correspondence_postcode;
133
    /**
134
     * The correspondence_city
135
     * Meta informations extracted from the WSDL
136
     * - minOccurs: 0
137
     * @var string
138
     */
139
    public $correspondence_city;
140
    /**
141
     * The correspondence_street
142
     * Meta informations extracted from the WSDL
143
     * - minOccurs: 0
144
     * @var string
145
     */
146
    public $correspondence_street;
147
    /**
148
     * The correspondence_house_number
149
     * Meta informations extracted from the WSDL
150
     * - minOccurs: 0
151
     * @var int
152
     */
153
    public $correspondence_house_number;
154
    /**
155
     * The correspondence_house_number_addition
156
     * Meta informations extracted from the WSDL
157
     * - minOccurs: 0
158
     * @var string
159
     */
160
    public $correspondence_house_number_addition;
161
    /**
162
     * The correspondence_country
163
     * Meta informations extracted from the WSDL
164
     * - minOccurs: 0
165
     * @var string
166
     */
167
    public $correspondence_country;
168
    /**
169
     * The telephone_numbers
170
     * Meta informations extracted from the WSDL
171
     * - minOccurs: 0
172
     * @var \Webservices\ArrayType\StringArray
173
     */
174
    public $telephone_numbers;
175
    /**
176
     * The fax_numbers
177
     * Meta informations extracted from the WSDL
178
     * - minOccurs: 0
179
     * @var \Webservices\ArrayType\StringArray
180
     */
181
    public $fax_numbers;
182
    /**
183
     * The email_addresses
184
     * Meta informations extracted from the WSDL
185
     * - minOccurs: 0
186
     * @var \Webservices\ArrayType\StringArray
187
     */
188
    public $email_addresses;
189
    /**
190
     * The domain_names
191
     * Meta informations extracted from the WSDL
192
     * - minOccurs: 0
193
     * @var \Webservices\ArrayType\StringArray
194
     */
195
    public $domain_names;
196
    /**
197
     * The establishment_date
198
     * Meta informations extracted from the WSDL
199
     * - minOccurs: 0
200
     * @var \Webservices\StructType\DutchBusinessDate
201
     */
202
    public $establishment_date;
203
    /**
204
     * The incorporation_date
205
     * Meta informations extracted from the WSDL
206
     * - minOccurs: 0
207
     * @var \Webservices\StructType\DutchBusinessDate
208
     */
209
    public $incorporation_date;
210
    /**
211
     * The founding_date
212
     * Meta informations extracted from the WSDL
213
     * - minOccurs: 0
214
     * @var \Webservices\StructType\DutchBusinessDate
215
     */
216
    public $founding_date;
217
    /**
218
     * The discontinuation_date
219
     * Meta informations extracted from the WSDL
220
     * - minOccurs: 0
221
     * @var \Webservices\StructType\DutchBusinessDate
222
     */
223
    public $discontinuation_date;
224
    /**
225
     * The date_since
226
     * Meta informations extracted from the WSDL
227
     * - minOccurs: 0
228
     * @var \Webservices\StructType\DutchBusinessDate
229
     */
230
    public $date_since;
231
    /**
232
     * The personnel
233
     * Meta informations extracted from the WSDL
234
     * - minOccurs: 0
235
     * @var int
236
     */
237
    public $personnel;
238
    /**
239
     * Constructor method for DutchBusinessEnterprise
240
     * @uses DutchBusinessEnterprise::setRsin_number()
241
     * @uses DutchBusinessEnterprise::setName()
242
     * @uses DutchBusinessEnterprise::setRegistration()
243
     * @uses DutchBusinessEnterprise::setStatus()
244
     * @uses DutchBusinessEnterprise::setLegal_form_text()
245
     * @uses DutchBusinessEnterprise::setTrade_names()
246
     * @uses DutchBusinessEnterprise::setActivity()
247
     * @uses DutchBusinessEnterprise::setDescription()
248
     * @uses DutchBusinessEnterprise::setSbi_codes()
249
     * @uses DutchBusinessEnterprise::setSbi_codes_text()
250
     * @uses DutchBusinessEnterprise::setEstablishment_postcode()
251
     * @uses DutchBusinessEnterprise::setEstablishment_city()
252
     * @uses DutchBusinessEnterprise::setEstablishment_street()
253
     * @uses DutchBusinessEnterprise::setEstablishment_house_number()
254
     * @uses DutchBusinessEnterprise::setEstablishment_house_number_addition()
255
     * @uses DutchBusinessEnterprise::setEstablishment_country()
256
     * @uses DutchBusinessEnterprise::setCorrespondence_postcode()
257
     * @uses DutchBusinessEnterprise::setCorrespondence_city()
258
     * @uses DutchBusinessEnterprise::setCorrespondence_street()
259
     * @uses DutchBusinessEnterprise::setCorrespondence_house_number()
260
     * @uses DutchBusinessEnterprise::setCorrespondence_house_number_addition()
261
     * @uses DutchBusinessEnterprise::setCorrespondence_country()
262
     * @uses DutchBusinessEnterprise::setTelephone_numbers()
263
     * @uses DutchBusinessEnterprise::setFax_numbers()
264
     * @uses DutchBusinessEnterprise::setEmail_addresses()
265
     * @uses DutchBusinessEnterprise::setDomain_names()
266
     * @uses DutchBusinessEnterprise::setEstablishment_date()
267
     * @uses DutchBusinessEnterprise::setIncorporation_date()
268
     * @uses DutchBusinessEnterprise::setFounding_date()
269
     * @uses DutchBusinessEnterprise::setDiscontinuation_date()
270
     * @uses DutchBusinessEnterprise::setDate_since()
271
     * @uses DutchBusinessEnterprise::setPersonnel()
272
     * @param string $rsin_number
273
     * @param string $name
274
     * @param string $registration
275
     * @param string $status
276
     * @param string $legal_form_text
277
     * @param \Webservices\ArrayType\StringArray $trade_names
278
     * @param string $activity
279
     * @param string $description
280
     * @param \Webservices\ArrayType\StringArray $sbi_codes
281
     * @param \Webservices\ArrayType\StringArray $sbi_codes_text
282
     * @param string $establishment_postcode
283
     * @param string $establishment_city
284
     * @param string $establishment_street
285
     * @param int $establishment_house_number
286
     * @param string $establishment_house_number_addition
287
     * @param string $establishment_country
288
     * @param string $correspondence_postcode
289
     * @param string $correspondence_city
290
     * @param string $correspondence_street
291
     * @param int $correspondence_house_number
292
     * @param string $correspondence_house_number_addition
293
     * @param string $correspondence_country
294
     * @param \Webservices\ArrayType\StringArray $telephone_numbers
295
     * @param \Webservices\ArrayType\StringArray $fax_numbers
296
     * @param \Webservices\ArrayType\StringArray $email_addresses
297
     * @param \Webservices\ArrayType\StringArray $domain_names
298
     * @param \Webservices\StructType\DutchBusinessDate $establishment_date
299
     * @param \Webservices\StructType\DutchBusinessDate $incorporation_date
300
     * @param \Webservices\StructType\DutchBusinessDate $founding_date
301
     * @param \Webservices\StructType\DutchBusinessDate $discontinuation_date
302
     * @param \Webservices\StructType\DutchBusinessDate $date_since
303
     * @param int $personnel
304
     */
305
    public function __construct($rsin_number = null, $name = null, $registration = null, $status = null, $legal_form_text = null, \Webservices\ArrayType\StringArray $trade_names = null, $activity = null, $description = null, \Webservices\ArrayType\StringArray $sbi_codes = null, \Webservices\ArrayType\StringArray $sbi_codes_text = null, $establishment_postcode = null, $establishment_city = null, $establishment_street = null, $establishment_house_number = null, $establishment_house_number_addition = null, $establishment_country = null, $correspondence_postcode = null, $correspondence_city = null, $correspondence_street = null, $correspondence_house_number = null, $correspondence_house_number_addition = null, $correspondence_country = null, \Webservices\ArrayType\StringArray $telephone_numbers = null, \Webservices\ArrayType\StringArray $fax_numbers = null, \Webservices\ArrayType\StringArray $email_addresses = null, \Webservices\ArrayType\StringArray $domain_names = null, \Webservices\StructType\DutchBusinessDate $establishment_date = null, \Webservices\StructType\DutchBusinessDate $incorporation_date = null, \Webservices\StructType\DutchBusinessDate $founding_date = null, \Webservices\StructType\DutchBusinessDate $discontinuation_date = null, \Webservices\StructType\DutchBusinessDate $date_since = null, $personnel = null)
306
    {
307
        $this
308
            ->setRsin_number($rsin_number)
309
            ->setName($name)
310
            ->setRegistration($registration)
311
            ->setStatus($status)
312
            ->setLegal_form_text($legal_form_text)
313
            ->setTrade_names($trade_names)
314
            ->setActivity($activity)
315
            ->setDescription($description)
316
            ->setSbi_codes($sbi_codes)
317
            ->setSbi_codes_text($sbi_codes_text)
318
            ->setEstablishment_postcode($establishment_postcode)
319
            ->setEstablishment_city($establishment_city)
320
            ->setEstablishment_street($establishment_street)
321
            ->setEstablishment_house_number($establishment_house_number)
322
            ->setEstablishment_house_number_addition($establishment_house_number_addition)
323
            ->setEstablishment_country($establishment_country)
324
            ->setCorrespondence_postcode($correspondence_postcode)
325
            ->setCorrespondence_city($correspondence_city)
326
            ->setCorrespondence_street($correspondence_street)
327
            ->setCorrespondence_house_number($correspondence_house_number)
328
            ->setCorrespondence_house_number_addition($correspondence_house_number_addition)
329
            ->setCorrespondence_country($correspondence_country)
330
            ->setTelephone_numbers($telephone_numbers)
331
            ->setFax_numbers($fax_numbers)
332
            ->setEmail_addresses($email_addresses)
333
            ->setDomain_names($domain_names)
334
            ->setEstablishment_date($establishment_date)
335
            ->setIncorporation_date($incorporation_date)
336
            ->setFounding_date($founding_date)
337
            ->setDiscontinuation_date($discontinuation_date)
338
            ->setDate_since($date_since)
339
            ->setPersonnel($personnel);
340
    }
341
    /**
342
     * Get rsin_number value
343
     * @return string|null
344
     */
345
    public function getRsin_number()
346
    {
347
        return $this->rsin_number;
348
    }
349
    /**
350
     * Set rsin_number value
351
     * @param string $rsin_number
352
     * @return \Webservices\StructType\DutchBusinessEnterprise
353
     */
354
    public function setRsin_number($rsin_number = null)
355
    {
356
        // validation for constraint: string
357
        if (!is_null($rsin_number) && !is_string($rsin_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($rsin_number) ...is_string($rsin_number) can never be true.
Loading history...
358
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($rsin_number)), __LINE__);
359
        }
360
        $this->rsin_number = $rsin_number;
361
        return $this;
362
    }
363
    /**
364
     * Get name value
365
     * @return string|null
366
     */
367
    public function getName()
368
    {
369
        return $this->name;
370
    }
371
    /**
372
     * Set name value
373
     * @param string $name
374
     * @return \Webservices\StructType\DutchBusinessEnterprise
375
     */
376
    public function setName($name = null)
377
    {
378
        // validation for constraint: string
379
        if (!is_null($name) && !is_string($name)) {
0 ignored issues
show
introduced by
The condition ! is_null($name) && ! is_string($name) can never be true.
Loading history...
380
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name)), __LINE__);
381
        }
382
        $this->name = $name;
383
        return $this;
384
    }
385
    /**
386
     * Get registration value
387
     * @return string|null
388
     */
389
    public function getRegistration()
390
    {
391
        return $this->registration;
392
    }
393
    /**
394
     * Set registration value
395
     * @param string $registration
396
     * @return \Webservices\StructType\DutchBusinessEnterprise
397
     */
398
    public function setRegistration($registration = null)
399
    {
400
        // validation for constraint: string
401
        if (!is_null($registration) && !is_string($registration)) {
0 ignored issues
show
introduced by
The condition ! is_null($registration)...s_string($registration) can never be true.
Loading history...
402
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($registration)), __LINE__);
403
        }
404
        $this->registration = $registration;
405
        return $this;
406
    }
407
    /**
408
     * Get status value
409
     * @return string|null
410
     */
411
    public function getStatus()
412
    {
413
        return $this->status;
414
    }
415
    /**
416
     * Set status value
417
     * @param string $status
418
     * @return \Webservices\StructType\DutchBusinessEnterprise
419
     */
420
    public function setStatus($status = null)
421
    {
422
        // validation for constraint: string
423
        if (!is_null($status) && !is_string($status)) {
0 ignored issues
show
introduced by
The condition ! is_null($status) && ! is_string($status) can never be true.
Loading history...
424
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($status)), __LINE__);
425
        }
426
        $this->status = $status;
427
        return $this;
428
    }
429
    /**
430
     * Get legal_form_text value
431
     * @return string|null
432
     */
433
    public function getLegal_form_text()
434
    {
435
        return $this->legal_form_text;
436
    }
437
    /**
438
     * Set legal_form_text value
439
     * @param string $legal_form_text
440
     * @return \Webservices\StructType\DutchBusinessEnterprise
441
     */
442
    public function setLegal_form_text($legal_form_text = null)
443
    {
444
        // validation for constraint: string
445
        if (!is_null($legal_form_text) && !is_string($legal_form_text)) {
0 ignored issues
show
introduced by
The condition ! is_null($legal_form_te...tring($legal_form_text) can never be true.
Loading history...
446
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($legal_form_text)), __LINE__);
447
        }
448
        $this->legal_form_text = $legal_form_text;
449
        return $this;
450
    }
451
    /**
452
     * Get trade_names value
453
     * @return \Webservices\ArrayType\StringArray|null
454
     */
455
    public function getTrade_names()
456
    {
457
        return $this->trade_names;
458
    }
459
    /**
460
     * Set trade_names value
461
     * @param \Webservices\ArrayType\StringArray $trade_names
462
     * @return \Webservices\StructType\DutchBusinessEnterprise
463
     */
464
    public function setTrade_names(\Webservices\ArrayType\StringArray $trade_names = null)
465
    {
466
        $this->trade_names = $trade_names;
467
        return $this;
468
    }
469
    /**
470
     * Get activity value
471
     * @return string|null
472
     */
473
    public function getActivity()
474
    {
475
        return $this->activity;
476
    }
477
    /**
478
     * Set activity value
479
     * @param string $activity
480
     * @return \Webservices\StructType\DutchBusinessEnterprise
481
     */
482
    public function setActivity($activity = null)
483
    {
484
        // validation for constraint: string
485
        if (!is_null($activity) && !is_string($activity)) {
0 ignored issues
show
introduced by
The condition ! is_null($activity) && ! is_string($activity) can never be true.
Loading history...
486
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($activity)), __LINE__);
487
        }
488
        $this->activity = $activity;
489
        return $this;
490
    }
491
    /**
492
     * Get description value
493
     * @return string|null
494
     */
495
    public function getDescription()
496
    {
497
        return $this->description;
498
    }
499
    /**
500
     * Set description value
501
     * @param string $description
502
     * @return \Webservices\StructType\DutchBusinessEnterprise
503
     */
504
    public function setDescription($description = null)
505
    {
506
        // validation for constraint: string
507
        if (!is_null($description) && !is_string($description)) {
0 ignored issues
show
introduced by
The condition ! is_null($description) ...is_string($description) can never be true.
Loading history...
508
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($description)), __LINE__);
509
        }
510
        $this->description = $description;
511
        return $this;
512
    }
513
    /**
514
     * Get sbi_codes value
515
     * @return \Webservices\ArrayType\StringArray|null
516
     */
517
    public function getSbi_codes()
518
    {
519
        return $this->sbi_codes;
520
    }
521
    /**
522
     * Set sbi_codes value
523
     * @param \Webservices\ArrayType\StringArray $sbi_codes
524
     * @return \Webservices\StructType\DutchBusinessEnterprise
525
     */
526
    public function setSbi_codes(\Webservices\ArrayType\StringArray $sbi_codes = null)
527
    {
528
        $this->sbi_codes = $sbi_codes;
529
        return $this;
530
    }
531
    /**
532
     * Get sbi_codes_text value
533
     * @return \Webservices\ArrayType\StringArray|null
534
     */
535
    public function getSbi_codes_text()
536
    {
537
        return $this->sbi_codes_text;
538
    }
539
    /**
540
     * Set sbi_codes_text value
541
     * @param \Webservices\ArrayType\StringArray $sbi_codes_text
542
     * @return \Webservices\StructType\DutchBusinessEnterprise
543
     */
544
    public function setSbi_codes_text(\Webservices\ArrayType\StringArray $sbi_codes_text = null)
545
    {
546
        $this->sbi_codes_text = $sbi_codes_text;
547
        return $this;
548
    }
549
    /**
550
     * Get establishment_postcode value
551
     * @return string|null
552
     */
553
    public function getEstablishment_postcode()
554
    {
555
        return $this->establishment_postcode;
556
    }
557
    /**
558
     * Set establishment_postcode value
559
     * @param string $establishment_postcode
560
     * @return \Webservices\StructType\DutchBusinessEnterprise
561
     */
562
    public function setEstablishment_postcode($establishment_postcode = null)
563
    {
564
        // validation for constraint: string
565
        if (!is_null($establishment_postcode) && !is_string($establishment_postcode)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment...establishment_postcode) can never be true.
Loading history...
566
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishment_postcode)), __LINE__);
567
        }
568
        $this->establishment_postcode = $establishment_postcode;
569
        return $this;
570
    }
571
    /**
572
     * Get establishment_city value
573
     * @return string|null
574
     */
575
    public function getEstablishment_city()
576
    {
577
        return $this->establishment_city;
578
    }
579
    /**
580
     * Set establishment_city value
581
     * @param string $establishment_city
582
     * @return \Webservices\StructType\DutchBusinessEnterprise
583
     */
584
    public function setEstablishment_city($establishment_city = null)
585
    {
586
        // validation for constraint: string
587
        if (!is_null($establishment_city) && !is_string($establishment_city)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment...ng($establishment_city) can never be true.
Loading history...
588
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishment_city)), __LINE__);
589
        }
590
        $this->establishment_city = $establishment_city;
591
        return $this;
592
    }
593
    /**
594
     * Get establishment_street value
595
     * @return string|null
596
     */
597
    public function getEstablishment_street()
598
    {
599
        return $this->establishment_street;
600
    }
601
    /**
602
     * Set establishment_street value
603
     * @param string $establishment_street
604
     * @return \Webservices\StructType\DutchBusinessEnterprise
605
     */
606
    public function setEstablishment_street($establishment_street = null)
607
    {
608
        // validation for constraint: string
609
        if (!is_null($establishment_street) && !is_string($establishment_street)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment...($establishment_street) can never be true.
Loading history...
610
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishment_street)), __LINE__);
611
        }
612
        $this->establishment_street = $establishment_street;
613
        return $this;
614
    }
615
    /**
616
     * Get establishment_house_number value
617
     * @return int|null
618
     */
619
    public function getEstablishment_house_number()
620
    {
621
        return $this->establishment_house_number;
622
    }
623
    /**
624
     * Set establishment_house_number value
625
     * @param int $establishment_house_number
626
     * @return \Webservices\StructType\DutchBusinessEnterprise
627
     */
628
    public function setEstablishment_house_number($establishment_house_number = null)
629
    {
630
        // validation for constraint: int
631
        if (!is_null($establishment_house_number) && !is_numeric($establishment_house_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment...blishment_house_number) can never be true.
Loading history...
632
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($establishment_house_number)), __LINE__);
633
        }
634
        $this->establishment_house_number = $establishment_house_number;
635
        return $this;
636
    }
637
    /**
638
     * Get establishment_house_number_addition value
639
     * @return string|null
640
     */
641
    public function getEstablishment_house_number_addition()
642
    {
643
        return $this->establishment_house_number_addition;
644
    }
645
    /**
646
     * Set establishment_house_number_addition value
647
     * @param string $establishment_house_number_addition
648
     * @return \Webservices\StructType\DutchBusinessEnterprise
649
     */
650
    public function setEstablishment_house_number_addition($establishment_house_number_addition = null)
651
    {
652
        // validation for constraint: string
653
        if (!is_null($establishment_house_number_addition) && !is_string($establishment_house_number_addition)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment..._house_number_addition) can never be true.
Loading history...
654
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishment_house_number_addition)), __LINE__);
655
        }
656
        $this->establishment_house_number_addition = $establishment_house_number_addition;
657
        return $this;
658
    }
659
    /**
660
     * Get establishment_country value
661
     * @return string|null
662
     */
663
    public function getEstablishment_country()
664
    {
665
        return $this->establishment_country;
666
    }
667
    /**
668
     * Set establishment_country value
669
     * @param string $establishment_country
670
     * @return \Webservices\StructType\DutchBusinessEnterprise
671
     */
672
    public function setEstablishment_country($establishment_country = null)
673
    {
674
        // validation for constraint: string
675
        if (!is_null($establishment_country) && !is_string($establishment_country)) {
0 ignored issues
show
introduced by
The condition ! is_null($establishment...$establishment_country) can never be true.
Loading history...
676
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($establishment_country)), __LINE__);
677
        }
678
        $this->establishment_country = $establishment_country;
679
        return $this;
680
    }
681
    /**
682
     * Get correspondence_postcode value
683
     * @return string|null
684
     */
685
    public function getCorrespondence_postcode()
686
    {
687
        return $this->correspondence_postcode;
688
    }
689
    /**
690
     * Set correspondence_postcode value
691
     * @param string $correspondence_postcode
692
     * @return \Webservices\StructType\DutchBusinessEnterprise
693
     */
694
    public function setCorrespondence_postcode($correspondence_postcode = null)
695
    {
696
        // validation for constraint: string
697
        if (!is_null($correspondence_postcode) && !is_string($correspondence_postcode)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc...orrespondence_postcode) can never be true.
Loading history...
698
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondence_postcode)), __LINE__);
699
        }
700
        $this->correspondence_postcode = $correspondence_postcode;
701
        return $this;
702
    }
703
    /**
704
     * Get correspondence_city value
705
     * @return string|null
706
     */
707
    public function getCorrespondence_city()
708
    {
709
        return $this->correspondence_city;
710
    }
711
    /**
712
     * Set correspondence_city value
713
     * @param string $correspondence_city
714
     * @return \Webservices\StructType\DutchBusinessEnterprise
715
     */
716
    public function setCorrespondence_city($correspondence_city = null)
717
    {
718
        // validation for constraint: string
719
        if (!is_null($correspondence_city) && !is_string($correspondence_city)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc...g($correspondence_city) can never be true.
Loading history...
720
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondence_city)), __LINE__);
721
        }
722
        $this->correspondence_city = $correspondence_city;
723
        return $this;
724
    }
725
    /**
726
     * Get correspondence_street value
727
     * @return string|null
728
     */
729
    public function getCorrespondence_street()
730
    {
731
        return $this->correspondence_street;
732
    }
733
    /**
734
     * Set correspondence_street value
735
     * @param string $correspondence_street
736
     * @return \Webservices\StructType\DutchBusinessEnterprise
737
     */
738
    public function setCorrespondence_street($correspondence_street = null)
739
    {
740
        // validation for constraint: string
741
        if (!is_null($correspondence_street) && !is_string($correspondence_street)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc...$correspondence_street) can never be true.
Loading history...
742
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondence_street)), __LINE__);
743
        }
744
        $this->correspondence_street = $correspondence_street;
745
        return $this;
746
    }
747
    /**
748
     * Get correspondence_house_number value
749
     * @return int|null
750
     */
751
    public function getCorrespondence_house_number()
752
    {
753
        return $this->correspondence_house_number;
754
    }
755
    /**
756
     * Set correspondence_house_number value
757
     * @param int $correspondence_house_number
758
     * @return \Webservices\StructType\DutchBusinessEnterprise
759
     */
760
    public function setCorrespondence_house_number($correspondence_house_number = null)
761
    {
762
        // validation for constraint: int
763
        if (!is_null($correspondence_house_number) && !is_numeric($correspondence_house_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc...spondence_house_number) can never be true.
Loading history...
764
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($correspondence_house_number)), __LINE__);
765
        }
766
        $this->correspondence_house_number = $correspondence_house_number;
767
        return $this;
768
    }
769
    /**
770
     * Get correspondence_house_number_addition value
771
     * @return string|null
772
     */
773
    public function getCorrespondence_house_number_addition()
774
    {
775
        return $this->correspondence_house_number_addition;
776
    }
777
    /**
778
     * Set correspondence_house_number_addition value
779
     * @param string $correspondence_house_number_addition
780
     * @return \Webservices\StructType\DutchBusinessEnterprise
781
     */
782
    public function setCorrespondence_house_number_addition($correspondence_house_number_addition = null)
783
    {
784
        // validation for constraint: string
785
        if (!is_null($correspondence_house_number_addition) && !is_string($correspondence_house_number_addition)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc..._house_number_addition) can never be true.
Loading history...
786
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondence_house_number_addition)), __LINE__);
787
        }
788
        $this->correspondence_house_number_addition = $correspondence_house_number_addition;
789
        return $this;
790
    }
791
    /**
792
     * Get correspondence_country value
793
     * @return string|null
794
     */
795
    public function getCorrespondence_country()
796
    {
797
        return $this->correspondence_country;
798
    }
799
    /**
800
     * Set correspondence_country value
801
     * @param string $correspondence_country
802
     * @return \Webservices\StructType\DutchBusinessEnterprise
803
     */
804
    public function setCorrespondence_country($correspondence_country = null)
805
    {
806
        // validation for constraint: string
807
        if (!is_null($correspondence_country) && !is_string($correspondence_country)) {
0 ignored issues
show
introduced by
The condition ! is_null($correspondenc...correspondence_country) can never be true.
Loading history...
808
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correspondence_country)), __LINE__);
809
        }
810
        $this->correspondence_country = $correspondence_country;
811
        return $this;
812
    }
813
    /**
814
     * Get telephone_numbers value
815
     * @return \Webservices\ArrayType\StringArray|null
816
     */
817
    public function getTelephone_numbers()
818
    {
819
        return $this->telephone_numbers;
820
    }
821
    /**
822
     * Set telephone_numbers value
823
     * @param \Webservices\ArrayType\StringArray $telephone_numbers
824
     * @return \Webservices\StructType\DutchBusinessEnterprise
825
     */
826
    public function setTelephone_numbers(\Webservices\ArrayType\StringArray $telephone_numbers = null)
827
    {
828
        $this->telephone_numbers = $telephone_numbers;
829
        return $this;
830
    }
831
    /**
832
     * Get fax_numbers value
833
     * @return \Webservices\ArrayType\StringArray|null
834
     */
835
    public function getFax_numbers()
836
    {
837
        return $this->fax_numbers;
838
    }
839
    /**
840
     * Set fax_numbers value
841
     * @param \Webservices\ArrayType\StringArray $fax_numbers
842
     * @return \Webservices\StructType\DutchBusinessEnterprise
843
     */
844
    public function setFax_numbers(\Webservices\ArrayType\StringArray $fax_numbers = null)
845
    {
846
        $this->fax_numbers = $fax_numbers;
847
        return $this;
848
    }
849
    /**
850
     * Get email_addresses value
851
     * @return \Webservices\ArrayType\StringArray|null
852
     */
853
    public function getEmail_addresses()
854
    {
855
        return $this->email_addresses;
856
    }
857
    /**
858
     * Set email_addresses value
859
     * @param \Webservices\ArrayType\StringArray $email_addresses
860
     * @return \Webservices\StructType\DutchBusinessEnterprise
861
     */
862
    public function setEmail_addresses(\Webservices\ArrayType\StringArray $email_addresses = null)
863
    {
864
        $this->email_addresses = $email_addresses;
865
        return $this;
866
    }
867
    /**
868
     * Get domain_names value
869
     * @return \Webservices\ArrayType\StringArray|null
870
     */
871
    public function getDomain_names()
872
    {
873
        return $this->domain_names;
874
    }
875
    /**
876
     * Set domain_names value
877
     * @param \Webservices\ArrayType\StringArray $domain_names
878
     * @return \Webservices\StructType\DutchBusinessEnterprise
879
     */
880
    public function setDomain_names(\Webservices\ArrayType\StringArray $domain_names = null)
881
    {
882
        $this->domain_names = $domain_names;
883
        return $this;
884
    }
885
    /**
886
     * Get establishment_date value
887
     * @return \Webservices\StructType\DutchBusinessDate|null
888
     */
889
    public function getEstablishment_date()
890
    {
891
        return $this->establishment_date;
892
    }
893
    /**
894
     * Set establishment_date value
895
     * @param \Webservices\StructType\DutchBusinessDate $establishment_date
896
     * @return \Webservices\StructType\DutchBusinessEnterprise
897
     */
898
    public function setEstablishment_date(\Webservices\StructType\DutchBusinessDate $establishment_date = null)
899
    {
900
        $this->establishment_date = $establishment_date;
901
        return $this;
902
    }
903
    /**
904
     * Get incorporation_date value
905
     * @return \Webservices\StructType\DutchBusinessDate|null
906
     */
907
    public function getIncorporation_date()
908
    {
909
        return $this->incorporation_date;
910
    }
911
    /**
912
     * Set incorporation_date value
913
     * @param \Webservices\StructType\DutchBusinessDate $incorporation_date
914
     * @return \Webservices\StructType\DutchBusinessEnterprise
915
     */
916
    public function setIncorporation_date(\Webservices\StructType\DutchBusinessDate $incorporation_date = null)
917
    {
918
        $this->incorporation_date = $incorporation_date;
919
        return $this;
920
    }
921
    /**
922
     * Get founding_date value
923
     * @return \Webservices\StructType\DutchBusinessDate|null
924
     */
925
    public function getFounding_date()
926
    {
927
        return $this->founding_date;
928
    }
929
    /**
930
     * Set founding_date value
931
     * @param \Webservices\StructType\DutchBusinessDate $founding_date
932
     * @return \Webservices\StructType\DutchBusinessEnterprise
933
     */
934
    public function setFounding_date(\Webservices\StructType\DutchBusinessDate $founding_date = null)
935
    {
936
        $this->founding_date = $founding_date;
937
        return $this;
938
    }
939
    /**
940
     * Get discontinuation_date value
941
     * @return \Webservices\StructType\DutchBusinessDate|null
942
     */
943
    public function getDiscontinuation_date()
944
    {
945
        return $this->discontinuation_date;
946
    }
947
    /**
948
     * Set discontinuation_date value
949
     * @param \Webservices\StructType\DutchBusinessDate $discontinuation_date
950
     * @return \Webservices\StructType\DutchBusinessEnterprise
951
     */
952
    public function setDiscontinuation_date(\Webservices\StructType\DutchBusinessDate $discontinuation_date = null)
953
    {
954
        $this->discontinuation_date = $discontinuation_date;
955
        return $this;
956
    }
957
    /**
958
     * Get date_since value
959
     * @return \Webservices\StructType\DutchBusinessDate|null
960
     */
961
    public function getDate_since()
962
    {
963
        return $this->date_since;
964
    }
965
    /**
966
     * Set date_since value
967
     * @param \Webservices\StructType\DutchBusinessDate $date_since
968
     * @return \Webservices\StructType\DutchBusinessEnterprise
969
     */
970
    public function setDate_since(\Webservices\StructType\DutchBusinessDate $date_since = null)
971
    {
972
        $this->date_since = $date_since;
973
        return $this;
974
    }
975
    /**
976
     * Get personnel value
977
     * @return int|null
978
     */
979
    public function getPersonnel()
980
    {
981
        return $this->personnel;
982
    }
983
    /**
984
     * Set personnel value
985
     * @param int $personnel
986
     * @return \Webservices\StructType\DutchBusinessEnterprise
987
     */
988
    public function setPersonnel($personnel = null)
989
    {
990
        // validation for constraint: int
991
        if (!is_null($personnel) && !is_numeric($personnel)) {
0 ignored issues
show
introduced by
The condition ! is_null($personnel) && ! is_numeric($personnel) can never be true.
Loading history...
992
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($personnel)), __LINE__);
993
        }
994
        $this->personnel = $personnel;
995
        return $this;
996
    }
997
    /**
998
     * Method called when an object has been exported with var_export() functions
999
     * It allows to return an object instantiated with the values
1000
     * @see AbstractStructBase::__set_state()
1001
     * @uses AbstractStructBase::__set_state()
1002
     * @param array $array the exported values
1003
     * @return \Webservices\StructType\DutchBusinessEnterprise
1004
     */
1005
    public static function __set_state(array $array)
1006
    {
1007
        return parent::__set_state($array);
1008
    }
1009
    /**
1010
     * Method returning the class name
1011
     * @return string __CLASS__
1012
     */
1013
    public function __toString()
1014
    {
1015
        return __CLASS__;
1016
    }
1017
}
1018