Total Complexity | 99 |
Total Lines | 804 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like TelephonyPortabilityOrderSpecialNumber 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 TelephonyPortabilityOrderSpecialNumber, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class TelephonyPortabilityOrderSpecialNumber 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 category |
||
170 | * Meta information extracted from the WSDL |
||
171 | * - nillable: true |
||
172 | * @var string |
||
173 | */ |
||
174 | public $category; |
||
175 | /** |
||
176 | * The contactName |
||
177 | * Meta information extracted from the WSDL |
||
178 | * - nillable: true |
||
179 | * @var string |
||
180 | */ |
||
181 | public $contactName; |
||
182 | /** |
||
183 | * The contactNumber |
||
184 | * Meta information extracted from the WSDL |
||
185 | * - nillable: true |
||
186 | * @var string |
||
187 | */ |
||
188 | public $contactNumber; |
||
189 | /** |
||
190 | * Constructor method for telephonyPortabilityOrderSpecialNumber |
||
191 | * @uses TelephonyPortabilityOrderSpecialNumber::setSession() |
||
192 | * @uses TelephonyPortabilityOrderSpecialNumber::setBillingAccount() |
||
193 | * @uses TelephonyPortabilityOrderSpecialNumber::setOffer() |
||
194 | * @uses TelephonyPortabilityOrderSpecialNumber::setDesireDate() |
||
195 | * @uses TelephonyPortabilityOrderSpecialNumber::setCallNumber() |
||
196 | * @uses TelephonyPortabilityOrderSpecialNumber::setExtraNumbers() |
||
197 | * @uses TelephonyPortabilityOrderSpecialNumber::setLegalForm() |
||
198 | * @uses TelephonyPortabilityOrderSpecialNumber::setName() |
||
199 | * @uses TelephonyPortabilityOrderSpecialNumber::setFirstName() |
||
200 | * @uses TelephonyPortabilityOrderSpecialNumber::setSiret() |
||
201 | * @uses TelephonyPortabilityOrderSpecialNumber::setStreetNumber() |
||
202 | * @uses TelephonyPortabilityOrderSpecialNumber::setStreetNumberExtra() |
||
203 | * @uses TelephonyPortabilityOrderSpecialNumber::setStreetType() |
||
204 | * @uses TelephonyPortabilityOrderSpecialNumber::setStreetName() |
||
205 | * @uses TelephonyPortabilityOrderSpecialNumber::setBuilding() |
||
206 | * @uses TelephonyPortabilityOrderSpecialNumber::setStair() |
||
207 | * @uses TelephonyPortabilityOrderSpecialNumber::setFloor() |
||
208 | * @uses TelephonyPortabilityOrderSpecialNumber::setDoor() |
||
209 | * @uses TelephonyPortabilityOrderSpecialNumber::setZip() |
||
210 | * @uses TelephonyPortabilityOrderSpecialNumber::setCity() |
||
211 | * @uses TelephonyPortabilityOrderSpecialNumber::setCountry() |
||
212 | * @uses TelephonyPortabilityOrderSpecialNumber::setDisplayUniversalDirectory() |
||
213 | * @uses TelephonyPortabilityOrderSpecialNumber::setCategory() |
||
214 | * @uses TelephonyPortabilityOrderSpecialNumber::setContactName() |
||
215 | * @uses TelephonyPortabilityOrderSpecialNumber::setContactNumber() |
||
216 | * @param string $session |
||
217 | * @param string $billingAccount |
||
218 | * @param string $offer |
||
219 | * @param string $desireDate |
||
220 | * @param string $callNumber |
||
221 | * @param \Ovh\ArrayType\MyArrayOfStringType $extraNumbers |
||
222 | * @param string $legalForm |
||
223 | * @param string $name |
||
224 | * @param string $firstName |
||
225 | * @param string $siret |
||
226 | * @param string $streetNumber |
||
227 | * @param string $streetNumberExtra |
||
228 | * @param string $streetType |
||
229 | * @param string $streetName |
||
230 | * @param string $building |
||
231 | * @param string $stair |
||
232 | * @param string $floor |
||
233 | * @param string $door |
||
234 | * @param string $zip |
||
235 | * @param string $city |
||
236 | * @param string $country |
||
237 | * @param string $displayUniversalDirectory |
||
238 | * @param string $category |
||
239 | * @param string $contactName |
||
240 | * @param string $contactNumber |
||
241 | */ |
||
242 | 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, $category = null, $contactName = null, $contactNumber = null) |
||
243 | { |
||
244 | $this |
||
245 | ->setSession($session) |
||
246 | ->setBillingAccount($billingAccount) |
||
247 | ->setOffer($offer) |
||
248 | ->setDesireDate($desireDate) |
||
249 | ->setCallNumber($callNumber) |
||
250 | ->setExtraNumbers($extraNumbers) |
||
251 | ->setLegalForm($legalForm) |
||
252 | ->setName($name) |
||
253 | ->setFirstName($firstName) |
||
254 | ->setSiret($siret) |
||
255 | ->setStreetNumber($streetNumber) |
||
256 | ->setStreetNumberExtra($streetNumberExtra) |
||
257 | ->setStreetType($streetType) |
||
258 | ->setStreetName($streetName) |
||
259 | ->setBuilding($building) |
||
260 | ->setStair($stair) |
||
261 | ->setFloor($floor) |
||
262 | ->setDoor($door) |
||
263 | ->setZip($zip) |
||
264 | ->setCity($city) |
||
265 | ->setCountry($country) |
||
266 | ->setDisplayUniversalDirectory($displayUniversalDirectory) |
||
267 | ->setCategory($category) |
||
268 | ->setContactName($contactName) |
||
269 | ->setContactNumber($contactNumber); |
||
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\TelephonyPortabilityOrderSpecialNumber |
||
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 billingAccount value |
||
295 | * @return string|null |
||
296 | */ |
||
297 | public function getBillingAccount() |
||
298 | { |
||
299 | return $this->billingAccount; |
||
300 | } |
||
301 | /** |
||
302 | * Set billingAccount value |
||
303 | * @param string $billingAccount |
||
304 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
305 | */ |
||
306 | public function setBillingAccount($billingAccount = null) |
||
307 | { |
||
308 | // validation for constraint: string |
||
309 | if (!is_null($billingAccount) && !is_string($billingAccount)) { |
||
310 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($billingAccount, true), gettype($billingAccount)), __LINE__); |
||
311 | } |
||
312 | $this->billingAccount = $billingAccount; |
||
313 | return $this; |
||
314 | } |
||
315 | /** |
||
316 | * Get offer value |
||
317 | * @return string|null |
||
318 | */ |
||
319 | public function getOffer() |
||
320 | { |
||
321 | return $this->offer; |
||
322 | } |
||
323 | /** |
||
324 | * Set offer value |
||
325 | * @param string $offer |
||
326 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
327 | */ |
||
328 | public function setOffer($offer = null) |
||
329 | { |
||
330 | // validation for constraint: string |
||
331 | if (!is_null($offer) && !is_string($offer)) { |
||
332 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($offer, true), gettype($offer)), __LINE__); |
||
333 | } |
||
334 | $this->offer = $offer; |
||
335 | return $this; |
||
336 | } |
||
337 | /** |
||
338 | * Get desireDate value |
||
339 | * @return string|null |
||
340 | */ |
||
341 | public function getDesireDate() |
||
342 | { |
||
343 | return $this->desireDate; |
||
344 | } |
||
345 | /** |
||
346 | * Set desireDate value |
||
347 | * @param string $desireDate |
||
348 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
349 | */ |
||
350 | public function setDesireDate($desireDate = null) |
||
351 | { |
||
352 | // validation for constraint: string |
||
353 | if (!is_null($desireDate) && !is_string($desireDate)) { |
||
354 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($desireDate, true), gettype($desireDate)), __LINE__); |
||
355 | } |
||
356 | $this->desireDate = $desireDate; |
||
357 | return $this; |
||
358 | } |
||
359 | /** |
||
360 | * Get callNumber value |
||
361 | * @return string|null |
||
362 | */ |
||
363 | public function getCallNumber() |
||
364 | { |
||
365 | return $this->callNumber; |
||
366 | } |
||
367 | /** |
||
368 | * Set callNumber value |
||
369 | * @param string $callNumber |
||
370 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
371 | */ |
||
372 | public function setCallNumber($callNumber = null) |
||
373 | { |
||
374 | // validation for constraint: string |
||
375 | if (!is_null($callNumber) && !is_string($callNumber)) { |
||
376 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($callNumber, true), gettype($callNumber)), __LINE__); |
||
377 | } |
||
378 | $this->callNumber = $callNumber; |
||
379 | return $this; |
||
380 | } |
||
381 | /** |
||
382 | * Get extraNumbers value |
||
383 | * @return \Ovh\ArrayType\MyArrayOfStringType|null |
||
384 | */ |
||
385 | public function getExtraNumbers() |
||
386 | { |
||
387 | return $this->extraNumbers; |
||
388 | } |
||
389 | /** |
||
390 | * Set extraNumbers value |
||
391 | * @param \Ovh\ArrayType\MyArrayOfStringType $extraNumbers |
||
392 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
393 | */ |
||
394 | public function setExtraNumbers(\Ovh\ArrayType\MyArrayOfStringType $extraNumbers = null) |
||
395 | { |
||
396 | $this->extraNumbers = $extraNumbers; |
||
397 | return $this; |
||
398 | } |
||
399 | /** |
||
400 | * Get legalForm value |
||
401 | * @return string|null |
||
402 | */ |
||
403 | public function getLegalForm() |
||
404 | { |
||
405 | return $this->legalForm; |
||
406 | } |
||
407 | /** |
||
408 | * Set legalForm value |
||
409 | * @param string $legalForm |
||
410 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
411 | */ |
||
412 | public function setLegalForm($legalForm = null) |
||
413 | { |
||
414 | // validation for constraint: string |
||
415 | if (!is_null($legalForm) && !is_string($legalForm)) { |
||
416 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalForm, true), gettype($legalForm)), __LINE__); |
||
417 | } |
||
418 | $this->legalForm = $legalForm; |
||
419 | return $this; |
||
420 | } |
||
421 | /** |
||
422 | * Get name value |
||
423 | * @return string|null |
||
424 | */ |
||
425 | public function getName() |
||
426 | { |
||
427 | return $this->name; |
||
428 | } |
||
429 | /** |
||
430 | * Set name value |
||
431 | * @param string $name |
||
432 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
433 | */ |
||
434 | public function setName($name = null) |
||
435 | { |
||
436 | // validation for constraint: string |
||
437 | if (!is_null($name) && !is_string($name)) { |
||
438 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__); |
||
439 | } |
||
440 | $this->name = $name; |
||
441 | return $this; |
||
442 | } |
||
443 | /** |
||
444 | * Get firstName value |
||
445 | * @return string|null |
||
446 | */ |
||
447 | public function getFirstName() |
||
448 | { |
||
449 | return $this->firstName; |
||
450 | } |
||
451 | /** |
||
452 | * Set firstName value |
||
453 | * @param string $firstName |
||
454 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
455 | */ |
||
456 | public function setFirstName($firstName = null) |
||
457 | { |
||
458 | // validation for constraint: string |
||
459 | if (!is_null($firstName) && !is_string($firstName)) { |
||
460 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstName, true), gettype($firstName)), __LINE__); |
||
461 | } |
||
462 | $this->firstName = $firstName; |
||
463 | return $this; |
||
464 | } |
||
465 | /** |
||
466 | * Get siret value |
||
467 | * @return string|null |
||
468 | */ |
||
469 | public function getSiret() |
||
470 | { |
||
471 | return $this->siret; |
||
472 | } |
||
473 | /** |
||
474 | * Set siret value |
||
475 | * @param string $siret |
||
476 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
477 | */ |
||
478 | public function setSiret($siret = null) |
||
479 | { |
||
480 | // validation for constraint: string |
||
481 | if (!is_null($siret) && !is_string($siret)) { |
||
482 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($siret, true), gettype($siret)), __LINE__); |
||
483 | } |
||
484 | $this->siret = $siret; |
||
485 | return $this; |
||
486 | } |
||
487 | /** |
||
488 | * Get streetNumber value |
||
489 | * @return string|null |
||
490 | */ |
||
491 | public function getStreetNumber() |
||
492 | { |
||
493 | return $this->streetNumber; |
||
494 | } |
||
495 | /** |
||
496 | * Set streetNumber value |
||
497 | * @param string $streetNumber |
||
498 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
499 | */ |
||
500 | public function setStreetNumber($streetNumber = null) |
||
501 | { |
||
502 | // validation for constraint: string |
||
503 | if (!is_null($streetNumber) && !is_string($streetNumber)) { |
||
504 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetNumber, true), gettype($streetNumber)), __LINE__); |
||
505 | } |
||
506 | $this->streetNumber = $streetNumber; |
||
507 | return $this; |
||
508 | } |
||
509 | /** |
||
510 | * Get streetNumberExtra value |
||
511 | * @return string|null |
||
512 | */ |
||
513 | public function getStreetNumberExtra() |
||
514 | { |
||
515 | return $this->streetNumberExtra; |
||
516 | } |
||
517 | /** |
||
518 | * Set streetNumberExtra value |
||
519 | * @param string $streetNumberExtra |
||
520 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
521 | */ |
||
522 | public function setStreetNumberExtra($streetNumberExtra = null) |
||
523 | { |
||
524 | // validation for constraint: string |
||
525 | if (!is_null($streetNumberExtra) && !is_string($streetNumberExtra)) { |
||
526 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetNumberExtra, true), gettype($streetNumberExtra)), __LINE__); |
||
527 | } |
||
528 | $this->streetNumberExtra = $streetNumberExtra; |
||
529 | return $this; |
||
530 | } |
||
531 | /** |
||
532 | * Get streetType value |
||
533 | * @return string|null |
||
534 | */ |
||
535 | public function getStreetType() |
||
536 | { |
||
537 | return $this->streetType; |
||
538 | } |
||
539 | /** |
||
540 | * Set streetType value |
||
541 | * @param string $streetType |
||
542 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
543 | */ |
||
544 | public function setStreetType($streetType = null) |
||
545 | { |
||
546 | // validation for constraint: string |
||
547 | if (!is_null($streetType) && !is_string($streetType)) { |
||
548 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetType, true), gettype($streetType)), __LINE__); |
||
549 | } |
||
550 | $this->streetType = $streetType; |
||
551 | return $this; |
||
552 | } |
||
553 | /** |
||
554 | * Get streetName value |
||
555 | * @return string|null |
||
556 | */ |
||
557 | public function getStreetName() |
||
558 | { |
||
559 | return $this->streetName; |
||
560 | } |
||
561 | /** |
||
562 | * Set streetName value |
||
563 | * @param string $streetName |
||
564 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
565 | */ |
||
566 | public function setStreetName($streetName = null) |
||
567 | { |
||
568 | // validation for constraint: string |
||
569 | if (!is_null($streetName) && !is_string($streetName)) { |
||
570 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($streetName, true), gettype($streetName)), __LINE__); |
||
571 | } |
||
572 | $this->streetName = $streetName; |
||
573 | return $this; |
||
574 | } |
||
575 | /** |
||
576 | * Get building value |
||
577 | * @return string|null |
||
578 | */ |
||
579 | public function getBuilding() |
||
580 | { |
||
581 | return $this->building; |
||
582 | } |
||
583 | /** |
||
584 | * Set building value |
||
585 | * @param string $building |
||
586 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
587 | */ |
||
588 | public function setBuilding($building = null) |
||
589 | { |
||
590 | // validation for constraint: string |
||
591 | if (!is_null($building) && !is_string($building)) { |
||
592 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($building, true), gettype($building)), __LINE__); |
||
593 | } |
||
594 | $this->building = $building; |
||
595 | return $this; |
||
596 | } |
||
597 | /** |
||
598 | * Get stair value |
||
599 | * @return string|null |
||
600 | */ |
||
601 | public function getStair() |
||
602 | { |
||
603 | return $this->stair; |
||
604 | } |
||
605 | /** |
||
606 | * Set stair value |
||
607 | * @param string $stair |
||
608 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
609 | */ |
||
610 | public function setStair($stair = null) |
||
611 | { |
||
612 | // validation for constraint: string |
||
613 | if (!is_null($stair) && !is_string($stair)) { |
||
614 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($stair, true), gettype($stair)), __LINE__); |
||
615 | } |
||
616 | $this->stair = $stair; |
||
617 | return $this; |
||
618 | } |
||
619 | /** |
||
620 | * Get floor value |
||
621 | * @return string|null |
||
622 | */ |
||
623 | public function getFloor() |
||
624 | { |
||
625 | return $this->floor; |
||
626 | } |
||
627 | /** |
||
628 | * Set floor value |
||
629 | * @param string $floor |
||
630 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
631 | */ |
||
632 | public function setFloor($floor = null) |
||
633 | { |
||
634 | // validation for constraint: string |
||
635 | if (!is_null($floor) && !is_string($floor)) { |
||
636 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($floor, true), gettype($floor)), __LINE__); |
||
637 | } |
||
638 | $this->floor = $floor; |
||
639 | return $this; |
||
640 | } |
||
641 | /** |
||
642 | * Get door value |
||
643 | * @return string|null |
||
644 | */ |
||
645 | public function getDoor() |
||
646 | { |
||
647 | return $this->door; |
||
648 | } |
||
649 | /** |
||
650 | * Set door value |
||
651 | * @param string $door |
||
652 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
653 | */ |
||
654 | public function setDoor($door = null) |
||
655 | { |
||
656 | // validation for constraint: string |
||
657 | if (!is_null($door) && !is_string($door)) { |
||
658 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($door, true), gettype($door)), __LINE__); |
||
659 | } |
||
660 | $this->door = $door; |
||
661 | return $this; |
||
662 | } |
||
663 | /** |
||
664 | * Get zip value |
||
665 | * @return string|null |
||
666 | */ |
||
667 | public function getZip() |
||
668 | { |
||
669 | return $this->zip; |
||
670 | } |
||
671 | /** |
||
672 | * Set zip value |
||
673 | * @param string $zip |
||
674 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
675 | */ |
||
676 | public function setZip($zip = null) |
||
677 | { |
||
678 | // validation for constraint: string |
||
679 | if (!is_null($zip) && !is_string($zip)) { |
||
680 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zip, true), gettype($zip)), __LINE__); |
||
681 | } |
||
682 | $this->zip = $zip; |
||
683 | return $this; |
||
684 | } |
||
685 | /** |
||
686 | * Get city value |
||
687 | * @return string|null |
||
688 | */ |
||
689 | public function getCity() |
||
690 | { |
||
691 | return $this->city; |
||
692 | } |
||
693 | /** |
||
694 | * Set city value |
||
695 | * @param string $city |
||
696 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
697 | */ |
||
698 | public function setCity($city = null) |
||
699 | { |
||
700 | // validation for constraint: string |
||
701 | if (!is_null($city) && !is_string($city)) { |
||
702 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($city, true), gettype($city)), __LINE__); |
||
703 | } |
||
704 | $this->city = $city; |
||
705 | return $this; |
||
706 | } |
||
707 | /** |
||
708 | * Get country value |
||
709 | * @return string|null |
||
710 | */ |
||
711 | public function getCountry() |
||
712 | { |
||
713 | return $this->country; |
||
714 | } |
||
715 | /** |
||
716 | * Set country value |
||
717 | * @param string $country |
||
718 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
719 | */ |
||
720 | public function setCountry($country = null) |
||
721 | { |
||
722 | // validation for constraint: string |
||
723 | if (!is_null($country) && !is_string($country)) { |
||
724 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($country, true), gettype($country)), __LINE__); |
||
725 | } |
||
726 | $this->country = $country; |
||
727 | return $this; |
||
728 | } |
||
729 | /** |
||
730 | * Get displayUniversalDirectory value |
||
731 | * @return string|null |
||
732 | */ |
||
733 | public function getDisplayUniversalDirectory() |
||
734 | { |
||
735 | return $this->displayUniversalDirectory; |
||
736 | } |
||
737 | /** |
||
738 | * Set displayUniversalDirectory value |
||
739 | * @param string $displayUniversalDirectory |
||
740 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
741 | */ |
||
742 | public function setDisplayUniversalDirectory($displayUniversalDirectory = null) |
||
743 | { |
||
744 | // validation for constraint: string |
||
745 | if (!is_null($displayUniversalDirectory) && !is_string($displayUniversalDirectory)) { |
||
746 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($displayUniversalDirectory, true), gettype($displayUniversalDirectory)), __LINE__); |
||
747 | } |
||
748 | $this->displayUniversalDirectory = $displayUniversalDirectory; |
||
749 | return $this; |
||
750 | } |
||
751 | /** |
||
752 | * Get category value |
||
753 | * @return string|null |
||
754 | */ |
||
755 | public function getCategory() |
||
756 | { |
||
757 | return $this->category; |
||
758 | } |
||
759 | /** |
||
760 | * Set category value |
||
761 | * @param string $category |
||
762 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
763 | */ |
||
764 | public function setCategory($category = null) |
||
772 | } |
||
773 | /** |
||
774 | * Get contactName value |
||
775 | * @return string|null |
||
776 | */ |
||
777 | public function getContactName() |
||
778 | { |
||
779 | return $this->contactName; |
||
780 | } |
||
781 | /** |
||
782 | * Set contactName value |
||
783 | * @param string $contactName |
||
784 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
785 | */ |
||
786 | public function setContactName($contactName = null) |
||
787 | { |
||
788 | // validation for constraint: string |
||
789 | if (!is_null($contactName) && !is_string($contactName)) { |
||
790 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($contactName, true), gettype($contactName)), __LINE__); |
||
791 | } |
||
792 | $this->contactName = $contactName; |
||
793 | return $this; |
||
794 | } |
||
795 | /** |
||
796 | * Get contactNumber value |
||
797 | * @return string|null |
||
798 | */ |
||
799 | public function getContactNumber() |
||
800 | { |
||
801 | return $this->contactNumber; |
||
802 | } |
||
803 | /** |
||
804 | * Set contactNumber value |
||
805 | * @param string $contactNumber |
||
806 | * @return \Ovh\StructType\TelephonyPortabilityOrderSpecialNumber |
||
807 | */ |
||
808 | public function setContactNumber($contactNumber = null) |
||
809 | { |
||
810 | // validation for constraint: string |
||
811 | if (!is_null($contactNumber) && !is_string($contactNumber)) { |
||
812 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($contactNumber, true), gettype($contactNumber)), __LINE__); |
||
813 | } |
||
814 | $this->contactNumber = $contactNumber; |
||
815 | return $this; |
||
816 | } |
||
817 | } |
||
818 |