CompliancePerson::__construct()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 25
nc 1
nop 24
dl 0
loc 27
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 CompliancePerson StructType
9
 * @subpackage Structs
10
 * @author JCID <[email protected]>
11
 */
12
class CompliancePerson extends AbstractStructBase
13
{
14
    /**
15
     * The compliance_person_id
16
     * Meta informations extracted from the WSDL
17
     * - minOccurs: 1
18
     * @var int
19
     */
20
    public $compliance_person_id;
21
    /**
22
     * The last_name
23
     * Meta informations extracted from the WSDL
24
     * - minOccurs: 1
25
     * @var string
26
     */
27
    public $last_name;
28
    /**
29
     * The sanctions
30
     * Meta informations extracted from the WSDL
31
     * - minOccurs: 1
32
     * @var \Webservices\ArrayType\ComplianceSanctionReferenceArray
33
     */
34
    public $sanctions;
35
    /**
36
     * The flags
37
     * Meta informations extracted from the WSDL
38
     * - minOccurs: 1
39
     * @var \Webservices\ArrayType\StringArray
40
     */
41
    public $flags;
42
    /**
43
     * The aliases
44
     * Meta informations extracted from the WSDL
45
     * - minOccurs: 1
46
     * @var \Webservices\ArrayType\StringArray
47
     */
48
    public $aliases;
49
    /**
50
     * The addresses
51
     * Meta informations extracted from the WSDL
52
     * - minOccurs: 1
53
     * @var \Webservices\ArrayType\ComplianceAddressReferenceArray
54
     */
55
    public $addresses;
56
    /**
57
     * The roles
58
     * Meta informations extracted from the WSDL
59
     * - minOccurs: 1
60
     * @var \Webservices\ArrayType\ComplianceRoleReferenceArray
61
     */
62
    public $roles;
63
    /**
64
     * The related_businesses
65
     * Meta informations extracted from the WSDL
66
     * - minOccurs: 1
67
     * @var \Webservices\ArrayType\ComplianceBusinessReferenceArray
68
     */
69
    public $related_businesses;
70
    /**
71
     * The related_persons
72
     * Meta informations extracted from the WSDL
73
     * - minOccurs: 1
74
     * @var \Webservices\ArrayType\CompliancePersonReferenceArray
75
     */
76
    public $related_persons;
77
    /**
78
     * The notes
79
     * Meta informations extracted from the WSDL
80
     * - minOccurs: 1
81
     * @var \Webservices\ArrayType\ComplianceNoteReferenceArray
82
     */
83
    public $notes;
84
    /**
85
     * The documents
86
     * Meta informations extracted from the WSDL
87
     * - minOccurs: 1
88
     * @var \Webservices\ArrayType\ComplianceDocumentReferenceArray
89
     */
90
    public $documents;
91
    /**
92
     * The pep_level
93
     * Meta informations extracted from the WSDL
94
     * - minOccurs: 0
95
     * @var int
96
     */
97
    public $pep_level;
98
    /**
99
     * The first_name
100
     * Meta informations extracted from the WSDL
101
     * - minOccurs: 0
102
     * @var string
103
     */
104
    public $first_name;
105
    /**
106
     * The middle_name
107
     * Meta informations extracted from the WSDL
108
     * - minOccurs: 0
109
     * @var string
110
     */
111
    public $middle_name;
112
    /**
113
     * The gender
114
     * Meta informations extracted from the WSDL
115
     * - minOccurs: 0
116
     * @var string
117
     */
118
    public $gender;
119
    /**
120
     * The date_of_birth
121
     * Meta informations extracted from the WSDL
122
     * - minOccurs: 0
123
     * @var string
124
     */
125
    public $date_of_birth;
126
    /**
127
     * The date_of_death
128
     * Meta informations extracted from the WSDL
129
     * - minOccurs: 0
130
     * @var string
131
     */
132
    public $date_of_death;
133
    /**
134
     * The deceased
135
     * Meta informations extracted from the WSDL
136
     * - minOccurs: 0
137
     * @var bool
138
     */
139
    public $deceased;
140
    /**
141
     * The nationality
142
     * Meta informations extracted from the WSDL
143
     * - minOccurs: 0
144
     * @var string
145
     */
146
    public $nationality;
147
    /**
148
     * The image_url
149
     * Meta informations extracted from the WSDL
150
     * - minOccurs: 0
151
     * @var string
152
     */
153
    public $image_url;
154
    /**
155
     * The telephone_number
156
     * Meta informations extracted from the WSDL
157
     * - minOccurs: 0
158
     * @var string
159
     */
160
    public $telephone_number;
161
    /**
162
     * The fax_number
163
     * Meta informations extracted from the WSDL
164
     * - minOccurs: 0
165
     * @var string
166
     */
167
    public $fax_number;
168
    /**
169
     * The mobile_number
170
     * Meta informations extracted from the WSDL
171
     * - minOccurs: 0
172
     * @var string
173
     */
174
    public $mobile_number;
175
    /**
176
     * The email
177
     * Meta informations extracted from the WSDL
178
     * - minOccurs: 0
179
     * @var string
180
     */
181
    public $email;
182
    /**
183
     * Constructor method for CompliancePerson
184
     * @uses CompliancePerson::setCompliance_person_id()
185
     * @uses CompliancePerson::setLast_name()
186
     * @uses CompliancePerson::setSanctions()
187
     * @uses CompliancePerson::setFlags()
188
     * @uses CompliancePerson::setAliases()
189
     * @uses CompliancePerson::setAddresses()
190
     * @uses CompliancePerson::setRoles()
191
     * @uses CompliancePerson::setRelated_businesses()
192
     * @uses CompliancePerson::setRelated_persons()
193
     * @uses CompliancePerson::setNotes()
194
     * @uses CompliancePerson::setDocuments()
195
     * @uses CompliancePerson::setPep_level()
196
     * @uses CompliancePerson::setFirst_name()
197
     * @uses CompliancePerson::setMiddle_name()
198
     * @uses CompliancePerson::setGender()
199
     * @uses CompliancePerson::setDate_of_birth()
200
     * @uses CompliancePerson::setDate_of_death()
201
     * @uses CompliancePerson::setDeceased()
202
     * @uses CompliancePerson::setNationality()
203
     * @uses CompliancePerson::setImage_url()
204
     * @uses CompliancePerson::setTelephone_number()
205
     * @uses CompliancePerson::setFax_number()
206
     * @uses CompliancePerson::setMobile_number()
207
     * @uses CompliancePerson::setEmail()
208
     * @param int $compliance_person_id
209
     * @param string $last_name
210
     * @param \Webservices\ArrayType\ComplianceSanctionReferenceArray $sanctions
211
     * @param \Webservices\ArrayType\StringArray $flags
212
     * @param \Webservices\ArrayType\StringArray $aliases
213
     * @param \Webservices\ArrayType\ComplianceAddressReferenceArray $addresses
214
     * @param \Webservices\ArrayType\ComplianceRoleReferenceArray $roles
215
     * @param \Webservices\ArrayType\ComplianceBusinessReferenceArray $related_businesses
216
     * @param \Webservices\ArrayType\CompliancePersonReferenceArray $related_persons
217
     * @param \Webservices\ArrayType\ComplianceNoteReferenceArray $notes
218
     * @param \Webservices\ArrayType\ComplianceDocumentReferenceArray $documents
219
     * @param int $pep_level
220
     * @param string $first_name
221
     * @param string $middle_name
222
     * @param string $gender
223
     * @param string $date_of_birth
224
     * @param string $date_of_death
225
     * @param bool $deceased
226
     * @param string $nationality
227
     * @param string $image_url
228
     * @param string $telephone_number
229
     * @param string $fax_number
230
     * @param string $mobile_number
231
     * @param string $email
232
     */
233
    public function __construct($compliance_person_id = null, $last_name = null, \Webservices\ArrayType\ComplianceSanctionReferenceArray $sanctions = null, \Webservices\ArrayType\StringArray $flags = null, \Webservices\ArrayType\StringArray $aliases = null, \Webservices\ArrayType\ComplianceAddressReferenceArray $addresses = null, \Webservices\ArrayType\ComplianceRoleReferenceArray $roles = null, \Webservices\ArrayType\ComplianceBusinessReferenceArray $related_businesses = null, \Webservices\ArrayType\CompliancePersonReferenceArray $related_persons = null, \Webservices\ArrayType\ComplianceNoteReferenceArray $notes = null, \Webservices\ArrayType\ComplianceDocumentReferenceArray $documents = null, $pep_level = null, $first_name = null, $middle_name = null, $gender = null, $date_of_birth = null, $date_of_death = null, $deceased = null, $nationality = null, $image_url = null, $telephone_number = null, $fax_number = null, $mobile_number = null, $email = null)
234
    {
235
        $this
236
            ->setCompliance_person_id($compliance_person_id)
237
            ->setLast_name($last_name)
238
            ->setSanctions($sanctions)
239
            ->setFlags($flags)
240
            ->setAliases($aliases)
241
            ->setAddresses($addresses)
242
            ->setRoles($roles)
243
            ->setRelated_businesses($related_businesses)
244
            ->setRelated_persons($related_persons)
245
            ->setNotes($notes)
246
            ->setDocuments($documents)
247
            ->setPep_level($pep_level)
248
            ->setFirst_name($first_name)
249
            ->setMiddle_name($middle_name)
250
            ->setGender($gender)
251
            ->setDate_of_birth($date_of_birth)
252
            ->setDate_of_death($date_of_death)
253
            ->setDeceased($deceased)
254
            ->setNationality($nationality)
255
            ->setImage_url($image_url)
256
            ->setTelephone_number($telephone_number)
257
            ->setFax_number($fax_number)
258
            ->setMobile_number($mobile_number)
259
            ->setEmail($email);
260
    }
261
    /**
262
     * Get compliance_person_id value
263
     * @return int
264
     */
265
    public function getCompliance_person_id()
266
    {
267
        return $this->compliance_person_id;
268
    }
269
    /**
270
     * Set compliance_person_id value
271
     * @param int $compliance_person_id
272
     * @return \Webservices\StructType\CompliancePerson
273
     */
274
    public function setCompliance_person_id($compliance_person_id = null)
275
    {
276
        // validation for constraint: int
277
        if (!is_null($compliance_person_id) && !is_numeric($compliance_person_id)) {
0 ignored issues
show
introduced by
The condition ! is_null($compliance_pe...($compliance_person_id) can never be true.
Loading history...
278
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($compliance_person_id)), __LINE__);
279
        }
280
        $this->compliance_person_id = $compliance_person_id;
281
        return $this;
282
    }
283
    /**
284
     * Get last_name value
285
     * @return string
286
     */
287
    public function getLast_name()
288
    {
289
        return $this->last_name;
290
    }
291
    /**
292
     * Set last_name value
293
     * @param string $last_name
294
     * @return \Webservices\StructType\CompliancePerson
295
     */
296
    public function setLast_name($last_name = null)
297
    {
298
        // validation for constraint: string
299
        if (!is_null($last_name) && !is_string($last_name)) {
0 ignored issues
show
introduced by
The condition ! is_null($last_name) && ! is_string($last_name) can never be true.
Loading history...
300
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($last_name)), __LINE__);
301
        }
302
        $this->last_name = $last_name;
303
        return $this;
304
    }
305
    /**
306
     * Get sanctions value
307
     * @return \Webservices\ArrayType\ComplianceSanctionReferenceArray
308
     */
309
    public function getSanctions()
310
    {
311
        return $this->sanctions;
312
    }
313
    /**
314
     * Set sanctions value
315
     * @param \Webservices\ArrayType\ComplianceSanctionReferenceArray $sanctions
316
     * @return \Webservices\StructType\CompliancePerson
317
     */
318
    public function setSanctions(\Webservices\ArrayType\ComplianceSanctionReferenceArray $sanctions = null)
319
    {
320
        $this->sanctions = $sanctions;
321
        return $this;
322
    }
323
    /**
324
     * Get flags value
325
     * @return \Webservices\ArrayType\StringArray
326
     */
327
    public function getFlags()
328
    {
329
        return $this->flags;
330
    }
331
    /**
332
     * Set flags value
333
     * @param \Webservices\ArrayType\StringArray $flags
334
     * @return \Webservices\StructType\CompliancePerson
335
     */
336
    public function setFlags(\Webservices\ArrayType\StringArray $flags = null)
337
    {
338
        $this->flags = $flags;
339
        return $this;
340
    }
341
    /**
342
     * Get aliases value
343
     * @return \Webservices\ArrayType\StringArray
344
     */
345
    public function getAliases()
346
    {
347
        return $this->aliases;
348
    }
349
    /**
350
     * Set aliases value
351
     * @param \Webservices\ArrayType\StringArray $aliases
352
     * @return \Webservices\StructType\CompliancePerson
353
     */
354
    public function setAliases(\Webservices\ArrayType\StringArray $aliases = null)
355
    {
356
        $this->aliases = $aliases;
357
        return $this;
358
    }
359
    /**
360
     * Get addresses value
361
     * @return \Webservices\ArrayType\ComplianceAddressReferenceArray
362
     */
363
    public function getAddresses()
364
    {
365
        return $this->addresses;
366
    }
367
    /**
368
     * Set addresses value
369
     * @param \Webservices\ArrayType\ComplianceAddressReferenceArray $addresses
370
     * @return \Webservices\StructType\CompliancePerson
371
     */
372
    public function setAddresses(\Webservices\ArrayType\ComplianceAddressReferenceArray $addresses = null)
373
    {
374
        $this->addresses = $addresses;
375
        return $this;
376
    }
377
    /**
378
     * Get roles value
379
     * @return \Webservices\ArrayType\ComplianceRoleReferenceArray
380
     */
381
    public function getRoles()
382
    {
383
        return $this->roles;
384
    }
385
    /**
386
     * Set roles value
387
     * @param \Webservices\ArrayType\ComplianceRoleReferenceArray $roles
388
     * @return \Webservices\StructType\CompliancePerson
389
     */
390
    public function setRoles(\Webservices\ArrayType\ComplianceRoleReferenceArray $roles = null)
391
    {
392
        $this->roles = $roles;
393
        return $this;
394
    }
395
    /**
396
     * Get related_businesses value
397
     * @return \Webservices\ArrayType\ComplianceBusinessReferenceArray
398
     */
399
    public function getRelated_businesses()
400
    {
401
        return $this->related_businesses;
402
    }
403
    /**
404
     * Set related_businesses value
405
     * @param \Webservices\ArrayType\ComplianceBusinessReferenceArray $related_businesses
406
     * @return \Webservices\StructType\CompliancePerson
407
     */
408
    public function setRelated_businesses(\Webservices\ArrayType\ComplianceBusinessReferenceArray $related_businesses = null)
409
    {
410
        $this->related_businesses = $related_businesses;
411
        return $this;
412
    }
413
    /**
414
     * Get related_persons value
415
     * @return \Webservices\ArrayType\CompliancePersonReferenceArray
416
     */
417
    public function getRelated_persons()
418
    {
419
        return $this->related_persons;
420
    }
421
    /**
422
     * Set related_persons value
423
     * @param \Webservices\ArrayType\CompliancePersonReferenceArray $related_persons
424
     * @return \Webservices\StructType\CompliancePerson
425
     */
426
    public function setRelated_persons(\Webservices\ArrayType\CompliancePersonReferenceArray $related_persons = null)
427
    {
428
        $this->related_persons = $related_persons;
429
        return $this;
430
    }
431
    /**
432
     * Get notes value
433
     * @return \Webservices\ArrayType\ComplianceNoteReferenceArray
434
     */
435
    public function getNotes()
436
    {
437
        return $this->notes;
438
    }
439
    /**
440
     * Set notes value
441
     * @param \Webservices\ArrayType\ComplianceNoteReferenceArray $notes
442
     * @return \Webservices\StructType\CompliancePerson
443
     */
444
    public function setNotes(\Webservices\ArrayType\ComplianceNoteReferenceArray $notes = null)
445
    {
446
        $this->notes = $notes;
447
        return $this;
448
    }
449
    /**
450
     * Get documents value
451
     * @return \Webservices\ArrayType\ComplianceDocumentReferenceArray
452
     */
453
    public function getDocuments()
454
    {
455
        return $this->documents;
456
    }
457
    /**
458
     * Set documents value
459
     * @param \Webservices\ArrayType\ComplianceDocumentReferenceArray $documents
460
     * @return \Webservices\StructType\CompliancePerson
461
     */
462
    public function setDocuments(\Webservices\ArrayType\ComplianceDocumentReferenceArray $documents = null)
463
    {
464
        $this->documents = $documents;
465
        return $this;
466
    }
467
    /**
468
     * Get pep_level value
469
     * @return int|null
470
     */
471
    public function getPep_level()
472
    {
473
        return $this->pep_level;
474
    }
475
    /**
476
     * Set pep_level value
477
     * @param int $pep_level
478
     * @return \Webservices\StructType\CompliancePerson
479
     */
480
    public function setPep_level($pep_level = null)
481
    {
482
        // validation for constraint: int
483
        if (!is_null($pep_level) && !is_numeric($pep_level)) {
0 ignored issues
show
introduced by
The condition ! is_null($pep_level) && ! is_numeric($pep_level) can never be true.
Loading history...
484
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($pep_level)), __LINE__);
485
        }
486
        $this->pep_level = $pep_level;
487
        return $this;
488
    }
489
    /**
490
     * Get first_name value
491
     * @return string|null
492
     */
493
    public function getFirst_name()
494
    {
495
        return $this->first_name;
496
    }
497
    /**
498
     * Set first_name value
499
     * @param string $first_name
500
     * @return \Webservices\StructType\CompliancePerson
501
     */
502
    public function setFirst_name($first_name = null)
503
    {
504
        // validation for constraint: string
505
        if (!is_null($first_name) && !is_string($first_name)) {
0 ignored issues
show
introduced by
The condition ! is_null($first_name) &... is_string($first_name) can never be true.
Loading history...
506
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($first_name)), __LINE__);
507
        }
508
        $this->first_name = $first_name;
509
        return $this;
510
    }
511
    /**
512
     * Get middle_name value
513
     * @return string|null
514
     */
515
    public function getMiddle_name()
516
    {
517
        return $this->middle_name;
518
    }
519
    /**
520
     * Set middle_name value
521
     * @param string $middle_name
522
     * @return \Webservices\StructType\CompliancePerson
523
     */
524
    public function setMiddle_name($middle_name = null)
525
    {
526
        // validation for constraint: string
527
        if (!is_null($middle_name) && !is_string($middle_name)) {
0 ignored issues
show
introduced by
The condition ! is_null($middle_name) ...is_string($middle_name) can never be true.
Loading history...
528
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($middle_name)), __LINE__);
529
        }
530
        $this->middle_name = $middle_name;
531
        return $this;
532
    }
533
    /**
534
     * Get gender value
535
     * @return string|null
536
     */
537
    public function getGender()
538
    {
539
        return $this->gender;
540
    }
541
    /**
542
     * Set gender value
543
     * @param string $gender
544
     * @return \Webservices\StructType\CompliancePerson
545
     */
546
    public function setGender($gender = null)
547
    {
548
        // validation for constraint: string
549
        if (!is_null($gender) && !is_string($gender)) {
0 ignored issues
show
introduced by
The condition ! is_null($gender) && ! is_string($gender) can never be true.
Loading history...
550
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($gender)), __LINE__);
551
        }
552
        $this->gender = $gender;
553
        return $this;
554
    }
555
    /**
556
     * Get date_of_birth value
557
     * @return string|null
558
     */
559
    public function getDate_of_birth()
560
    {
561
        return $this->date_of_birth;
562
    }
563
    /**
564
     * Set date_of_birth value
565
     * @param string $date_of_birth
566
     * @return \Webservices\StructType\CompliancePerson
567
     */
568
    public function setDate_of_birth($date_of_birth = null)
569
    {
570
        // validation for constraint: string
571
        if (!is_null($date_of_birth) && !is_string($date_of_birth)) {
0 ignored issues
show
introduced by
The condition ! is_null($date_of_birth..._string($date_of_birth) can never be true.
Loading history...
572
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_of_birth)), __LINE__);
573
        }
574
        $this->date_of_birth = $date_of_birth;
575
        return $this;
576
    }
577
    /**
578
     * Get date_of_death value
579
     * @return string|null
580
     */
581
    public function getDate_of_death()
582
    {
583
        return $this->date_of_death;
584
    }
585
    /**
586
     * Set date_of_death value
587
     * @param string $date_of_death
588
     * @return \Webservices\StructType\CompliancePerson
589
     */
590
    public function setDate_of_death($date_of_death = null)
591
    {
592
        // validation for constraint: string
593
        if (!is_null($date_of_death) && !is_string($date_of_death)) {
0 ignored issues
show
introduced by
The condition ! is_null($date_of_death..._string($date_of_death) can never be true.
Loading history...
594
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_of_death)), __LINE__);
595
        }
596
        $this->date_of_death = $date_of_death;
597
        return $this;
598
    }
599
    /**
600
     * Get deceased value
601
     * @return bool|null
602
     */
603
    public function getDeceased()
604
    {
605
        return $this->deceased;
606
    }
607
    /**
608
     * Set deceased value
609
     * @param bool $deceased
610
     * @return \Webservices\StructType\CompliancePerson
611
     */
612
    public function setDeceased($deceased = null)
613
    {
614
        // validation for constraint: boolean
615
        if (!is_null($deceased) && !is_bool($deceased)) {
0 ignored issues
show
introduced by
The condition ! is_null($deceased) && ! is_bool($deceased) can never be true.
Loading history...
616
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($deceased)), __LINE__);
617
        }
618
        $this->deceased = $deceased;
619
        return $this;
620
    }
621
    /**
622
     * Get nationality value
623
     * @return string|null
624
     */
625
    public function getNationality()
626
    {
627
        return $this->nationality;
628
    }
629
    /**
630
     * Set nationality value
631
     * @param string $nationality
632
     * @return \Webservices\StructType\CompliancePerson
633
     */
634
    public function setNationality($nationality = null)
635
    {
636
        // validation for constraint: string
637
        if (!is_null($nationality) && !is_string($nationality)) {
0 ignored issues
show
introduced by
The condition ! is_null($nationality) ...is_string($nationality) can never be true.
Loading history...
638
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($nationality)), __LINE__);
639
        }
640
        $this->nationality = $nationality;
641
        return $this;
642
    }
643
    /**
644
     * Get image_url value
645
     * @return string|null
646
     */
647
    public function getImage_url()
648
    {
649
        return $this->image_url;
650
    }
651
    /**
652
     * Set image_url value
653
     * @param string $image_url
654
     * @return \Webservices\StructType\CompliancePerson
655
     */
656
    public function setImage_url($image_url = null)
657
    {
658
        // validation for constraint: string
659
        if (!is_null($image_url) && !is_string($image_url)) {
0 ignored issues
show
introduced by
The condition ! is_null($image_url) && ! is_string($image_url) can never be true.
Loading history...
660
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($image_url)), __LINE__);
661
        }
662
        $this->image_url = $image_url;
663
        return $this;
664
    }
665
    /**
666
     * Get telephone_number value
667
     * @return string|null
668
     */
669
    public function getTelephone_number()
670
    {
671
        return $this->telephone_number;
672
    }
673
    /**
674
     * Set telephone_number value
675
     * @param string $telephone_number
676
     * @return \Webservices\StructType\CompliancePerson
677
     */
678
    public function setTelephone_number($telephone_number = null)
679
    {
680
        // validation for constraint: string
681
        if (!is_null($telephone_number) && !is_string($telephone_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($telephone_num...ring($telephone_number) can never be true.
Loading history...
682
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($telephone_number)), __LINE__);
683
        }
684
        $this->telephone_number = $telephone_number;
685
        return $this;
686
    }
687
    /**
688
     * Get fax_number value
689
     * @return string|null
690
     */
691
    public function getFax_number()
692
    {
693
        return $this->fax_number;
694
    }
695
    /**
696
     * Set fax_number value
697
     * @param string $fax_number
698
     * @return \Webservices\StructType\CompliancePerson
699
     */
700
    public function setFax_number($fax_number = null)
701
    {
702
        // validation for constraint: string
703
        if (!is_null($fax_number) && !is_string($fax_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($fax_number) &... is_string($fax_number) can never be true.
Loading history...
704
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($fax_number)), __LINE__);
705
        }
706
        $this->fax_number = $fax_number;
707
        return $this;
708
    }
709
    /**
710
     * Get mobile_number value
711
     * @return string|null
712
     */
713
    public function getMobile_number()
714
    {
715
        return $this->mobile_number;
716
    }
717
    /**
718
     * Set mobile_number value
719
     * @param string $mobile_number
720
     * @return \Webservices\StructType\CompliancePerson
721
     */
722
    public function setMobile_number($mobile_number = null)
723
    {
724
        // validation for constraint: string
725
        if (!is_null($mobile_number) && !is_string($mobile_number)) {
0 ignored issues
show
introduced by
The condition ! is_null($mobile_number..._string($mobile_number) can never be true.
Loading history...
726
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mobile_number)), __LINE__);
727
        }
728
        $this->mobile_number = $mobile_number;
729
        return $this;
730
    }
731
    /**
732
     * Get email value
733
     * @return string|null
734
     */
735
    public function getEmail()
736
    {
737
        return $this->email;
738
    }
739
    /**
740
     * Set email value
741
     * @param string $email
742
     * @return \Webservices\StructType\CompliancePerson
743
     */
744
    public function setEmail($email = null)
745
    {
746
        // validation for constraint: string
747
        if (!is_null($email) && !is_string($email)) {
0 ignored issues
show
introduced by
The condition ! is_null($email) && ! is_string($email) can never be true.
Loading history...
748
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($email)), __LINE__);
749
        }
750
        $this->email = $email;
751
        return $this;
752
    }
753
    /**
754
     * Method called when an object has been exported with var_export() functions
755
     * It allows to return an object instantiated with the values
756
     * @see AbstractStructBase::__set_state()
757
     * @uses AbstractStructBase::__set_state()
758
     * @param array $array the exported values
759
     * @return \Webservices\StructType\CompliancePerson
760
     */
761
    public static function __set_state(array $array)
762
    {
763
        return parent::__set_state($array);
764
    }
765
    /**
766
     * Method returning the class name
767
     * @return string __CLASS__
768
     */
769
    public function __toString()
770
    {
771
        return __CLASS__;
772
    }
773
}
774