Total Complexity | 86 |
Total Lines | 680 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like TelephonySpecialNumberOrder often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use TelephonySpecialNumberOrder, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class TelephonySpecialNumberOrder 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 country |
||
30 | * Meta information extracted from the WSDL |
||
31 | * - nillable: true |
||
32 | * @var string |
||
33 | */ |
||
34 | public $country; |
||
35 | /** |
||
36 | * The aliasNumber |
||
37 | * Meta information extracted from the WSDL |
||
38 | * - nillable: true |
||
39 | * @var string |
||
40 | */ |
||
41 | public $aliasNumber; |
||
42 | /** |
||
43 | * The prefix |
||
44 | * Meta information extracted from the WSDL |
||
45 | * - nillable: true |
||
46 | * @var string |
||
47 | */ |
||
48 | public $prefix; |
||
49 | /** |
||
50 | * The category |
||
51 | * Meta information extracted from the WSDL |
||
52 | * - nillable: true |
||
53 | * @var string |
||
54 | */ |
||
55 | public $category; |
||
56 | /** |
||
57 | * The numberToReserve |
||
58 | * Meta information extracted from the WSDL |
||
59 | * - nillable: true |
||
60 | * @var string |
||
61 | */ |
||
62 | public $numberToReserve; |
||
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 streetName |
||
79 | * Meta information extracted from the WSDL |
||
80 | * - nillable: true |
||
81 | * @var string |
||
82 | */ |
||
83 | public $streetName; |
||
84 | /** |
||
85 | * The streetNumber |
||
86 | * Meta information extracted from the WSDL |
||
87 | * - nillable: true |
||
88 | * @var string |
||
89 | */ |
||
90 | public $streetNumber; |
||
91 | /** |
||
92 | * The zip |
||
93 | * Meta information extracted from the WSDL |
||
94 | * - nillable: true |
||
95 | * @var string |
||
96 | */ |
||
97 | public $zip; |
||
98 | /** |
||
99 | * The city |
||
100 | * Meta information extracted from the WSDL |
||
101 | * - nillable: true |
||
102 | * @var string |
||
103 | */ |
||
104 | public $city; |
||
105 | /** |
||
106 | * The email |
||
107 | * Meta information extracted from the WSDL |
||
108 | * - nillable: true |
||
109 | * @var string |
||
110 | */ |
||
111 | public $email; |
||
112 | /** |
||
113 | * The procedureId |
||
114 | * Meta information extracted from the WSDL |
||
115 | * - nillable: true |
||
116 | * @var int |
||
117 | */ |
||
118 | public $procedureId; |
||
119 | /** |
||
120 | * The legalForm |
||
121 | * Meta information extracted from the WSDL |
||
122 | * - nillable: true |
||
123 | * @var string |
||
124 | */ |
||
125 | public $legalForm; |
||
126 | /** |
||
127 | * The siret |
||
128 | * Meta information extracted from the WSDL |
||
129 | * - nillable: true |
||
130 | * @var string |
||
131 | */ |
||
132 | public $siret; |
||
133 | /** |
||
134 | * The ape |
||
135 | * Meta information extracted from the WSDL |
||
136 | * - nillable: true |
||
137 | * @var string |
||
138 | */ |
||
139 | public $ape; |
||
140 | /** |
||
141 | * The socialNomination |
||
142 | * Meta information extracted from the WSDL |
||
143 | * - nillable: true |
||
144 | * @var string |
||
145 | */ |
||
146 | public $socialNomination; |
||
147 | /** |
||
148 | * The displayUniversalDirectory |
||
149 | * Meta information extracted from the WSDL |
||
150 | * - nillable: true |
||
151 | * @var string |
||
152 | */ |
||
153 | public $displayUniversalDirectory; |
||
154 | /** |
||
155 | * The retractation |
||
156 | * Meta information extracted from the WSDL |
||
157 | * - nillable: true |
||
158 | * @var string |
||
159 | */ |
||
160 | public $retractation; |
||
161 | /** |
||
162 | * Constructor method for telephonySpecialNumberOrder |
||
163 | * @uses TelephonySpecialNumberOrder::setSession() |
||
164 | * @uses TelephonySpecialNumberOrder::setBillingAccount() |
||
165 | * @uses TelephonySpecialNumberOrder::setCountry() |
||
166 | * @uses TelephonySpecialNumberOrder::setAliasNumber() |
||
167 | * @uses TelephonySpecialNumberOrder::setPrefix() |
||
168 | * @uses TelephonySpecialNumberOrder::setCategory() |
||
169 | * @uses TelephonySpecialNumberOrder::setNumberToReserve() |
||
170 | * @uses TelephonySpecialNumberOrder::setName() |
||
171 | * @uses TelephonySpecialNumberOrder::setFirstname() |
||
172 | * @uses TelephonySpecialNumberOrder::setStreetName() |
||
173 | * @uses TelephonySpecialNumberOrder::setStreetNumber() |
||
174 | * @uses TelephonySpecialNumberOrder::setZip() |
||
175 | * @uses TelephonySpecialNumberOrder::setCity() |
||
176 | * @uses TelephonySpecialNumberOrder::setEmail() |
||
177 | * @uses TelephonySpecialNumberOrder::setProcedureId() |
||
178 | * @uses TelephonySpecialNumberOrder::setLegalForm() |
||
179 | * @uses TelephonySpecialNumberOrder::setSiret() |
||
180 | * @uses TelephonySpecialNumberOrder::setApe() |
||
181 | * @uses TelephonySpecialNumberOrder::setSocialNomination() |
||
182 | * @uses TelephonySpecialNumberOrder::setDisplayUniversalDirectory() |
||
183 | * @uses TelephonySpecialNumberOrder::setRetractation() |
||
184 | * @param string $session |
||
185 | * @param string $billingAccount |
||
186 | * @param string $country |
||
187 | * @param string $aliasNumber |
||
188 | * @param string $prefix |
||
189 | * @param string $category |
||
190 | * @param string $numberToReserve |
||
191 | * @param string $name |
||
192 | * @param string $firstname |
||
193 | * @param string $streetName |
||
194 | * @param string $streetNumber |
||
195 | * @param string $zip |
||
196 | * @param string $city |
||
197 | * @param string $email |
||
198 | * @param int $procedureId |
||
199 | * @param string $legalForm |
||
200 | * @param string $siret |
||
201 | * @param string $ape |
||
202 | * @param string $socialNomination |
||
203 | * @param string $displayUniversalDirectory |
||
204 | * @param string $retractation |
||
205 | */ |
||
206 | public function __construct($session = null, $billingAccount = null, $country = null, $aliasNumber = null, $prefix = null, $category = null, $numberToReserve = null, $name = null, $firstname = null, $streetName = null, $streetNumber = null, $zip = null, $city = null, $email = null, $procedureId = null, $legalForm = null, $siret = null, $ape = null, $socialNomination = null, $displayUniversalDirectory = null, $retractation = null) |
||
207 | { |
||
208 | $this |
||
209 | ->setSession($session) |
||
210 | ->setBillingAccount($billingAccount) |
||
211 | ->setCountry($country) |
||
212 | ->setAliasNumber($aliasNumber) |
||
213 | ->setPrefix($prefix) |
||
214 | ->setCategory($category) |
||
215 | ->setNumberToReserve($numberToReserve) |
||
216 | ->setName($name) |
||
217 | ->setFirstname($firstname) |
||
218 | ->setStreetName($streetName) |
||
219 | ->setStreetNumber($streetNumber) |
||
220 | ->setZip($zip) |
||
221 | ->setCity($city) |
||
222 | ->setEmail($email) |
||
223 | ->setProcedureId($procedureId) |
||
224 | ->setLegalForm($legalForm) |
||
225 | ->setSiret($siret) |
||
226 | ->setApe($ape) |
||
227 | ->setSocialNomination($socialNomination) |
||
228 | ->setDisplayUniversalDirectory($displayUniversalDirectory) |
||
229 | ->setRetractation($retractation); |
||
230 | } |
||
231 | /** |
||
232 | * Get session value |
||
233 | * @return string|null |
||
234 | */ |
||
235 | public function getSession() |
||
236 | { |
||
237 | return $this->session; |
||
238 | } |
||
239 | /** |
||
240 | * Set session value |
||
241 | * @param string $session |
||
242 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
243 | */ |
||
244 | public function setSession($session = null) |
||
245 | { |
||
246 | // validation for constraint: string |
||
247 | if (!is_null($session) && !is_string($session)) { |
||
|
|||
248 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($session, true), gettype($session)), __LINE__); |
||
249 | } |
||
250 | $this->session = $session; |
||
251 | return $this; |
||
252 | } |
||
253 | /** |
||
254 | * Get billingAccount value |
||
255 | * @return string|null |
||
256 | */ |
||
257 | public function getBillingAccount() |
||
258 | { |
||
259 | return $this->billingAccount; |
||
260 | } |
||
261 | /** |
||
262 | * Set billingAccount value |
||
263 | * @param string $billingAccount |
||
264 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
265 | */ |
||
266 | public function setBillingAccount($billingAccount = null) |
||
267 | { |
||
268 | // validation for constraint: string |
||
269 | if (!is_null($billingAccount) && !is_string($billingAccount)) { |
||
270 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($billingAccount, true), gettype($billingAccount)), __LINE__); |
||
271 | } |
||
272 | $this->billingAccount = $billingAccount; |
||
273 | return $this; |
||
274 | } |
||
275 | /** |
||
276 | * Get country value |
||
277 | * @return string|null |
||
278 | */ |
||
279 | public function getCountry() |
||
280 | { |
||
281 | return $this->country; |
||
282 | } |
||
283 | /** |
||
284 | * Set country value |
||
285 | * @param string $country |
||
286 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
287 | */ |
||
288 | public function setCountry($country = null) |
||
289 | { |
||
290 | // validation for constraint: string |
||
291 | if (!is_null($country) && !is_string($country)) { |
||
292 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($country, true), gettype($country)), __LINE__); |
||
293 | } |
||
294 | $this->country = $country; |
||
295 | return $this; |
||
296 | } |
||
297 | /** |
||
298 | * Get aliasNumber value |
||
299 | * @return string|null |
||
300 | */ |
||
301 | public function getAliasNumber() |
||
302 | { |
||
303 | return $this->aliasNumber; |
||
304 | } |
||
305 | /** |
||
306 | * Set aliasNumber value |
||
307 | * @param string $aliasNumber |
||
308 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
309 | */ |
||
310 | public function setAliasNumber($aliasNumber = null) |
||
311 | { |
||
312 | // validation for constraint: string |
||
313 | if (!is_null($aliasNumber) && !is_string($aliasNumber)) { |
||
314 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($aliasNumber, true), gettype($aliasNumber)), __LINE__); |
||
315 | } |
||
316 | $this->aliasNumber = $aliasNumber; |
||
317 | return $this; |
||
318 | } |
||
319 | /** |
||
320 | * Get prefix value |
||
321 | * @return string|null |
||
322 | */ |
||
323 | public function getPrefix() |
||
324 | { |
||
325 | return $this->prefix; |
||
326 | } |
||
327 | /** |
||
328 | * Set prefix value |
||
329 | * @param string $prefix |
||
330 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
331 | */ |
||
332 | public function setPrefix($prefix = null) |
||
333 | { |
||
334 | // validation for constraint: string |
||
335 | if (!is_null($prefix) && !is_string($prefix)) { |
||
336 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($prefix, true), gettype($prefix)), __LINE__); |
||
337 | } |
||
338 | $this->prefix = $prefix; |
||
339 | return $this; |
||
340 | } |
||
341 | /** |
||
342 | * Get category value |
||
343 | * @return string|null |
||
344 | */ |
||
345 | public function getCategory() |
||
346 | { |
||
347 | return $this->category; |
||
348 | } |
||
349 | /** |
||
350 | * Set category value |
||
351 | * @param string $category |
||
352 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
353 | */ |
||
354 | public function setCategory($category = null) |
||
362 | } |
||
363 | /** |
||
364 | * Get numberToReserve value |
||
365 | * @return string|null |
||
366 | */ |
||
367 | public function getNumberToReserve() |
||
368 | { |
||
369 | return $this->numberToReserve; |
||
370 | } |
||
371 | /** |
||
372 | * Set numberToReserve value |
||
373 | * @param string $numberToReserve |
||
374 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
375 | */ |
||
376 | public function setNumberToReserve($numberToReserve = null) |
||
377 | { |
||
378 | // validation for constraint: string |
||
379 | if (!is_null($numberToReserve) && !is_string($numberToReserve)) { |
||
380 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($numberToReserve, true), gettype($numberToReserve)), __LINE__); |
||
381 | } |
||
382 | $this->numberToReserve = $numberToReserve; |
||
383 | return $this; |
||
384 | } |
||
385 | /** |
||
386 | * Get name value |
||
387 | * @return string|null |
||
388 | */ |
||
389 | public function getName() |
||
390 | { |
||
391 | return $this->name; |
||
392 | } |
||
393 | /** |
||
394 | * Set name value |
||
395 | * @param string $name |
||
396 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
397 | */ |
||
398 | public function setName($name = null) |
||
399 | { |
||
400 | // validation for constraint: string |
||
401 | if (!is_null($name) && !is_string($name)) { |
||
402 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__); |
||
403 | } |
||
404 | $this->name = $name; |
||
405 | return $this; |
||
406 | } |
||
407 | /** |
||
408 | * Get firstname value |
||
409 | * @return string|null |
||
410 | */ |
||
411 | public function getFirstname() |
||
412 | { |
||
413 | return $this->firstname; |
||
414 | } |
||
415 | /** |
||
416 | * Set firstname value |
||
417 | * @param string $firstname |
||
418 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
419 | */ |
||
420 | public function setFirstname($firstname = null) |
||
421 | { |
||
422 | // validation for constraint: string |
||
423 | if (!is_null($firstname) && !is_string($firstname)) { |
||
424 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstname, true), gettype($firstname)), __LINE__); |
||
425 | } |
||
426 | $this->firstname = $firstname; |
||
427 | return $this; |
||
428 | } |
||
429 | /** |
||
430 | * Get streetName value |
||
431 | * @return string|null |
||
432 | */ |
||
433 | public function getStreetName() |
||
434 | { |
||
435 | return $this->streetName; |
||
436 | } |
||
437 | /** |
||
438 | * Set streetName value |
||
439 | * @param string $streetName |
||
440 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
441 | */ |
||
442 | public function setStreetName($streetName = null) |
||
443 | { |
||
444 | // validation for constraint: string |
||
445 | if (!is_null($streetName) && !is_string($streetName)) { |
||
446 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetName, true), gettype($streetName)), __LINE__); |
||
447 | } |
||
448 | $this->streetName = $streetName; |
||
449 | return $this; |
||
450 | } |
||
451 | /** |
||
452 | * Get streetNumber value |
||
453 | * @return string|null |
||
454 | */ |
||
455 | public function getStreetNumber() |
||
456 | { |
||
457 | return $this->streetNumber; |
||
458 | } |
||
459 | /** |
||
460 | * Set streetNumber value |
||
461 | * @param string $streetNumber |
||
462 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
463 | */ |
||
464 | public function setStreetNumber($streetNumber = null) |
||
465 | { |
||
466 | // validation for constraint: string |
||
467 | if (!is_null($streetNumber) && !is_string($streetNumber)) { |
||
468 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetNumber, true), gettype($streetNumber)), __LINE__); |
||
469 | } |
||
470 | $this->streetNumber = $streetNumber; |
||
471 | return $this; |
||
472 | } |
||
473 | /** |
||
474 | * Get zip value |
||
475 | * @return string|null |
||
476 | */ |
||
477 | public function getZip() |
||
478 | { |
||
479 | return $this->zip; |
||
480 | } |
||
481 | /** |
||
482 | * Set zip value |
||
483 | * @param string $zip |
||
484 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
485 | */ |
||
486 | public function setZip($zip = null) |
||
487 | { |
||
488 | // validation for constraint: string |
||
489 | if (!is_null($zip) && !is_string($zip)) { |
||
490 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zip, true), gettype($zip)), __LINE__); |
||
491 | } |
||
492 | $this->zip = $zip; |
||
493 | return $this; |
||
494 | } |
||
495 | /** |
||
496 | * Get city value |
||
497 | * @return string|null |
||
498 | */ |
||
499 | public function getCity() |
||
500 | { |
||
501 | return $this->city; |
||
502 | } |
||
503 | /** |
||
504 | * Set city value |
||
505 | * @param string $city |
||
506 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
507 | */ |
||
508 | public function setCity($city = null) |
||
509 | { |
||
510 | // validation for constraint: string |
||
511 | if (!is_null($city) && !is_string($city)) { |
||
512 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($city, true), gettype($city)), __LINE__); |
||
513 | } |
||
514 | $this->city = $city; |
||
515 | return $this; |
||
516 | } |
||
517 | /** |
||
518 | * Get email value |
||
519 | * @return string|null |
||
520 | */ |
||
521 | public function getEmail() |
||
522 | { |
||
523 | return $this->email; |
||
524 | } |
||
525 | /** |
||
526 | * Set email value |
||
527 | * @param string $email |
||
528 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
529 | */ |
||
530 | public function setEmail($email = null) |
||
531 | { |
||
532 | // validation for constraint: string |
||
533 | if (!is_null($email) && !is_string($email)) { |
||
534 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($email, true), gettype($email)), __LINE__); |
||
535 | } |
||
536 | $this->email = $email; |
||
537 | return $this; |
||
538 | } |
||
539 | /** |
||
540 | * Get procedureId value |
||
541 | * @return int|null |
||
542 | */ |
||
543 | public function getProcedureId() |
||
544 | { |
||
545 | return $this->procedureId; |
||
546 | } |
||
547 | /** |
||
548 | * Set procedureId value |
||
549 | * @param int $procedureId |
||
550 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
551 | */ |
||
552 | public function setProcedureId($procedureId = null) |
||
553 | { |
||
554 | // validation for constraint: int |
||
555 | if (!is_null($procedureId) && !(is_int($procedureId) || ctype_digit($procedureId))) { |
||
556 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($procedureId, true), gettype($procedureId)), __LINE__); |
||
557 | } |
||
558 | $this->procedureId = $procedureId; |
||
559 | return $this; |
||
560 | } |
||
561 | /** |
||
562 | * Get legalForm value |
||
563 | * @return string|null |
||
564 | */ |
||
565 | public function getLegalForm() |
||
568 | } |
||
569 | /** |
||
570 | * Set legalForm value |
||
571 | * @param string $legalForm |
||
572 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
573 | */ |
||
574 | public function setLegalForm($legalForm = null) |
||
575 | { |
||
576 | // validation for constraint: string |
||
577 | if (!is_null($legalForm) && !is_string($legalForm)) { |
||
578 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalForm, true), gettype($legalForm)), __LINE__); |
||
579 | } |
||
580 | $this->legalForm = $legalForm; |
||
581 | return $this; |
||
582 | } |
||
583 | /** |
||
584 | * Get siret value |
||
585 | * @return string|null |
||
586 | */ |
||
587 | public function getSiret() |
||
588 | { |
||
589 | return $this->siret; |
||
590 | } |
||
591 | /** |
||
592 | * Set siret value |
||
593 | * @param string $siret |
||
594 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
595 | */ |
||
596 | public function setSiret($siret = null) |
||
597 | { |
||
598 | // validation for constraint: string |
||
599 | if (!is_null($siret) && !is_string($siret)) { |
||
600 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($siret, true), gettype($siret)), __LINE__); |
||
601 | } |
||
602 | $this->siret = $siret; |
||
603 | return $this; |
||
604 | } |
||
605 | /** |
||
606 | * Get ape value |
||
607 | * @return string|null |
||
608 | */ |
||
609 | public function getApe() |
||
610 | { |
||
611 | return $this->ape; |
||
612 | } |
||
613 | /** |
||
614 | * Set ape value |
||
615 | * @param string $ape |
||
616 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
617 | */ |
||
618 | public function setApe($ape = null) |
||
619 | { |
||
620 | // validation for constraint: string |
||
621 | if (!is_null($ape) && !is_string($ape)) { |
||
622 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($ape, true), gettype($ape)), __LINE__); |
||
623 | } |
||
624 | $this->ape = $ape; |
||
625 | return $this; |
||
626 | } |
||
627 | /** |
||
628 | * Get socialNomination value |
||
629 | * @return string|null |
||
630 | */ |
||
631 | public function getSocialNomination() |
||
632 | { |
||
633 | return $this->socialNomination; |
||
634 | } |
||
635 | /** |
||
636 | * Set socialNomination value |
||
637 | * @param string $socialNomination |
||
638 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
639 | */ |
||
640 | public function setSocialNomination($socialNomination = null) |
||
641 | { |
||
642 | // validation for constraint: string |
||
643 | if (!is_null($socialNomination) && !is_string($socialNomination)) { |
||
644 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($socialNomination, true), gettype($socialNomination)), __LINE__); |
||
645 | } |
||
646 | $this->socialNomination = $socialNomination; |
||
647 | return $this; |
||
648 | } |
||
649 | /** |
||
650 | * Get displayUniversalDirectory value |
||
651 | * @return string|null |
||
652 | */ |
||
653 | public function getDisplayUniversalDirectory() |
||
654 | { |
||
655 | return $this->displayUniversalDirectory; |
||
656 | } |
||
657 | /** |
||
658 | * Set displayUniversalDirectory value |
||
659 | * @param string $displayUniversalDirectory |
||
660 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
661 | */ |
||
662 | public function setDisplayUniversalDirectory($displayUniversalDirectory = null) |
||
663 | { |
||
664 | // validation for constraint: string |
||
665 | if (!is_null($displayUniversalDirectory) && !is_string($displayUniversalDirectory)) { |
||
666 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($displayUniversalDirectory, true), gettype($displayUniversalDirectory)), __LINE__); |
||
667 | } |
||
668 | $this->displayUniversalDirectory = $displayUniversalDirectory; |
||
669 | return $this; |
||
670 | } |
||
671 | /** |
||
672 | * Get retractation value |
||
673 | * @return string|null |
||
674 | */ |
||
675 | public function getRetractation() |
||
678 | } |
||
679 | /** |
||
680 | * Set retractation value |
||
681 | * @param string $retractation |
||
682 | * @return \Ovh\StructType\TelephonySpecialNumberOrder |
||
683 | */ |
||
684 | public function setRetractation($retractation = null) |
||
685 | { |
||
686 | // validation for constraint: string |
||
687 | if (!is_null($retractation) && !is_string($retractation)) { |
||
688 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($retractation, true), gettype($retractation)), __LINE__); |
||
692 | } |
||
693 | } |
||
694 |