NicModifyInfosIT::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 25
Code Lines 23

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 23
nc 1
nop 22
dl 0
loc 25
rs 9.552
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 Ovh\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for nicModifyInfosIT StructType
9
 * @subpackage Structs
10
 * @author WsdlToPhp <[email protected]>
11
 */
12
class NicModifyInfosIT extends AbstractStructBase
13
{
14
    /**
15
     * The session
16
     * Meta information extracted from the WSDL
17
     * - nillable: true
18
     * @var string
19
     */
20
    public $session;
21
    /**
22
     * The name
23
     * Meta information extracted from the WSDL
24
     * - nillable: true
25
     * @var string
26
     */
27
    public $name;
28
    /**
29
     * The firstname
30
     * Meta information extracted from the WSDL
31
     * - nillable: true
32
     * @var string
33
     */
34
    public $firstname;
35
    /**
36
     * The sex
37
     * Meta information extracted from the WSDL
38
     * - nillable: true
39
     * @var string
40
     */
41
    public $sex;
42
    /**
43
     * The legalform
44
     * Meta information extracted from the WSDL
45
     * - nillable: true
46
     * @var string
47
     */
48
    public $legalform;
49
    /**
50
     * The organisation
51
     * Meta information extracted from the WSDL
52
     * - nillable: true
53
     * @var string
54
     */
55
    public $organisation;
56
    /**
57
     * The address
58
     * Meta information extracted from the WSDL
59
     * - nillable: true
60
     * @var string
61
     */
62
    public $address;
63
    /**
64
     * The area
65
     * Meta information extracted from the WSDL
66
     * - nillable: true
67
     * @var string
68
     */
69
    public $area;
70
    /**
71
     * The zip
72
     * Meta information extracted from the WSDL
73
     * - nillable: true
74
     * @var string
75
     */
76
    public $zip;
77
    /**
78
     * The city
79
     * Meta information extracted from the WSDL
80
     * - nillable: true
81
     * @var string
82
     */
83
    public $city;
84
    /**
85
     * The country
86
     * Meta information extracted from the WSDL
87
     * - nillable: true
88
     * @var string
89
     */
90
    public $country;
91
    /**
92
     * The phone
93
     * Meta information extracted from the WSDL
94
     * - nillable: true
95
     * @var string
96
     */
97
    public $phone;
98
    /**
99
     * The fax
100
     * Meta information extracted from the WSDL
101
     * - nillable: true
102
     * @var string
103
     */
104
    public $fax;
105
    /**
106
     * The email
107
     * Meta information extracted from the WSDL
108
     * - nillable: true
109
     * @var string
110
     */
111
    public $email;
112
    /**
113
     * The spareEmail
114
     * Meta information extracted from the WSDL
115
     * - nillable: true
116
     * @var string
117
     */
118
    public $spareEmail;
119
    /**
120
     * The language
121
     * Meta information extracted from the WSDL
122
     * - nillable: true
123
     * @var string
124
     */
125
    public $language;
126
    /**
127
     * The vat
128
     * Meta information extracted from the WSDL
129
     * - nillable: true
130
     * @var string
131
     */
132
    public $vat;
133
    /**
134
     * The birthDay
135
     * Meta information extracted from the WSDL
136
     * - nillable: true
137
     * @var string
138
     */
139
    public $birthDay;
140
    /**
141
     * The birthCity
142
     * Meta information extracted from the WSDL
143
     * - nillable: true
144
     * @var string
145
     */
146
    public $birthCity;
147
    /**
148
     * The nationalIdentificationNumber
149
     * Meta information extracted from the WSDL
150
     * - nillable: true
151
     * @var string
152
     */
153
    public $nationalIdentificationNumber;
154
    /**
155
     * The companyNationalIdentificationNumber
156
     * Meta information extracted from the WSDL
157
     * - nillable: true
158
     * @var string
159
     */
160
    public $companyNationalIdentificationNumber;
161
    /**
162
     * The corporationType
163
     * Meta information extracted from the WSDL
164
     * - nillable: true
165
     * @var string
166
     */
167
    public $corporationType;
168
    /**
169
     * Constructor method for nicModifyInfosIT
170
     * @uses NicModifyInfosIT::setSession()
171
     * @uses NicModifyInfosIT::setName()
172
     * @uses NicModifyInfosIT::setFirstname()
173
     * @uses NicModifyInfosIT::setSex()
174
     * @uses NicModifyInfosIT::setLegalform()
175
     * @uses NicModifyInfosIT::setOrganisation()
176
     * @uses NicModifyInfosIT::setAddress()
177
     * @uses NicModifyInfosIT::setArea()
178
     * @uses NicModifyInfosIT::setZip()
179
     * @uses NicModifyInfosIT::setCity()
180
     * @uses NicModifyInfosIT::setCountry()
181
     * @uses NicModifyInfosIT::setPhone()
182
     * @uses NicModifyInfosIT::setFax()
183
     * @uses NicModifyInfosIT::setEmail()
184
     * @uses NicModifyInfosIT::setSpareEmail()
185
     * @uses NicModifyInfosIT::setLanguage()
186
     * @uses NicModifyInfosIT::setVat()
187
     * @uses NicModifyInfosIT::setBirthDay()
188
     * @uses NicModifyInfosIT::setBirthCity()
189
     * @uses NicModifyInfosIT::setNationalIdentificationNumber()
190
     * @uses NicModifyInfosIT::setCompanyNationalIdentificationNumber()
191
     * @uses NicModifyInfosIT::setCorporationType()
192
     * @param string $session
193
     * @param string $name
194
     * @param string $firstname
195
     * @param string $sex
196
     * @param string $legalform
197
     * @param string $organisation
198
     * @param string $address
199
     * @param string $area
200
     * @param string $zip
201
     * @param string $city
202
     * @param string $country
203
     * @param string $phone
204
     * @param string $fax
205
     * @param string $email
206
     * @param string $spareEmail
207
     * @param string $language
208
     * @param string $vat
209
     * @param string $birthDay
210
     * @param string $birthCity
211
     * @param string $nationalIdentificationNumber
212
     * @param string $companyNationalIdentificationNumber
213
     * @param string $corporationType
214
     */
215
    public function __construct($session = null, $name = null, $firstname = null, $sex = null, $legalform = null, $organisation = null, $address = null, $area = null, $zip = null, $city = null, $country = null, $phone = null, $fax = null, $email = null, $spareEmail = null, $language = null, $vat = null, $birthDay = null, $birthCity = null, $nationalIdentificationNumber = null, $companyNationalIdentificationNumber = null, $corporationType = null)
216
    {
217
        $this
218
            ->setSession($session)
219
            ->setName($name)
220
            ->setFirstname($firstname)
221
            ->setSex($sex)
222
            ->setLegalform($legalform)
223
            ->setOrganisation($organisation)
224
            ->setAddress($address)
225
            ->setArea($area)
226
            ->setZip($zip)
227
            ->setCity($city)
228
            ->setCountry($country)
229
            ->setPhone($phone)
230
            ->setFax($fax)
231
            ->setEmail($email)
232
            ->setSpareEmail($spareEmail)
233
            ->setLanguage($language)
234
            ->setVat($vat)
235
            ->setBirthDay($birthDay)
236
            ->setBirthCity($birthCity)
237
            ->setNationalIdentificationNumber($nationalIdentificationNumber)
238
            ->setCompanyNationalIdentificationNumber($companyNationalIdentificationNumber)
239
            ->setCorporationType($corporationType);
240
    }
241
    /**
242
     * Get session value
243
     * @return string|null
244
     */
245
    public function getSession()
246
    {
247
        return $this->session;
248
    }
249
    /**
250
     * Set session value
251
     * @param string $session
252
     * @return \Ovh\StructType\NicModifyInfosIT
253
     */
254
    public function setSession($session = null)
255
    {
256
        // validation for constraint: string
257
        if (!is_null($session) && !is_string($session)) {
0 ignored issues
show
introduced by
The condition is_string($session) is always true.
Loading history...
258
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($session, true), gettype($session)), __LINE__);
259
        }
260
        $this->session = $session;
261
        return $this;
262
    }
263
    /**
264
     * Get name value
265
     * @return string|null
266
     */
267
    public function getName()
268
    {
269
        return $this->name;
270
    }
271
    /**
272
     * Set name value
273
     * @param string $name
274
     * @return \Ovh\StructType\NicModifyInfosIT
275
     */
276
    public function setName($name = null)
277
    {
278
        // validation for constraint: string
279
        if (!is_null($name) && !is_string($name)) {
0 ignored issues
show
introduced by
The condition is_string($name) is always true.
Loading history...
280
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
281
        }
282
        $this->name = $name;
283
        return $this;
284
    }
285
    /**
286
     * Get firstname value
287
     * @return string|null
288
     */
289
    public function getFirstname()
290
    {
291
        return $this->firstname;
292
    }
293
    /**
294
     * Set firstname value
295
     * @param string $firstname
296
     * @return \Ovh\StructType\NicModifyInfosIT
297
     */
298
    public function setFirstname($firstname = null)
299
    {
300
        // validation for constraint: string
301
        if (!is_null($firstname) && !is_string($firstname)) {
0 ignored issues
show
introduced by
The condition is_string($firstname) is always true.
Loading history...
302
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstname, true), gettype($firstname)), __LINE__);
303
        }
304
        $this->firstname = $firstname;
305
        return $this;
306
    }
307
    /**
308
     * Get sex value
309
     * @return string|null
310
     */
311
    public function getSex()
312
    {
313
        return $this->sex;
314
    }
315
    /**
316
     * Set sex value
317
     * @param string $sex
318
     * @return \Ovh\StructType\NicModifyInfosIT
319
     */
320
    public function setSex($sex = null)
321
    {
322
        // validation for constraint: string
323
        if (!is_null($sex) && !is_string($sex)) {
0 ignored issues
show
introduced by
The condition is_string($sex) is always true.
Loading history...
324
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sex, true), gettype($sex)), __LINE__);
325
        }
326
        $this->sex = $sex;
327
        return $this;
328
    }
329
    /**
330
     * Get legalform value
331
     * @return string|null
332
     */
333
    public function getLegalform()
334
    {
335
        return $this->legalform;
336
    }
337
    /**
338
     * Set legalform value
339
     * @param string $legalform
340
     * @return \Ovh\StructType\NicModifyInfosIT
341
     */
342
    public function setLegalform($legalform = null)
343
    {
344
        // validation for constraint: string
345
        if (!is_null($legalform) && !is_string($legalform)) {
0 ignored issues
show
introduced by
The condition is_string($legalform) is always true.
Loading history...
346
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalform, true), gettype($legalform)), __LINE__);
347
        }
348
        $this->legalform = $legalform;
349
        return $this;
350
    }
351
    /**
352
     * Get organisation value
353
     * @return string|null
354
     */
355
    public function getOrganisation()
356
    {
357
        return $this->organisation;
358
    }
359
    /**
360
     * Set organisation value
361
     * @param string $organisation
362
     * @return \Ovh\StructType\NicModifyInfosIT
363
     */
364
    public function setOrganisation($organisation = null)
365
    {
366
        // validation for constraint: string
367
        if (!is_null($organisation) && !is_string($organisation)) {
0 ignored issues
show
introduced by
The condition is_string($organisation) is always true.
Loading history...
368
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($organisation, true), gettype($organisation)), __LINE__);
369
        }
370
        $this->organisation = $organisation;
371
        return $this;
372
    }
373
    /**
374
     * Get address value
375
     * @return string|null
376
     */
377
    public function getAddress()
378
    {
379
        return $this->address;
380
    }
381
    /**
382
     * Set address value
383
     * @param string $address
384
     * @return \Ovh\StructType\NicModifyInfosIT
385
     */
386
    public function setAddress($address = null)
387
    {
388
        // validation for constraint: string
389
        if (!is_null($address) && !is_string($address)) {
0 ignored issues
show
introduced by
The condition is_string($address) is always true.
Loading history...
390
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address, true), gettype($address)), __LINE__);
391
        }
392
        $this->address = $address;
393
        return $this;
394
    }
395
    /**
396
     * Get area value
397
     * @return string|null
398
     */
399
    public function getArea()
400
    {
401
        return $this->area;
402
    }
403
    /**
404
     * Set area value
405
     * @param string $area
406
     * @return \Ovh\StructType\NicModifyInfosIT
407
     */
408
    public function setArea($area = null)
409
    {
410
        // validation for constraint: string
411
        if (!is_null($area) && !is_string($area)) {
0 ignored issues
show
introduced by
The condition is_string($area) is always true.
Loading history...
412
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($area, true), gettype($area)), __LINE__);
413
        }
414
        $this->area = $area;
415
        return $this;
416
    }
417
    /**
418
     * Get zip value
419
     * @return string|null
420
     */
421
    public function getZip()
422
    {
423
        return $this->zip;
424
    }
425
    /**
426
     * Set zip value
427
     * @param string $zip
428
     * @return \Ovh\StructType\NicModifyInfosIT
429
     */
430
    public function setZip($zip = null)
431
    {
432
        // validation for constraint: string
433
        if (!is_null($zip) && !is_string($zip)) {
0 ignored issues
show
introduced by
The condition is_string($zip) is always true.
Loading history...
434
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zip, true), gettype($zip)), __LINE__);
435
        }
436
        $this->zip = $zip;
437
        return $this;
438
    }
439
    /**
440
     * Get city value
441
     * @return string|null
442
     */
443
    public function getCity()
444
    {
445
        return $this->city;
446
    }
447
    /**
448
     * Set city value
449
     * @param string $city
450
     * @return \Ovh\StructType\NicModifyInfosIT
451
     */
452
    public function setCity($city = null)
453
    {
454
        // validation for constraint: string
455
        if (!is_null($city) && !is_string($city)) {
0 ignored issues
show
introduced by
The condition is_string($city) is always true.
Loading history...
456
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($city, true), gettype($city)), __LINE__);
457
        }
458
        $this->city = $city;
459
        return $this;
460
    }
461
    /**
462
     * Get country value
463
     * @return string|null
464
     */
465
    public function getCountry()
466
    {
467
        return $this->country;
468
    }
469
    /**
470
     * Set country value
471
     * @param string $country
472
     * @return \Ovh\StructType\NicModifyInfosIT
473
     */
474
    public function setCountry($country = null)
475
    {
476
        // validation for constraint: string
477
        if (!is_null($country) && !is_string($country)) {
0 ignored issues
show
introduced by
The condition is_string($country) is always true.
Loading history...
478
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($country, true), gettype($country)), __LINE__);
479
        }
480
        $this->country = $country;
481
        return $this;
482
    }
483
    /**
484
     * Get phone value
485
     * @return string|null
486
     */
487
    public function getPhone()
488
    {
489
        return $this->phone;
490
    }
491
    /**
492
     * Set phone value
493
     * @param string $phone
494
     * @return \Ovh\StructType\NicModifyInfosIT
495
     */
496
    public function setPhone($phone = null)
497
    {
498
        // validation for constraint: string
499
        if (!is_null($phone) && !is_string($phone)) {
0 ignored issues
show
introduced by
The condition is_string($phone) is always true.
Loading history...
500
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($phone, true), gettype($phone)), __LINE__);
501
        }
502
        $this->phone = $phone;
503
        return $this;
504
    }
505
    /**
506
     * Get fax value
507
     * @return string|null
508
     */
509
    public function getFax()
510
    {
511
        return $this->fax;
512
    }
513
    /**
514
     * Set fax value
515
     * @param string $fax
516
     * @return \Ovh\StructType\NicModifyInfosIT
517
     */
518
    public function setFax($fax = null)
519
    {
520
        // validation for constraint: string
521
        if (!is_null($fax) && !is_string($fax)) {
0 ignored issues
show
introduced by
The condition is_string($fax) is always true.
Loading history...
522
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($fax, true), gettype($fax)), __LINE__);
523
        }
524
        $this->fax = $fax;
525
        return $this;
526
    }
527
    /**
528
     * Get email value
529
     * @return string|null
530
     */
531
    public function getEmail()
532
    {
533
        return $this->email;
534
    }
535
    /**
536
     * Set email value
537
     * @param string $email
538
     * @return \Ovh\StructType\NicModifyInfosIT
539
     */
540
    public function setEmail($email = null)
541
    {
542
        // validation for constraint: string
543
        if (!is_null($email) && !is_string($email)) {
0 ignored issues
show
introduced by
The condition is_string($email) is always true.
Loading history...
544
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($email, true), gettype($email)), __LINE__);
545
        }
546
        $this->email = $email;
547
        return $this;
548
    }
549
    /**
550
     * Get spareEmail value
551
     * @return string|null
552
     */
553
    public function getSpareEmail()
554
    {
555
        return $this->spareEmail;
556
    }
557
    /**
558
     * Set spareEmail value
559
     * @param string $spareEmail
560
     * @return \Ovh\StructType\NicModifyInfosIT
561
     */
562
    public function setSpareEmail($spareEmail = null)
563
    {
564
        // validation for constraint: string
565
        if (!is_null($spareEmail) && !is_string($spareEmail)) {
0 ignored issues
show
introduced by
The condition is_string($spareEmail) is always true.
Loading history...
566
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($spareEmail, true), gettype($spareEmail)), __LINE__);
567
        }
568
        $this->spareEmail = $spareEmail;
569
        return $this;
570
    }
571
    /**
572
     * Get language value
573
     * @return string|null
574
     */
575
    public function getLanguage()
576
    {
577
        return $this->language;
578
    }
579
    /**
580
     * Set language value
581
     * @param string $language
582
     * @return \Ovh\StructType\NicModifyInfosIT
583
     */
584
    public function setLanguage($language = null)
585
    {
586
        // validation for constraint: string
587
        if (!is_null($language) && !is_string($language)) {
0 ignored issues
show
introduced by
The condition is_string($language) is always true.
Loading history...
588
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($language, true), gettype($language)), __LINE__);
589
        }
590
        $this->language = $language;
591
        return $this;
592
    }
593
    /**
594
     * Get vat value
595
     * @return string|null
596
     */
597
    public function getVat()
598
    {
599
        return $this->vat;
600
    }
601
    /**
602
     * Set vat value
603
     * @param string $vat
604
     * @return \Ovh\StructType\NicModifyInfosIT
605
     */
606
    public function setVat($vat = null)
607
    {
608
        // validation for constraint: string
609
        if (!is_null($vat) && !is_string($vat)) {
0 ignored issues
show
introduced by
The condition is_string($vat) is always true.
Loading history...
610
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($vat, true), gettype($vat)), __LINE__);
611
        }
612
        $this->vat = $vat;
613
        return $this;
614
    }
615
    /**
616
     * Get birthDay value
617
     * @return string|null
618
     */
619
    public function getBirthDay()
620
    {
621
        return $this->birthDay;
622
    }
623
    /**
624
     * Set birthDay value
625
     * @param string $birthDay
626
     * @return \Ovh\StructType\NicModifyInfosIT
627
     */
628
    public function setBirthDay($birthDay = null)
629
    {
630
        // validation for constraint: string
631
        if (!is_null($birthDay) && !is_string($birthDay)) {
0 ignored issues
show
introduced by
The condition is_string($birthDay) is always true.
Loading history...
632
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthDay, true), gettype($birthDay)), __LINE__);
633
        }
634
        $this->birthDay = $birthDay;
635
        return $this;
636
    }
637
    /**
638
     * Get birthCity value
639
     * @return string|null
640
     */
641
    public function getBirthCity()
642
    {
643
        return $this->birthCity;
644
    }
645
    /**
646
     * Set birthCity value
647
     * @param string $birthCity
648
     * @return \Ovh\StructType\NicModifyInfosIT
649
     */
650
    public function setBirthCity($birthCity = null)
651
    {
652
        // validation for constraint: string
653
        if (!is_null($birthCity) && !is_string($birthCity)) {
0 ignored issues
show
introduced by
The condition is_string($birthCity) is always true.
Loading history...
654
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthCity, true), gettype($birthCity)), __LINE__);
655
        }
656
        $this->birthCity = $birthCity;
657
        return $this;
658
    }
659
    /**
660
     * Get nationalIdentificationNumber value
661
     * @return string|null
662
     */
663
    public function getNationalIdentificationNumber()
664
    {
665
        return $this->nationalIdentificationNumber;
666
    }
667
    /**
668
     * Set nationalIdentificationNumber value
669
     * @param string $nationalIdentificationNumber
670
     * @return \Ovh\StructType\NicModifyInfosIT
671
     */
672
    public function setNationalIdentificationNumber($nationalIdentificationNumber = null)
673
    {
674
        // validation for constraint: string
675
        if (!is_null($nationalIdentificationNumber) && !is_string($nationalIdentificationNumber)) {
0 ignored issues
show
introduced by
The condition is_string($nationalIdentificationNumber) is always true.
Loading history...
676
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($nationalIdentificationNumber, true), gettype($nationalIdentificationNumber)), __LINE__);
677
        }
678
        $this->nationalIdentificationNumber = $nationalIdentificationNumber;
679
        return $this;
680
    }
681
    /**
682
     * Get companyNationalIdentificationNumber value
683
     * @return string|null
684
     */
685
    public function getCompanyNationalIdentificationNumber()
686
    {
687
        return $this->companyNationalIdentificationNumber;
688
    }
689
    /**
690
     * Set companyNationalIdentificationNumber value
691
     * @param string $companyNationalIdentificationNumber
692
     * @return \Ovh\StructType\NicModifyInfosIT
693
     */
694
    public function setCompanyNationalIdentificationNumber($companyNationalIdentificationNumber = null)
695
    {
696
        // validation for constraint: string
697
        if (!is_null($companyNationalIdentificationNumber) && !is_string($companyNationalIdentificationNumber)) {
0 ignored issues
show
introduced by
The condition is_string($companyNationalIdentificationNumber) is always true.
Loading history...
698
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($companyNationalIdentificationNumber, true), gettype($companyNationalIdentificationNumber)), __LINE__);
699
        }
700
        $this->companyNationalIdentificationNumber = $companyNationalIdentificationNumber;
701
        return $this;
702
    }
703
    /**
704
     * Get corporationType value
705
     * @return string|null
706
     */
707
    public function getCorporationType()
708
    {
709
        return $this->corporationType;
710
    }
711
    /**
712
     * Set corporationType value
713
     * @param string $corporationType
714
     * @return \Ovh\StructType\NicModifyInfosIT
715
     */
716
    public function setCorporationType($corporationType = null)
717
    {
718
        // validation for constraint: string
719
        if (!is_null($corporationType) && !is_string($corporationType)) {
0 ignored issues
show
introduced by
The condition is_string($corporationType) is always true.
Loading history...
720
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($corporationType, true), gettype($corporationType)), __LINE__);
721
        }
722
        $this->corporationType = $corporationType;
723
        return $this;
724
    }
725
}
726