| Total Complexity | 104 |
| Total Lines | 784 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like TelephonyPortabilityStruct 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 TelephonyPortabilityStruct, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 12 | class TelephonyPortabilityStruct extends AbstractStructBase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The id |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | public $id; |
||
| 19 | /** |
||
| 20 | * The customerFullName |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $customerFullName; |
||
| 24 | /** |
||
| 25 | * The billingAccount |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | public $billingAccount; |
||
| 29 | /** |
||
| 30 | * The callNumber |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $callNumber; |
||
| 34 | /** |
||
| 35 | * The extraNumbers |
||
| 36 | * @var \Ovh\ArrayType\MyArrayOfStringType |
||
| 37 | */ |
||
| 38 | public $extraNumbers; |
||
| 39 | /** |
||
| 40 | * The planDate |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | public $planDate; |
||
| 44 | /** |
||
| 45 | * The resellerOrder |
||
| 46 | * @var bool |
||
| 47 | */ |
||
| 48 | public $resellerOrder; |
||
| 49 | /** |
||
| 50 | * The customerMailSent |
||
| 51 | * @var bool |
||
| 52 | */ |
||
| 53 | public $customerMailSent; |
||
| 54 | /** |
||
| 55 | * The customerMailSendDate |
||
| 56 | * @var string |
||
| 57 | */ |
||
| 58 | public $customerMailSendDate; |
||
| 59 | /** |
||
| 60 | * The customerMailReturned |
||
| 61 | * @var bool |
||
| 62 | */ |
||
| 63 | public $customerMailReturned; |
||
| 64 | /** |
||
| 65 | * The customerMailReturnDate |
||
| 66 | * @var string |
||
| 67 | */ |
||
| 68 | public $customerMailReturnDate; |
||
| 69 | /** |
||
| 70 | * The customerMailTracking |
||
| 71 | * @var string |
||
| 72 | */ |
||
| 73 | public $customerMailTracking; |
||
| 74 | /** |
||
| 75 | * The rangeHolderName |
||
| 76 | * @var string |
||
| 77 | */ |
||
| 78 | public $rangeHolderName; |
||
| 79 | /** |
||
| 80 | * The losingCpName |
||
| 81 | * @var string |
||
| 82 | */ |
||
| 83 | public $losingCpName; |
||
| 84 | /** |
||
| 85 | * The rhOrderSent |
||
| 86 | * @var bool |
||
| 87 | */ |
||
| 88 | public $rhOrderSent; |
||
| 89 | /** |
||
| 90 | * The rhOrderReceived |
||
| 91 | * @var bool |
||
| 92 | */ |
||
| 93 | public $rhOrderReceived; |
||
| 94 | /** |
||
| 95 | * The rhOrderAck |
||
| 96 | * @var string |
||
| 97 | */ |
||
| 98 | public $rhOrderAck; |
||
| 99 | /** |
||
| 100 | * The rhOrderAckComment |
||
| 101 | * @var string |
||
| 102 | */ |
||
| 103 | public $rhOrderAckComment; |
||
| 104 | /** |
||
| 105 | * The rhOrderPort |
||
| 106 | * @var string |
||
| 107 | */ |
||
| 108 | public $rhOrderPort; |
||
| 109 | /** |
||
| 110 | * The rhOrderPortComment |
||
| 111 | * @var string |
||
| 112 | */ |
||
| 113 | public $rhOrderPortComment; |
||
| 114 | /** |
||
| 115 | * The lcpOrderSent |
||
| 116 | * @var bool |
||
| 117 | */ |
||
| 118 | public $lcpOrderSent; |
||
| 119 | /** |
||
| 120 | * The lcpOrderReceived |
||
| 121 | * @var bool |
||
| 122 | */ |
||
| 123 | public $lcpOrderReceived; |
||
| 124 | /** |
||
| 125 | * The lcpOrderAck |
||
| 126 | * @var string |
||
| 127 | */ |
||
| 128 | public $lcpOrderAck; |
||
| 129 | /** |
||
| 130 | * The lcpOrderAckComment |
||
| 131 | * @var string |
||
| 132 | */ |
||
| 133 | public $lcpOrderAckComment; |
||
| 134 | /** |
||
| 135 | * The lcpOrderPort |
||
| 136 | * @var string |
||
| 137 | */ |
||
| 138 | public $lcpOrderPort; |
||
| 139 | /** |
||
| 140 | * The lcpOrderPortComment |
||
| 141 | * @var string |
||
| 142 | */ |
||
| 143 | public $lcpOrderPortComment; |
||
| 144 | /** |
||
| 145 | * Constructor method for telephonyPortabilityStruct |
||
| 146 | * @uses TelephonyPortabilityStruct::setId() |
||
| 147 | * @uses TelephonyPortabilityStruct::setCustomerFullName() |
||
| 148 | * @uses TelephonyPortabilityStruct::setBillingAccount() |
||
| 149 | * @uses TelephonyPortabilityStruct::setCallNumber() |
||
| 150 | * @uses TelephonyPortabilityStruct::setExtraNumbers() |
||
| 151 | * @uses TelephonyPortabilityStruct::setPlanDate() |
||
| 152 | * @uses TelephonyPortabilityStruct::setResellerOrder() |
||
| 153 | * @uses TelephonyPortabilityStruct::setCustomerMailSent() |
||
| 154 | * @uses TelephonyPortabilityStruct::setCustomerMailSendDate() |
||
| 155 | * @uses TelephonyPortabilityStruct::setCustomerMailReturned() |
||
| 156 | * @uses TelephonyPortabilityStruct::setCustomerMailReturnDate() |
||
| 157 | * @uses TelephonyPortabilityStruct::setCustomerMailTracking() |
||
| 158 | * @uses TelephonyPortabilityStruct::setRangeHolderName() |
||
| 159 | * @uses TelephonyPortabilityStruct::setLosingCpName() |
||
| 160 | * @uses TelephonyPortabilityStruct::setRhOrderSent() |
||
| 161 | * @uses TelephonyPortabilityStruct::setRhOrderReceived() |
||
| 162 | * @uses TelephonyPortabilityStruct::setRhOrderAck() |
||
| 163 | * @uses TelephonyPortabilityStruct::setRhOrderAckComment() |
||
| 164 | * @uses TelephonyPortabilityStruct::setRhOrderPort() |
||
| 165 | * @uses TelephonyPortabilityStruct::setRhOrderPortComment() |
||
| 166 | * @uses TelephonyPortabilityStruct::setLcpOrderSent() |
||
| 167 | * @uses TelephonyPortabilityStruct::setLcpOrderReceived() |
||
| 168 | * @uses TelephonyPortabilityStruct::setLcpOrderAck() |
||
| 169 | * @uses TelephonyPortabilityStruct::setLcpOrderAckComment() |
||
| 170 | * @uses TelephonyPortabilityStruct::setLcpOrderPort() |
||
| 171 | * @uses TelephonyPortabilityStruct::setLcpOrderPortComment() |
||
| 172 | * @param int $id |
||
| 173 | * @param string $customerFullName |
||
| 174 | * @param string $billingAccount |
||
| 175 | * @param string $callNumber |
||
| 176 | * @param \Ovh\ArrayType\MyArrayOfStringType $extraNumbers |
||
| 177 | * @param string $planDate |
||
| 178 | * @param bool $resellerOrder |
||
| 179 | * @param bool $customerMailSent |
||
| 180 | * @param string $customerMailSendDate |
||
| 181 | * @param bool $customerMailReturned |
||
| 182 | * @param string $customerMailReturnDate |
||
| 183 | * @param string $customerMailTracking |
||
| 184 | * @param string $rangeHolderName |
||
| 185 | * @param string $losingCpName |
||
| 186 | * @param bool $rhOrderSent |
||
| 187 | * @param bool $rhOrderReceived |
||
| 188 | * @param string $rhOrderAck |
||
| 189 | * @param string $rhOrderAckComment |
||
| 190 | * @param string $rhOrderPort |
||
| 191 | * @param string $rhOrderPortComment |
||
| 192 | * @param bool $lcpOrderSent |
||
| 193 | * @param bool $lcpOrderReceived |
||
| 194 | * @param string $lcpOrderAck |
||
| 195 | * @param string $lcpOrderAckComment |
||
| 196 | * @param string $lcpOrderPort |
||
| 197 | * @param string $lcpOrderPortComment |
||
| 198 | */ |
||
| 199 | public function __construct($id = null, $customerFullName = null, $billingAccount = null, $callNumber = null, \Ovh\ArrayType\MyArrayOfStringType $extraNumbers = null, $planDate = null, $resellerOrder = null, $customerMailSent = null, $customerMailSendDate = null, $customerMailReturned = null, $customerMailReturnDate = null, $customerMailTracking = null, $rangeHolderName = null, $losingCpName = null, $rhOrderSent = null, $rhOrderReceived = null, $rhOrderAck = null, $rhOrderAckComment = null, $rhOrderPort = null, $rhOrderPortComment = null, $lcpOrderSent = null, $lcpOrderReceived = null, $lcpOrderAck = null, $lcpOrderAckComment = null, $lcpOrderPort = null, $lcpOrderPortComment = null) |
||
| 200 | { |
||
| 201 | $this |
||
| 202 | ->setId($id) |
||
| 203 | ->setCustomerFullName($customerFullName) |
||
| 204 | ->setBillingAccount($billingAccount) |
||
| 205 | ->setCallNumber($callNumber) |
||
| 206 | ->setExtraNumbers($extraNumbers) |
||
| 207 | ->setPlanDate($planDate) |
||
| 208 | ->setResellerOrder($resellerOrder) |
||
| 209 | ->setCustomerMailSent($customerMailSent) |
||
| 210 | ->setCustomerMailSendDate($customerMailSendDate) |
||
| 211 | ->setCustomerMailReturned($customerMailReturned) |
||
| 212 | ->setCustomerMailReturnDate($customerMailReturnDate) |
||
| 213 | ->setCustomerMailTracking($customerMailTracking) |
||
| 214 | ->setRangeHolderName($rangeHolderName) |
||
| 215 | ->setLosingCpName($losingCpName) |
||
| 216 | ->setRhOrderSent($rhOrderSent) |
||
| 217 | ->setRhOrderReceived($rhOrderReceived) |
||
| 218 | ->setRhOrderAck($rhOrderAck) |
||
| 219 | ->setRhOrderAckComment($rhOrderAckComment) |
||
| 220 | ->setRhOrderPort($rhOrderPort) |
||
| 221 | ->setRhOrderPortComment($rhOrderPortComment) |
||
| 222 | ->setLcpOrderSent($lcpOrderSent) |
||
| 223 | ->setLcpOrderReceived($lcpOrderReceived) |
||
| 224 | ->setLcpOrderAck($lcpOrderAck) |
||
| 225 | ->setLcpOrderAckComment($lcpOrderAckComment) |
||
| 226 | ->setLcpOrderPort($lcpOrderPort) |
||
| 227 | ->setLcpOrderPortComment($lcpOrderPortComment); |
||
| 228 | } |
||
| 229 | /** |
||
| 230 | * Get id value |
||
| 231 | * @return int|null |
||
| 232 | */ |
||
| 233 | public function getId() |
||
| 234 | { |
||
| 235 | return $this->id; |
||
| 236 | } |
||
| 237 | /** |
||
| 238 | * Set id value |
||
| 239 | * @param int $id |
||
| 240 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 241 | */ |
||
| 242 | public function setId($id = null) |
||
| 243 | { |
||
| 244 | // validation for constraint: int |
||
| 245 | if (!is_null($id) && !(is_int($id) || ctype_digit($id))) { |
||
|
|
|||
| 246 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($id, true), gettype($id)), __LINE__); |
||
| 247 | } |
||
| 248 | $this->id = $id; |
||
| 249 | return $this; |
||
| 250 | } |
||
| 251 | /** |
||
| 252 | * Get customerFullName value |
||
| 253 | * @return string|null |
||
| 254 | */ |
||
| 255 | public function getCustomerFullName() |
||
| 256 | { |
||
| 257 | return $this->customerFullName; |
||
| 258 | } |
||
| 259 | /** |
||
| 260 | * Set customerFullName value |
||
| 261 | * @param string $customerFullName |
||
| 262 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 263 | */ |
||
| 264 | public function setCustomerFullName($customerFullName = null) |
||
| 272 | } |
||
| 273 | /** |
||
| 274 | * Get billingAccount value |
||
| 275 | * @return string|null |
||
| 276 | */ |
||
| 277 | public function getBillingAccount() |
||
| 278 | { |
||
| 279 | return $this->billingAccount; |
||
| 280 | } |
||
| 281 | /** |
||
| 282 | * Set billingAccount value |
||
| 283 | * @param string $billingAccount |
||
| 284 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 285 | */ |
||
| 286 | public function setBillingAccount($billingAccount = null) |
||
| 287 | { |
||
| 288 | // validation for constraint: string |
||
| 289 | if (!is_null($billingAccount) && !is_string($billingAccount)) { |
||
| 290 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($billingAccount, true), gettype($billingAccount)), __LINE__); |
||
| 291 | } |
||
| 292 | $this->billingAccount = $billingAccount; |
||
| 293 | return $this; |
||
| 294 | } |
||
| 295 | /** |
||
| 296 | * Get callNumber value |
||
| 297 | * @return string|null |
||
| 298 | */ |
||
| 299 | public function getCallNumber() |
||
| 300 | { |
||
| 301 | return $this->callNumber; |
||
| 302 | } |
||
| 303 | /** |
||
| 304 | * Set callNumber value |
||
| 305 | * @param string $callNumber |
||
| 306 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 307 | */ |
||
| 308 | public function setCallNumber($callNumber = null) |
||
| 309 | { |
||
| 310 | // validation for constraint: string |
||
| 311 | if (!is_null($callNumber) && !is_string($callNumber)) { |
||
| 312 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($callNumber, true), gettype($callNumber)), __LINE__); |
||
| 313 | } |
||
| 314 | $this->callNumber = $callNumber; |
||
| 315 | return $this; |
||
| 316 | } |
||
| 317 | /** |
||
| 318 | * Get extraNumbers value |
||
| 319 | * @return \Ovh\ArrayType\MyArrayOfStringType|null |
||
| 320 | */ |
||
| 321 | public function getExtraNumbers() |
||
| 322 | { |
||
| 323 | return $this->extraNumbers; |
||
| 324 | } |
||
| 325 | /** |
||
| 326 | * Set extraNumbers value |
||
| 327 | * @param \Ovh\ArrayType\MyArrayOfStringType $extraNumbers |
||
| 328 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 329 | */ |
||
| 330 | public function setExtraNumbers(\Ovh\ArrayType\MyArrayOfStringType $extraNumbers = null) |
||
| 331 | { |
||
| 332 | $this->extraNumbers = $extraNumbers; |
||
| 333 | return $this; |
||
| 334 | } |
||
| 335 | /** |
||
| 336 | * Get planDate value |
||
| 337 | * @return string|null |
||
| 338 | */ |
||
| 339 | public function getPlanDate() |
||
| 340 | { |
||
| 341 | return $this->planDate; |
||
| 342 | } |
||
| 343 | /** |
||
| 344 | * Set planDate value |
||
| 345 | * @param string $planDate |
||
| 346 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 347 | */ |
||
| 348 | public function setPlanDate($planDate = null) |
||
| 349 | { |
||
| 350 | // validation for constraint: string |
||
| 351 | if (!is_null($planDate) && !is_string($planDate)) { |
||
| 352 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($planDate, true), gettype($planDate)), __LINE__); |
||
| 353 | } |
||
| 354 | $this->planDate = $planDate; |
||
| 355 | return $this; |
||
| 356 | } |
||
| 357 | /** |
||
| 358 | * Get resellerOrder value |
||
| 359 | * @return bool|null |
||
| 360 | */ |
||
| 361 | public function getResellerOrder() |
||
| 362 | { |
||
| 363 | return $this->resellerOrder; |
||
| 364 | } |
||
| 365 | /** |
||
| 366 | * Set resellerOrder value |
||
| 367 | * @param bool $resellerOrder |
||
| 368 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 369 | */ |
||
| 370 | public function setResellerOrder($resellerOrder = null) |
||
| 371 | { |
||
| 372 | // validation for constraint: boolean |
||
| 373 | if (!is_null($resellerOrder) && !is_bool($resellerOrder)) { |
||
| 374 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($resellerOrder, true), gettype($resellerOrder)), __LINE__); |
||
| 375 | } |
||
| 376 | $this->resellerOrder = $resellerOrder; |
||
| 377 | return $this; |
||
| 378 | } |
||
| 379 | /** |
||
| 380 | * Get customerMailSent value |
||
| 381 | * @return bool|null |
||
| 382 | */ |
||
| 383 | public function getCustomerMailSent() |
||
| 384 | { |
||
| 385 | return $this->customerMailSent; |
||
| 386 | } |
||
| 387 | /** |
||
| 388 | * Set customerMailSent value |
||
| 389 | * @param bool $customerMailSent |
||
| 390 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 391 | */ |
||
| 392 | public function setCustomerMailSent($customerMailSent = null) |
||
| 393 | { |
||
| 394 | // validation for constraint: boolean |
||
| 395 | if (!is_null($customerMailSent) && !is_bool($customerMailSent)) { |
||
| 396 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($customerMailSent, true), gettype($customerMailSent)), __LINE__); |
||
| 397 | } |
||
| 398 | $this->customerMailSent = $customerMailSent; |
||
| 399 | return $this; |
||
| 400 | } |
||
| 401 | /** |
||
| 402 | * Get customerMailSendDate value |
||
| 403 | * @return string|null |
||
| 404 | */ |
||
| 405 | public function getCustomerMailSendDate() |
||
| 406 | { |
||
| 407 | return $this->customerMailSendDate; |
||
| 408 | } |
||
| 409 | /** |
||
| 410 | * Set customerMailSendDate value |
||
| 411 | * @param string $customerMailSendDate |
||
| 412 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 413 | */ |
||
| 414 | public function setCustomerMailSendDate($customerMailSendDate = null) |
||
| 415 | { |
||
| 416 | // validation for constraint: string |
||
| 417 | if (!is_null($customerMailSendDate) && !is_string($customerMailSendDate)) { |
||
| 418 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($customerMailSendDate, true), gettype($customerMailSendDate)), __LINE__); |
||
| 419 | } |
||
| 420 | $this->customerMailSendDate = $customerMailSendDate; |
||
| 421 | return $this; |
||
| 422 | } |
||
| 423 | /** |
||
| 424 | * Get customerMailReturned value |
||
| 425 | * @return bool|null |
||
| 426 | */ |
||
| 427 | public function getCustomerMailReturned() |
||
| 428 | { |
||
| 429 | return $this->customerMailReturned; |
||
| 430 | } |
||
| 431 | /** |
||
| 432 | * Set customerMailReturned value |
||
| 433 | * @param bool $customerMailReturned |
||
| 434 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 435 | */ |
||
| 436 | public function setCustomerMailReturned($customerMailReturned = null) |
||
| 437 | { |
||
| 438 | // validation for constraint: boolean |
||
| 439 | if (!is_null($customerMailReturned) && !is_bool($customerMailReturned)) { |
||
| 440 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($customerMailReturned, true), gettype($customerMailReturned)), __LINE__); |
||
| 441 | } |
||
| 442 | $this->customerMailReturned = $customerMailReturned; |
||
| 443 | return $this; |
||
| 444 | } |
||
| 445 | /** |
||
| 446 | * Get customerMailReturnDate value |
||
| 447 | * @return string|null |
||
| 448 | */ |
||
| 449 | public function getCustomerMailReturnDate() |
||
| 450 | { |
||
| 451 | return $this->customerMailReturnDate; |
||
| 452 | } |
||
| 453 | /** |
||
| 454 | * Set customerMailReturnDate value |
||
| 455 | * @param string $customerMailReturnDate |
||
| 456 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 457 | */ |
||
| 458 | public function setCustomerMailReturnDate($customerMailReturnDate = null) |
||
| 459 | { |
||
| 460 | // validation for constraint: string |
||
| 461 | if (!is_null($customerMailReturnDate) && !is_string($customerMailReturnDate)) { |
||
| 462 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($customerMailReturnDate, true), gettype($customerMailReturnDate)), __LINE__); |
||
| 463 | } |
||
| 464 | $this->customerMailReturnDate = $customerMailReturnDate; |
||
| 465 | return $this; |
||
| 466 | } |
||
| 467 | /** |
||
| 468 | * Get customerMailTracking value |
||
| 469 | * @return string|null |
||
| 470 | */ |
||
| 471 | public function getCustomerMailTracking() |
||
| 472 | { |
||
| 473 | return $this->customerMailTracking; |
||
| 474 | } |
||
| 475 | /** |
||
| 476 | * Set customerMailTracking value |
||
| 477 | * @param string $customerMailTracking |
||
| 478 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 479 | */ |
||
| 480 | public function setCustomerMailTracking($customerMailTracking = null) |
||
| 481 | { |
||
| 482 | // validation for constraint: string |
||
| 483 | if (!is_null($customerMailTracking) && !is_string($customerMailTracking)) { |
||
| 484 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($customerMailTracking, true), gettype($customerMailTracking)), __LINE__); |
||
| 485 | } |
||
| 486 | $this->customerMailTracking = $customerMailTracking; |
||
| 487 | return $this; |
||
| 488 | } |
||
| 489 | /** |
||
| 490 | * Get rangeHolderName value |
||
| 491 | * @return string|null |
||
| 492 | */ |
||
| 493 | public function getRangeHolderName() |
||
| 494 | { |
||
| 495 | return $this->rangeHolderName; |
||
| 496 | } |
||
| 497 | /** |
||
| 498 | * Set rangeHolderName value |
||
| 499 | * @param string $rangeHolderName |
||
| 500 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 501 | */ |
||
| 502 | public function setRangeHolderName($rangeHolderName = null) |
||
| 503 | { |
||
| 504 | // validation for constraint: string |
||
| 505 | if (!is_null($rangeHolderName) && !is_string($rangeHolderName)) { |
||
| 506 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rangeHolderName, true), gettype($rangeHolderName)), __LINE__); |
||
| 507 | } |
||
| 508 | $this->rangeHolderName = $rangeHolderName; |
||
| 509 | return $this; |
||
| 510 | } |
||
| 511 | /** |
||
| 512 | * Get losingCpName value |
||
| 513 | * @return string|null |
||
| 514 | */ |
||
| 515 | public function getLosingCpName() |
||
| 516 | { |
||
| 517 | return $this->losingCpName; |
||
| 518 | } |
||
| 519 | /** |
||
| 520 | * Set losingCpName value |
||
| 521 | * @param string $losingCpName |
||
| 522 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 523 | */ |
||
| 524 | public function setLosingCpName($losingCpName = null) |
||
| 525 | { |
||
| 526 | // validation for constraint: string |
||
| 527 | if (!is_null($losingCpName) && !is_string($losingCpName)) { |
||
| 528 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($losingCpName, true), gettype($losingCpName)), __LINE__); |
||
| 529 | } |
||
| 530 | $this->losingCpName = $losingCpName; |
||
| 531 | return $this; |
||
| 532 | } |
||
| 533 | /** |
||
| 534 | * Get rhOrderSent value |
||
| 535 | * @return bool|null |
||
| 536 | */ |
||
| 537 | public function getRhOrderSent() |
||
| 538 | { |
||
| 539 | return $this->rhOrderSent; |
||
| 540 | } |
||
| 541 | /** |
||
| 542 | * Set rhOrderSent value |
||
| 543 | * @param bool $rhOrderSent |
||
| 544 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 545 | */ |
||
| 546 | public function setRhOrderSent($rhOrderSent = null) |
||
| 547 | { |
||
| 548 | // validation for constraint: boolean |
||
| 549 | if (!is_null($rhOrderSent) && !is_bool($rhOrderSent)) { |
||
| 550 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($rhOrderSent, true), gettype($rhOrderSent)), __LINE__); |
||
| 551 | } |
||
| 552 | $this->rhOrderSent = $rhOrderSent; |
||
| 553 | return $this; |
||
| 554 | } |
||
| 555 | /** |
||
| 556 | * Get rhOrderReceived value |
||
| 557 | * @return bool|null |
||
| 558 | */ |
||
| 559 | public function getRhOrderReceived() |
||
| 560 | { |
||
| 561 | return $this->rhOrderReceived; |
||
| 562 | } |
||
| 563 | /** |
||
| 564 | * Set rhOrderReceived value |
||
| 565 | * @param bool $rhOrderReceived |
||
| 566 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 567 | */ |
||
| 568 | public function setRhOrderReceived($rhOrderReceived = null) |
||
| 569 | { |
||
| 570 | // validation for constraint: boolean |
||
| 571 | if (!is_null($rhOrderReceived) && !is_bool($rhOrderReceived)) { |
||
| 572 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($rhOrderReceived, true), gettype($rhOrderReceived)), __LINE__); |
||
| 573 | } |
||
| 574 | $this->rhOrderReceived = $rhOrderReceived; |
||
| 575 | return $this; |
||
| 576 | } |
||
| 577 | /** |
||
| 578 | * Get rhOrderAck value |
||
| 579 | * @return string|null |
||
| 580 | */ |
||
| 581 | public function getRhOrderAck() |
||
| 582 | { |
||
| 583 | return $this->rhOrderAck; |
||
| 584 | } |
||
| 585 | /** |
||
| 586 | * Set rhOrderAck value |
||
| 587 | * @param string $rhOrderAck |
||
| 588 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 589 | */ |
||
| 590 | public function setRhOrderAck($rhOrderAck = null) |
||
| 591 | { |
||
| 592 | // validation for constraint: string |
||
| 593 | if (!is_null($rhOrderAck) && !is_string($rhOrderAck)) { |
||
| 594 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rhOrderAck, true), gettype($rhOrderAck)), __LINE__); |
||
| 595 | } |
||
| 596 | $this->rhOrderAck = $rhOrderAck; |
||
| 597 | return $this; |
||
| 598 | } |
||
| 599 | /** |
||
| 600 | * Get rhOrderAckComment value |
||
| 601 | * @return string|null |
||
| 602 | */ |
||
| 603 | public function getRhOrderAckComment() |
||
| 604 | { |
||
| 605 | return $this->rhOrderAckComment; |
||
| 606 | } |
||
| 607 | /** |
||
| 608 | * Set rhOrderAckComment value |
||
| 609 | * @param string $rhOrderAckComment |
||
| 610 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 611 | */ |
||
| 612 | public function setRhOrderAckComment($rhOrderAckComment = null) |
||
| 613 | { |
||
| 614 | // validation for constraint: string |
||
| 615 | if (!is_null($rhOrderAckComment) && !is_string($rhOrderAckComment)) { |
||
| 616 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rhOrderAckComment, true), gettype($rhOrderAckComment)), __LINE__); |
||
| 617 | } |
||
| 618 | $this->rhOrderAckComment = $rhOrderAckComment; |
||
| 619 | return $this; |
||
| 620 | } |
||
| 621 | /** |
||
| 622 | * Get rhOrderPort value |
||
| 623 | * @return string|null |
||
| 624 | */ |
||
| 625 | public function getRhOrderPort() |
||
| 626 | { |
||
| 627 | return $this->rhOrderPort; |
||
| 628 | } |
||
| 629 | /** |
||
| 630 | * Set rhOrderPort value |
||
| 631 | * @param string $rhOrderPort |
||
| 632 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 633 | */ |
||
| 634 | public function setRhOrderPort($rhOrderPort = null) |
||
| 635 | { |
||
| 636 | // validation for constraint: string |
||
| 637 | if (!is_null($rhOrderPort) && !is_string($rhOrderPort)) { |
||
| 638 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rhOrderPort, true), gettype($rhOrderPort)), __LINE__); |
||
| 639 | } |
||
| 640 | $this->rhOrderPort = $rhOrderPort; |
||
| 641 | return $this; |
||
| 642 | } |
||
| 643 | /** |
||
| 644 | * Get rhOrderPortComment value |
||
| 645 | * @return string|null |
||
| 646 | */ |
||
| 647 | public function getRhOrderPortComment() |
||
| 650 | } |
||
| 651 | /** |
||
| 652 | * Set rhOrderPortComment value |
||
| 653 | * @param string $rhOrderPortComment |
||
| 654 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 655 | */ |
||
| 656 | public function setRhOrderPortComment($rhOrderPortComment = null) |
||
| 657 | { |
||
| 658 | // validation for constraint: string |
||
| 659 | if (!is_null($rhOrderPortComment) && !is_string($rhOrderPortComment)) { |
||
| 660 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rhOrderPortComment, true), gettype($rhOrderPortComment)), __LINE__); |
||
| 661 | } |
||
| 662 | $this->rhOrderPortComment = $rhOrderPortComment; |
||
| 663 | return $this; |
||
| 664 | } |
||
| 665 | /** |
||
| 666 | * Get lcpOrderSent value |
||
| 667 | * @return bool|null |
||
| 668 | */ |
||
| 669 | public function getLcpOrderSent() |
||
| 670 | { |
||
| 671 | return $this->lcpOrderSent; |
||
| 672 | } |
||
| 673 | /** |
||
| 674 | * Set lcpOrderSent value |
||
| 675 | * @param bool $lcpOrderSent |
||
| 676 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 677 | */ |
||
| 678 | public function setLcpOrderSent($lcpOrderSent = null) |
||
| 679 | { |
||
| 680 | // validation for constraint: boolean |
||
| 681 | if (!is_null($lcpOrderSent) && !is_bool($lcpOrderSent)) { |
||
| 682 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($lcpOrderSent, true), gettype($lcpOrderSent)), __LINE__); |
||
| 683 | } |
||
| 684 | $this->lcpOrderSent = $lcpOrderSent; |
||
| 685 | return $this; |
||
| 686 | } |
||
| 687 | /** |
||
| 688 | * Get lcpOrderReceived value |
||
| 689 | * @return bool|null |
||
| 690 | */ |
||
| 691 | public function getLcpOrderReceived() |
||
| 694 | } |
||
| 695 | /** |
||
| 696 | * Set lcpOrderReceived value |
||
| 697 | * @param bool $lcpOrderReceived |
||
| 698 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 699 | */ |
||
| 700 | public function setLcpOrderReceived($lcpOrderReceived = null) |
||
| 701 | { |
||
| 702 | // validation for constraint: boolean |
||
| 703 | if (!is_null($lcpOrderReceived) && !is_bool($lcpOrderReceived)) { |
||
| 704 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($lcpOrderReceived, true), gettype($lcpOrderReceived)), __LINE__); |
||
| 705 | } |
||
| 706 | $this->lcpOrderReceived = $lcpOrderReceived; |
||
| 707 | return $this; |
||
| 708 | } |
||
| 709 | /** |
||
| 710 | * Get lcpOrderAck value |
||
| 711 | * @return string|null |
||
| 712 | */ |
||
| 713 | public function getLcpOrderAck() |
||
| 714 | { |
||
| 715 | return $this->lcpOrderAck; |
||
| 716 | } |
||
| 717 | /** |
||
| 718 | * Set lcpOrderAck value |
||
| 719 | * @param string $lcpOrderAck |
||
| 720 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 721 | */ |
||
| 722 | public function setLcpOrderAck($lcpOrderAck = null) |
||
| 723 | { |
||
| 724 | // validation for constraint: string |
||
| 725 | if (!is_null($lcpOrderAck) && !is_string($lcpOrderAck)) { |
||
| 726 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lcpOrderAck, true), gettype($lcpOrderAck)), __LINE__); |
||
| 727 | } |
||
| 728 | $this->lcpOrderAck = $lcpOrderAck; |
||
| 729 | return $this; |
||
| 730 | } |
||
| 731 | /** |
||
| 732 | * Get lcpOrderAckComment value |
||
| 733 | * @return string|null |
||
| 734 | */ |
||
| 735 | public function getLcpOrderAckComment() |
||
| 736 | { |
||
| 737 | return $this->lcpOrderAckComment; |
||
| 738 | } |
||
| 739 | /** |
||
| 740 | * Set lcpOrderAckComment value |
||
| 741 | * @param string $lcpOrderAckComment |
||
| 742 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 743 | */ |
||
| 744 | public function setLcpOrderAckComment($lcpOrderAckComment = null) |
||
| 745 | { |
||
| 746 | // validation for constraint: string |
||
| 747 | if (!is_null($lcpOrderAckComment) && !is_string($lcpOrderAckComment)) { |
||
| 748 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lcpOrderAckComment, true), gettype($lcpOrderAckComment)), __LINE__); |
||
| 749 | } |
||
| 750 | $this->lcpOrderAckComment = $lcpOrderAckComment; |
||
| 751 | return $this; |
||
| 752 | } |
||
| 753 | /** |
||
| 754 | * Get lcpOrderPort value |
||
| 755 | * @return string|null |
||
| 756 | */ |
||
| 757 | public function getLcpOrderPort() |
||
| 758 | { |
||
| 759 | return $this->lcpOrderPort; |
||
| 760 | } |
||
| 761 | /** |
||
| 762 | * Set lcpOrderPort value |
||
| 763 | * @param string $lcpOrderPort |
||
| 764 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 765 | */ |
||
| 766 | public function setLcpOrderPort($lcpOrderPort = null) |
||
| 767 | { |
||
| 768 | // validation for constraint: string |
||
| 769 | if (!is_null($lcpOrderPort) && !is_string($lcpOrderPort)) { |
||
| 770 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lcpOrderPort, true), gettype($lcpOrderPort)), __LINE__); |
||
| 771 | } |
||
| 772 | $this->lcpOrderPort = $lcpOrderPort; |
||
| 773 | return $this; |
||
| 774 | } |
||
| 775 | /** |
||
| 776 | * Get lcpOrderPortComment value |
||
| 777 | * @return string|null |
||
| 778 | */ |
||
| 779 | public function getLcpOrderPortComment() |
||
| 780 | { |
||
| 781 | return $this->lcpOrderPortComment; |
||
| 782 | } |
||
| 783 | /** |
||
| 784 | * Set lcpOrderPortComment value |
||
| 785 | * @param string $lcpOrderPortComment |
||
| 786 | * @return \Ovh\StructType\TelephonyPortabilityStruct |
||
| 787 | */ |
||
| 788 | public function setLcpOrderPortComment($lcpOrderPortComment = null) |
||
| 796 | } |
||
| 797 | } |
||
| 798 |