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