DutchBusinessEstablishment::__construct()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 37
Code Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

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