TelephonyPortabilityOrder::setZip()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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