Total Complexity | 98 |
Total Lines | 776 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like TelephonyLineOptionsModify 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 TelephonyLineOptionsModify, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class TelephonyLineOptionsModify 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 number |
||
23 | * Meta information extracted from the WSDL |
||
24 | * - nillable: true |
||
25 | * @var string |
||
26 | */ |
||
27 | public $number; |
||
28 | /** |
||
29 | * The country |
||
30 | * Meta information extracted from the WSDL |
||
31 | * - nillable: true |
||
32 | * @var string |
||
33 | */ |
||
34 | public $country; |
||
35 | /** |
||
36 | * The identificationRestriction |
||
37 | * Meta information extracted from the WSDL |
||
38 | * - nillable: true |
||
39 | * @var bool |
||
40 | */ |
||
41 | public $identificationRestriction; |
||
42 | /** |
||
43 | * The anonymousCallRejection |
||
44 | * Meta information extracted from the WSDL |
||
45 | * - nillable: true |
||
46 | * @var bool |
||
47 | */ |
||
48 | public $anonymousCallRejection; |
||
49 | /** |
||
50 | * The doNotDisturb |
||
51 | * Meta information extracted from the WSDL |
||
52 | * - nillable: true |
||
53 | * @var bool |
||
54 | */ |
||
55 | public $doNotDisturb; |
||
56 | /** |
||
57 | * The absentSuscriber |
||
58 | * Meta information extracted from the WSDL |
||
59 | * - nillable: true |
||
60 | * @var bool |
||
61 | */ |
||
62 | public $absentSuscriber; |
||
63 | /** |
||
64 | * The lockOutCall |
||
65 | * Meta information extracted from the WSDL |
||
66 | * - nillable: true |
||
67 | * @var bool |
||
68 | */ |
||
69 | public $lockOutCall; |
||
70 | /** |
||
71 | * The lockOutCallPassword |
||
72 | * Meta information extracted from the WSDL |
||
73 | * - nillable: true |
||
74 | * @var string |
||
75 | */ |
||
76 | public $lockOutCallPassword; |
||
77 | /** |
||
78 | * The forwardUnconditional |
||
79 | * Meta information extracted from the WSDL |
||
80 | * - nillable: true |
||
81 | * @var bool |
||
82 | */ |
||
83 | public $forwardUnconditional; |
||
84 | /** |
||
85 | * The forwardUnconditionalNumber |
||
86 | * Meta information extracted from the WSDL |
||
87 | * - nillable: true |
||
88 | * @var string |
||
89 | */ |
||
90 | public $forwardUnconditionalNumber; |
||
91 | /** |
||
92 | * The forwardNoReply |
||
93 | * Meta information extracted from the WSDL |
||
94 | * - nillable: true |
||
95 | * @var bool |
||
96 | */ |
||
97 | public $forwardNoReply; |
||
98 | /** |
||
99 | * The forwardNoReplyDelay |
||
100 | * Meta information extracted from the WSDL |
||
101 | * - nillable: true |
||
102 | * @var int |
||
103 | */ |
||
104 | public $forwardNoReplyDelay; |
||
105 | /** |
||
106 | * The forwardNoReplyNumber |
||
107 | * Meta information extracted from the WSDL |
||
108 | * - nillable: true |
||
109 | * @var string |
||
110 | */ |
||
111 | public $forwardNoReplyNumber; |
||
112 | /** |
||
113 | * The forwardBusy |
||
114 | * Meta information extracted from the WSDL |
||
115 | * - nillable: true |
||
116 | * @var bool |
||
117 | */ |
||
118 | public $forwardBusy; |
||
119 | /** |
||
120 | * The forwardBusyNumber |
||
121 | * Meta information extracted from the WSDL |
||
122 | * - nillable: true |
||
123 | * @var string |
||
124 | */ |
||
125 | public $forwardBusyNumber; |
||
126 | /** |
||
127 | * The forwardBackup |
||
128 | * Meta information extracted from the WSDL |
||
129 | * - nillable: true |
||
130 | * @var bool |
||
131 | */ |
||
132 | public $forwardBackup; |
||
133 | /** |
||
134 | * The forwardBackupNumber |
||
135 | * Meta information extracted from the WSDL |
||
136 | * - nillable: true |
||
137 | * @var string |
||
138 | */ |
||
139 | public $forwardBackupNumber; |
||
140 | /** |
||
141 | * The displayCallNumber |
||
142 | * Meta information extracted from the WSDL |
||
143 | * - nillable: true |
||
144 | * @var string |
||
145 | */ |
||
146 | public $displayCallNumber; |
||
147 | /** |
||
148 | * The callWaiting |
||
149 | * Meta information extracted from the WSDL |
||
150 | * - nillable: true |
||
151 | * @var bool |
||
152 | */ |
||
153 | public $callWaiting; |
||
154 | /** |
||
155 | * The forwardNoReplyNature |
||
156 | * Meta information extracted from the WSDL |
||
157 | * - nillable: true |
||
158 | * @var string |
||
159 | */ |
||
160 | public $forwardNoReplyNature; |
||
161 | /** |
||
162 | * The forwardBackupNature |
||
163 | * Meta information extracted from the WSDL |
||
164 | * - nillable: true |
||
165 | * @var string |
||
166 | */ |
||
167 | public $forwardBackupNature; |
||
168 | /** |
||
169 | * The forwardUnconditionalNature |
||
170 | * Meta information extracted from the WSDL |
||
171 | * - nillable: true |
||
172 | * @var string |
||
173 | */ |
||
174 | public $forwardUnconditionalNature; |
||
175 | /** |
||
176 | * The forwardBusyNature |
||
177 | * Meta information extracted from the WSDL |
||
178 | * - nillable: true |
||
179 | * @var string |
||
180 | */ |
||
181 | public $forwardBusyNature; |
||
182 | /** |
||
183 | * Constructor method for telephonyLineOptionsModify |
||
184 | * @uses TelephonyLineOptionsModify::setSession() |
||
185 | * @uses TelephonyLineOptionsModify::setNumber() |
||
186 | * @uses TelephonyLineOptionsModify::setCountry() |
||
187 | * @uses TelephonyLineOptionsModify::setIdentificationRestriction() |
||
188 | * @uses TelephonyLineOptionsModify::setAnonymousCallRejection() |
||
189 | * @uses TelephonyLineOptionsModify::setDoNotDisturb() |
||
190 | * @uses TelephonyLineOptionsModify::setAbsentSuscriber() |
||
191 | * @uses TelephonyLineOptionsModify::setLockOutCall() |
||
192 | * @uses TelephonyLineOptionsModify::setLockOutCallPassword() |
||
193 | * @uses TelephonyLineOptionsModify::setForwardUnconditional() |
||
194 | * @uses TelephonyLineOptionsModify::setForwardUnconditionalNumber() |
||
195 | * @uses TelephonyLineOptionsModify::setForwardNoReply() |
||
196 | * @uses TelephonyLineOptionsModify::setForwardNoReplyDelay() |
||
197 | * @uses TelephonyLineOptionsModify::setForwardNoReplyNumber() |
||
198 | * @uses TelephonyLineOptionsModify::setForwardBusy() |
||
199 | * @uses TelephonyLineOptionsModify::setForwardBusyNumber() |
||
200 | * @uses TelephonyLineOptionsModify::setForwardBackup() |
||
201 | * @uses TelephonyLineOptionsModify::setForwardBackupNumber() |
||
202 | * @uses TelephonyLineOptionsModify::setDisplayCallNumber() |
||
203 | * @uses TelephonyLineOptionsModify::setCallWaiting() |
||
204 | * @uses TelephonyLineOptionsModify::setForwardNoReplyNature() |
||
205 | * @uses TelephonyLineOptionsModify::setForwardBackupNature() |
||
206 | * @uses TelephonyLineOptionsModify::setForwardUnconditionalNature() |
||
207 | * @uses TelephonyLineOptionsModify::setForwardBusyNature() |
||
208 | * @param string $session |
||
209 | * @param string $number |
||
210 | * @param string $country |
||
211 | * @param bool $identificationRestriction |
||
212 | * @param bool $anonymousCallRejection |
||
213 | * @param bool $doNotDisturb |
||
214 | * @param bool $absentSuscriber |
||
215 | * @param bool $lockOutCall |
||
216 | * @param string $lockOutCallPassword |
||
217 | * @param bool $forwardUnconditional |
||
218 | * @param string $forwardUnconditionalNumber |
||
219 | * @param bool $forwardNoReply |
||
220 | * @param int $forwardNoReplyDelay |
||
221 | * @param string $forwardNoReplyNumber |
||
222 | * @param bool $forwardBusy |
||
223 | * @param string $forwardBusyNumber |
||
224 | * @param bool $forwardBackup |
||
225 | * @param string $forwardBackupNumber |
||
226 | * @param string $displayCallNumber |
||
227 | * @param bool $callWaiting |
||
228 | * @param string $forwardNoReplyNature |
||
229 | * @param string $forwardBackupNature |
||
230 | * @param string $forwardUnconditionalNature |
||
231 | * @param string $forwardBusyNature |
||
232 | */ |
||
233 | public function __construct($session = null, $number = null, $country = null, $identificationRestriction = null, $anonymousCallRejection = null, $doNotDisturb = null, $absentSuscriber = null, $lockOutCall = null, $lockOutCallPassword = null, $forwardUnconditional = null, $forwardUnconditionalNumber = null, $forwardNoReply = null, $forwardNoReplyDelay = null, $forwardNoReplyNumber = null, $forwardBusy = null, $forwardBusyNumber = null, $forwardBackup = null, $forwardBackupNumber = null, $displayCallNumber = null, $callWaiting = null, $forwardNoReplyNature = null, $forwardBackupNature = null, $forwardUnconditionalNature = null, $forwardBusyNature = null) |
||
234 | { |
||
235 | $this |
||
236 | ->setSession($session) |
||
237 | ->setNumber($number) |
||
238 | ->setCountry($country) |
||
239 | ->setIdentificationRestriction($identificationRestriction) |
||
240 | ->setAnonymousCallRejection($anonymousCallRejection) |
||
241 | ->setDoNotDisturb($doNotDisturb) |
||
242 | ->setAbsentSuscriber($absentSuscriber) |
||
243 | ->setLockOutCall($lockOutCall) |
||
244 | ->setLockOutCallPassword($lockOutCallPassword) |
||
245 | ->setForwardUnconditional($forwardUnconditional) |
||
246 | ->setForwardUnconditionalNumber($forwardUnconditionalNumber) |
||
247 | ->setForwardNoReply($forwardNoReply) |
||
248 | ->setForwardNoReplyDelay($forwardNoReplyDelay) |
||
249 | ->setForwardNoReplyNumber($forwardNoReplyNumber) |
||
250 | ->setForwardBusy($forwardBusy) |
||
251 | ->setForwardBusyNumber($forwardBusyNumber) |
||
252 | ->setForwardBackup($forwardBackup) |
||
253 | ->setForwardBackupNumber($forwardBackupNumber) |
||
254 | ->setDisplayCallNumber($displayCallNumber) |
||
255 | ->setCallWaiting($callWaiting) |
||
256 | ->setForwardNoReplyNature($forwardNoReplyNature) |
||
257 | ->setForwardBackupNature($forwardBackupNature) |
||
258 | ->setForwardUnconditionalNature($forwardUnconditionalNature) |
||
259 | ->setForwardBusyNature($forwardBusyNature); |
||
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\TelephonyLineOptionsModify |
||
273 | */ |
||
274 | public function setSession($session = null) |
||
275 | { |
||
276 | // validation for constraint: string |
||
277 | if (!is_null($session) && !is_string($session)) { |
||
|
|||
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 number value |
||
285 | * @return string|null |
||
286 | */ |
||
287 | public function getNumber() |
||
288 | { |
||
289 | return $this->number; |
||
290 | } |
||
291 | /** |
||
292 | * Set number value |
||
293 | * @param string $number |
||
294 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
295 | */ |
||
296 | public function setNumber($number = null) |
||
297 | { |
||
298 | // validation for constraint: string |
||
299 | if (!is_null($number) && !is_string($number)) { |
||
300 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($number, true), gettype($number)), __LINE__); |
||
301 | } |
||
302 | $this->number = $number; |
||
303 | return $this; |
||
304 | } |
||
305 | /** |
||
306 | * Get country value |
||
307 | * @return string|null |
||
308 | */ |
||
309 | public function getCountry() |
||
310 | { |
||
311 | return $this->country; |
||
312 | } |
||
313 | /** |
||
314 | * Set country value |
||
315 | * @param string $country |
||
316 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
317 | */ |
||
318 | public function setCountry($country = null) |
||
319 | { |
||
320 | // validation for constraint: string |
||
321 | if (!is_null($country) && !is_string($country)) { |
||
322 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($country, true), gettype($country)), __LINE__); |
||
323 | } |
||
324 | $this->country = $country; |
||
325 | return $this; |
||
326 | } |
||
327 | /** |
||
328 | * Get identificationRestriction value |
||
329 | * @return bool|null |
||
330 | */ |
||
331 | public function getIdentificationRestriction() |
||
332 | { |
||
333 | return $this->identificationRestriction; |
||
334 | } |
||
335 | /** |
||
336 | * Set identificationRestriction value |
||
337 | * @param bool $identificationRestriction |
||
338 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
339 | */ |
||
340 | public function setIdentificationRestriction($identificationRestriction = null) |
||
341 | { |
||
342 | // validation for constraint: boolean |
||
343 | if (!is_null($identificationRestriction) && !is_bool($identificationRestriction)) { |
||
344 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($identificationRestriction, true), gettype($identificationRestriction)), __LINE__); |
||
345 | } |
||
346 | $this->identificationRestriction = $identificationRestriction; |
||
347 | return $this; |
||
348 | } |
||
349 | /** |
||
350 | * Get anonymousCallRejection value |
||
351 | * @return bool|null |
||
352 | */ |
||
353 | public function getAnonymousCallRejection() |
||
354 | { |
||
355 | return $this->anonymousCallRejection; |
||
356 | } |
||
357 | /** |
||
358 | * Set anonymousCallRejection value |
||
359 | * @param bool $anonymousCallRejection |
||
360 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
361 | */ |
||
362 | public function setAnonymousCallRejection($anonymousCallRejection = null) |
||
363 | { |
||
364 | // validation for constraint: boolean |
||
365 | if (!is_null($anonymousCallRejection) && !is_bool($anonymousCallRejection)) { |
||
366 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($anonymousCallRejection, true), gettype($anonymousCallRejection)), __LINE__); |
||
367 | } |
||
368 | $this->anonymousCallRejection = $anonymousCallRejection; |
||
369 | return $this; |
||
370 | } |
||
371 | /** |
||
372 | * Get doNotDisturb value |
||
373 | * @return bool|null |
||
374 | */ |
||
375 | public function getDoNotDisturb() |
||
376 | { |
||
377 | return $this->doNotDisturb; |
||
378 | } |
||
379 | /** |
||
380 | * Set doNotDisturb value |
||
381 | * @param bool $doNotDisturb |
||
382 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
383 | */ |
||
384 | public function setDoNotDisturb($doNotDisturb = null) |
||
385 | { |
||
386 | // validation for constraint: boolean |
||
387 | if (!is_null($doNotDisturb) && !is_bool($doNotDisturb)) { |
||
388 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($doNotDisturb, true), gettype($doNotDisturb)), __LINE__); |
||
389 | } |
||
390 | $this->doNotDisturb = $doNotDisturb; |
||
391 | return $this; |
||
392 | } |
||
393 | /** |
||
394 | * Get absentSuscriber value |
||
395 | * @return bool|null |
||
396 | */ |
||
397 | public function getAbsentSuscriber() |
||
398 | { |
||
399 | return $this->absentSuscriber; |
||
400 | } |
||
401 | /** |
||
402 | * Set absentSuscriber value |
||
403 | * @param bool $absentSuscriber |
||
404 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
405 | */ |
||
406 | public function setAbsentSuscriber($absentSuscriber = null) |
||
407 | { |
||
408 | // validation for constraint: boolean |
||
409 | if (!is_null($absentSuscriber) && !is_bool($absentSuscriber)) { |
||
410 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($absentSuscriber, true), gettype($absentSuscriber)), __LINE__); |
||
411 | } |
||
412 | $this->absentSuscriber = $absentSuscriber; |
||
413 | return $this; |
||
414 | } |
||
415 | /** |
||
416 | * Get lockOutCall value |
||
417 | * @return bool|null |
||
418 | */ |
||
419 | public function getLockOutCall() |
||
420 | { |
||
421 | return $this->lockOutCall; |
||
422 | } |
||
423 | /** |
||
424 | * Set lockOutCall value |
||
425 | * @param bool $lockOutCall |
||
426 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
427 | */ |
||
428 | public function setLockOutCall($lockOutCall = null) |
||
429 | { |
||
430 | // validation for constraint: boolean |
||
431 | if (!is_null($lockOutCall) && !is_bool($lockOutCall)) { |
||
432 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($lockOutCall, true), gettype($lockOutCall)), __LINE__); |
||
433 | } |
||
434 | $this->lockOutCall = $lockOutCall; |
||
435 | return $this; |
||
436 | } |
||
437 | /** |
||
438 | * Get lockOutCallPassword value |
||
439 | * @return string|null |
||
440 | */ |
||
441 | public function getLockOutCallPassword() |
||
442 | { |
||
443 | return $this->lockOutCallPassword; |
||
444 | } |
||
445 | /** |
||
446 | * Set lockOutCallPassword value |
||
447 | * @param string $lockOutCallPassword |
||
448 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
449 | */ |
||
450 | public function setLockOutCallPassword($lockOutCallPassword = null) |
||
451 | { |
||
452 | // validation for constraint: string |
||
453 | if (!is_null($lockOutCallPassword) && !is_string($lockOutCallPassword)) { |
||
454 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lockOutCallPassword, true), gettype($lockOutCallPassword)), __LINE__); |
||
455 | } |
||
456 | $this->lockOutCallPassword = $lockOutCallPassword; |
||
457 | return $this; |
||
458 | } |
||
459 | /** |
||
460 | * Get forwardUnconditional value |
||
461 | * @return bool|null |
||
462 | */ |
||
463 | public function getForwardUnconditional() |
||
464 | { |
||
465 | return $this->forwardUnconditional; |
||
466 | } |
||
467 | /** |
||
468 | * Set forwardUnconditional value |
||
469 | * @param bool $forwardUnconditional |
||
470 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
471 | */ |
||
472 | public function setForwardUnconditional($forwardUnconditional = null) |
||
473 | { |
||
474 | // validation for constraint: boolean |
||
475 | if (!is_null($forwardUnconditional) && !is_bool($forwardUnconditional)) { |
||
476 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($forwardUnconditional, true), gettype($forwardUnconditional)), __LINE__); |
||
477 | } |
||
478 | $this->forwardUnconditional = $forwardUnconditional; |
||
479 | return $this; |
||
480 | } |
||
481 | /** |
||
482 | * Get forwardUnconditionalNumber value |
||
483 | * @return string|null |
||
484 | */ |
||
485 | public function getForwardUnconditionalNumber() |
||
486 | { |
||
487 | return $this->forwardUnconditionalNumber; |
||
488 | } |
||
489 | /** |
||
490 | * Set forwardUnconditionalNumber value |
||
491 | * @param string $forwardUnconditionalNumber |
||
492 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
493 | */ |
||
494 | public function setForwardUnconditionalNumber($forwardUnconditionalNumber = null) |
||
495 | { |
||
496 | // validation for constraint: string |
||
497 | if (!is_null($forwardUnconditionalNumber) && !is_string($forwardUnconditionalNumber)) { |
||
498 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardUnconditionalNumber, true), gettype($forwardUnconditionalNumber)), __LINE__); |
||
499 | } |
||
500 | $this->forwardUnconditionalNumber = $forwardUnconditionalNumber; |
||
501 | return $this; |
||
502 | } |
||
503 | /** |
||
504 | * Get forwardNoReply value |
||
505 | * @return bool|null |
||
506 | */ |
||
507 | public function getForwardNoReply() |
||
508 | { |
||
509 | return $this->forwardNoReply; |
||
510 | } |
||
511 | /** |
||
512 | * Set forwardNoReply value |
||
513 | * @param bool $forwardNoReply |
||
514 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
515 | */ |
||
516 | public function setForwardNoReply($forwardNoReply = null) |
||
517 | { |
||
518 | // validation for constraint: boolean |
||
519 | if (!is_null($forwardNoReply) && !is_bool($forwardNoReply)) { |
||
520 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($forwardNoReply, true), gettype($forwardNoReply)), __LINE__); |
||
521 | } |
||
522 | $this->forwardNoReply = $forwardNoReply; |
||
523 | return $this; |
||
524 | } |
||
525 | /** |
||
526 | * Get forwardNoReplyDelay value |
||
527 | * @return int|null |
||
528 | */ |
||
529 | public function getForwardNoReplyDelay() |
||
530 | { |
||
531 | return $this->forwardNoReplyDelay; |
||
532 | } |
||
533 | /** |
||
534 | * Set forwardNoReplyDelay value |
||
535 | * @param int $forwardNoReplyDelay |
||
536 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
537 | */ |
||
538 | public function setForwardNoReplyDelay($forwardNoReplyDelay = null) |
||
539 | { |
||
540 | // validation for constraint: int |
||
541 | if (!is_null($forwardNoReplyDelay) && !(is_int($forwardNoReplyDelay) || ctype_digit($forwardNoReplyDelay))) { |
||
542 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($forwardNoReplyDelay, true), gettype($forwardNoReplyDelay)), __LINE__); |
||
543 | } |
||
544 | $this->forwardNoReplyDelay = $forwardNoReplyDelay; |
||
545 | return $this; |
||
546 | } |
||
547 | /** |
||
548 | * Get forwardNoReplyNumber value |
||
549 | * @return string|null |
||
550 | */ |
||
551 | public function getForwardNoReplyNumber() |
||
552 | { |
||
553 | return $this->forwardNoReplyNumber; |
||
554 | } |
||
555 | /** |
||
556 | * Set forwardNoReplyNumber value |
||
557 | * @param string $forwardNoReplyNumber |
||
558 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
559 | */ |
||
560 | public function setForwardNoReplyNumber($forwardNoReplyNumber = null) |
||
561 | { |
||
562 | // validation for constraint: string |
||
563 | if (!is_null($forwardNoReplyNumber) && !is_string($forwardNoReplyNumber)) { |
||
564 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardNoReplyNumber, true), gettype($forwardNoReplyNumber)), __LINE__); |
||
565 | } |
||
566 | $this->forwardNoReplyNumber = $forwardNoReplyNumber; |
||
567 | return $this; |
||
568 | } |
||
569 | /** |
||
570 | * Get forwardBusy value |
||
571 | * @return bool|null |
||
572 | */ |
||
573 | public function getForwardBusy() |
||
574 | { |
||
575 | return $this->forwardBusy; |
||
576 | } |
||
577 | /** |
||
578 | * Set forwardBusy value |
||
579 | * @param bool $forwardBusy |
||
580 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
581 | */ |
||
582 | public function setForwardBusy($forwardBusy = null) |
||
583 | { |
||
584 | // validation for constraint: boolean |
||
585 | if (!is_null($forwardBusy) && !is_bool($forwardBusy)) { |
||
586 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($forwardBusy, true), gettype($forwardBusy)), __LINE__); |
||
587 | } |
||
588 | $this->forwardBusy = $forwardBusy; |
||
589 | return $this; |
||
590 | } |
||
591 | /** |
||
592 | * Get forwardBusyNumber value |
||
593 | * @return string|null |
||
594 | */ |
||
595 | public function getForwardBusyNumber() |
||
596 | { |
||
597 | return $this->forwardBusyNumber; |
||
598 | } |
||
599 | /** |
||
600 | * Set forwardBusyNumber value |
||
601 | * @param string $forwardBusyNumber |
||
602 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
603 | */ |
||
604 | public function setForwardBusyNumber($forwardBusyNumber = null) |
||
605 | { |
||
606 | // validation for constraint: string |
||
607 | if (!is_null($forwardBusyNumber) && !is_string($forwardBusyNumber)) { |
||
608 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardBusyNumber, true), gettype($forwardBusyNumber)), __LINE__); |
||
609 | } |
||
610 | $this->forwardBusyNumber = $forwardBusyNumber; |
||
611 | return $this; |
||
612 | } |
||
613 | /** |
||
614 | * Get forwardBackup value |
||
615 | * @return bool|null |
||
616 | */ |
||
617 | public function getForwardBackup() |
||
618 | { |
||
619 | return $this->forwardBackup; |
||
620 | } |
||
621 | /** |
||
622 | * Set forwardBackup value |
||
623 | * @param bool $forwardBackup |
||
624 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
625 | */ |
||
626 | public function setForwardBackup($forwardBackup = null) |
||
627 | { |
||
628 | // validation for constraint: boolean |
||
629 | if (!is_null($forwardBackup) && !is_bool($forwardBackup)) { |
||
630 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($forwardBackup, true), gettype($forwardBackup)), __LINE__); |
||
631 | } |
||
632 | $this->forwardBackup = $forwardBackup; |
||
633 | return $this; |
||
634 | } |
||
635 | /** |
||
636 | * Get forwardBackupNumber value |
||
637 | * @return string|null |
||
638 | */ |
||
639 | public function getForwardBackupNumber() |
||
640 | { |
||
641 | return $this->forwardBackupNumber; |
||
642 | } |
||
643 | /** |
||
644 | * Set forwardBackupNumber value |
||
645 | * @param string $forwardBackupNumber |
||
646 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
647 | */ |
||
648 | public function setForwardBackupNumber($forwardBackupNumber = null) |
||
649 | { |
||
650 | // validation for constraint: string |
||
651 | if (!is_null($forwardBackupNumber) && !is_string($forwardBackupNumber)) { |
||
652 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardBackupNumber, true), gettype($forwardBackupNumber)), __LINE__); |
||
653 | } |
||
654 | $this->forwardBackupNumber = $forwardBackupNumber; |
||
655 | return $this; |
||
656 | } |
||
657 | /** |
||
658 | * Get displayCallNumber value |
||
659 | * @return string|null |
||
660 | */ |
||
661 | public function getDisplayCallNumber() |
||
662 | { |
||
663 | return $this->displayCallNumber; |
||
664 | } |
||
665 | /** |
||
666 | * Set displayCallNumber value |
||
667 | * @param string $displayCallNumber |
||
668 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
669 | */ |
||
670 | public function setDisplayCallNumber($displayCallNumber = null) |
||
671 | { |
||
672 | // validation for constraint: string |
||
673 | if (!is_null($displayCallNumber) && !is_string($displayCallNumber)) { |
||
674 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($displayCallNumber, true), gettype($displayCallNumber)), __LINE__); |
||
675 | } |
||
676 | $this->displayCallNumber = $displayCallNumber; |
||
677 | return $this; |
||
678 | } |
||
679 | /** |
||
680 | * Get callWaiting value |
||
681 | * @return bool|null |
||
682 | */ |
||
683 | public function getCallWaiting() |
||
684 | { |
||
685 | return $this->callWaiting; |
||
686 | } |
||
687 | /** |
||
688 | * Set callWaiting value |
||
689 | * @param bool $callWaiting |
||
690 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
691 | */ |
||
692 | public function setCallWaiting($callWaiting = null) |
||
693 | { |
||
694 | // validation for constraint: boolean |
||
695 | if (!is_null($callWaiting) && !is_bool($callWaiting)) { |
||
696 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($callWaiting, true), gettype($callWaiting)), __LINE__); |
||
697 | } |
||
698 | $this->callWaiting = $callWaiting; |
||
699 | return $this; |
||
700 | } |
||
701 | /** |
||
702 | * Get forwardNoReplyNature value |
||
703 | * @return string|null |
||
704 | */ |
||
705 | public function getForwardNoReplyNature() |
||
706 | { |
||
707 | return $this->forwardNoReplyNature; |
||
708 | } |
||
709 | /** |
||
710 | * Set forwardNoReplyNature value |
||
711 | * @param string $forwardNoReplyNature |
||
712 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
713 | */ |
||
714 | public function setForwardNoReplyNature($forwardNoReplyNature = null) |
||
715 | { |
||
716 | // validation for constraint: string |
||
717 | if (!is_null($forwardNoReplyNature) && !is_string($forwardNoReplyNature)) { |
||
718 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardNoReplyNature, true), gettype($forwardNoReplyNature)), __LINE__); |
||
719 | } |
||
720 | $this->forwardNoReplyNature = $forwardNoReplyNature; |
||
721 | return $this; |
||
722 | } |
||
723 | /** |
||
724 | * Get forwardBackupNature value |
||
725 | * @return string|null |
||
726 | */ |
||
727 | public function getForwardBackupNature() |
||
728 | { |
||
729 | return $this->forwardBackupNature; |
||
730 | } |
||
731 | /** |
||
732 | * Set forwardBackupNature value |
||
733 | * @param string $forwardBackupNature |
||
734 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
735 | */ |
||
736 | public function setForwardBackupNature($forwardBackupNature = null) |
||
744 | } |
||
745 | /** |
||
746 | * Get forwardUnconditionalNature value |
||
747 | * @return string|null |
||
748 | */ |
||
749 | public function getForwardUnconditionalNature() |
||
750 | { |
||
751 | return $this->forwardUnconditionalNature; |
||
752 | } |
||
753 | /** |
||
754 | * Set forwardUnconditionalNature value |
||
755 | * @param string $forwardUnconditionalNature |
||
756 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
757 | */ |
||
758 | public function setForwardUnconditionalNature($forwardUnconditionalNature = null) |
||
759 | { |
||
760 | // validation for constraint: string |
||
761 | if (!is_null($forwardUnconditionalNature) && !is_string($forwardUnconditionalNature)) { |
||
762 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($forwardUnconditionalNature, true), gettype($forwardUnconditionalNature)), __LINE__); |
||
763 | } |
||
764 | $this->forwardUnconditionalNature = $forwardUnconditionalNature; |
||
765 | return $this; |
||
766 | } |
||
767 | /** |
||
768 | * Get forwardBusyNature value |
||
769 | * @return string|null |
||
770 | */ |
||
771 | public function getForwardBusyNature() |
||
772 | { |
||
773 | return $this->forwardBusyNature; |
||
774 | } |
||
775 | /** |
||
776 | * Set forwardBusyNature value |
||
777 | * @param string $forwardBusyNature |
||
778 | * @return \Ovh\StructType\TelephonyLineOptionsModify |
||
779 | */ |
||
780 | public function setForwardBusyNature($forwardBusyNature = null) |
||
788 | } |
||
789 | } |
||
790 |