| Total Complexity | 105 |
| Total Lines | 840 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like ResellerDomainTransferIT 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 ResellerDomainTransferIT, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 12 | class ResellerDomainTransferIT 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 domain |
||
| 23 | * Meta information extracted from the WSDL |
||
| 24 | * - nillable: true |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $domain; |
||
| 28 | /** |
||
| 29 | * The authinfo |
||
| 30 | * Meta information extracted from the WSDL |
||
| 31 | * - nillable: true |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | public $authinfo; |
||
| 35 | /** |
||
| 36 | * The hosting |
||
| 37 | * Meta information extracted from the WSDL |
||
| 38 | * - nillable: true |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | public $hosting; |
||
| 42 | /** |
||
| 43 | * The offer |
||
| 44 | * Meta information extracted from the WSDL |
||
| 45 | * - nillable: true |
||
| 46 | * @var string |
||
| 47 | */ |
||
| 48 | public $offer; |
||
| 49 | /** |
||
| 50 | * The profile |
||
| 51 | * Meta information extracted from the WSDL |
||
| 52 | * - nillable: true |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | public $profile; |
||
| 56 | /** |
||
| 57 | * The owo |
||
| 58 | * Meta information extracted from the WSDL |
||
| 59 | * - nillable: true |
||
| 60 | * @var string |
||
| 61 | */ |
||
| 62 | public $owo; |
||
| 63 | /** |
||
| 64 | * The owner |
||
| 65 | * Meta information extracted from the WSDL |
||
| 66 | * - nillable: true |
||
| 67 | * @var string |
||
| 68 | */ |
||
| 69 | public $owner; |
||
| 70 | /** |
||
| 71 | * The admin |
||
| 72 | * Meta information extracted from the WSDL |
||
| 73 | * - nillable: true |
||
| 74 | * @var string |
||
| 75 | */ |
||
| 76 | public $admin; |
||
| 77 | /** |
||
| 78 | * The tech |
||
| 79 | * Meta information extracted from the WSDL |
||
| 80 | * - nillable: true |
||
| 81 | * @var string |
||
| 82 | */ |
||
| 83 | public $tech; |
||
| 84 | /** |
||
| 85 | * The billing |
||
| 86 | * Meta information extracted from the WSDL |
||
| 87 | * - nillable: true |
||
| 88 | * @var string |
||
| 89 | */ |
||
| 90 | public $billing; |
||
| 91 | /** |
||
| 92 | * The dns1 |
||
| 93 | * Meta information extracted from the WSDL |
||
| 94 | * - nillable: true |
||
| 95 | * @var string |
||
| 96 | */ |
||
| 97 | public $dns1; |
||
| 98 | /** |
||
| 99 | * The dns2 |
||
| 100 | * Meta information extracted from the WSDL |
||
| 101 | * - nillable: true |
||
| 102 | * @var string |
||
| 103 | */ |
||
| 104 | public $dns2; |
||
| 105 | /** |
||
| 106 | * The dns3 |
||
| 107 | * Meta information extracted from the WSDL |
||
| 108 | * - nillable: true |
||
| 109 | * @var string |
||
| 110 | */ |
||
| 111 | public $dns3; |
||
| 112 | /** |
||
| 113 | * The dns4 |
||
| 114 | * Meta information extracted from the WSDL |
||
| 115 | * - nillable: true |
||
| 116 | * @var string |
||
| 117 | */ |
||
| 118 | public $dns4; |
||
| 119 | /** |
||
| 120 | * The dns5 |
||
| 121 | * Meta information extracted from the WSDL |
||
| 122 | * - nillable: true |
||
| 123 | * @var string |
||
| 124 | */ |
||
| 125 | public $dns5; |
||
| 126 | /** |
||
| 127 | * The legalRepresentantFirstName |
||
| 128 | * Meta information extracted from the WSDL |
||
| 129 | * - nillable: true |
||
| 130 | * @var string |
||
| 131 | */ |
||
| 132 | public $legalRepresentantFirstName; |
||
| 133 | /** |
||
| 134 | * The legalRepresentantLastName |
||
| 135 | * Meta information extracted from the WSDL |
||
| 136 | * - nillable: true |
||
| 137 | * @var string |
||
| 138 | */ |
||
| 139 | public $legalRepresentantLastName; |
||
| 140 | /** |
||
| 141 | * The legalNumber |
||
| 142 | * Meta information extracted from the WSDL |
||
| 143 | * - nillable: true |
||
| 144 | * @var string |
||
| 145 | */ |
||
| 146 | public $legalNumber; |
||
| 147 | /** |
||
| 148 | * The vat |
||
| 149 | * Meta information extracted from the WSDL |
||
| 150 | * - nillable: true |
||
| 151 | * @var string |
||
| 152 | */ |
||
| 153 | public $vat; |
||
| 154 | /** |
||
| 155 | * The birthDate |
||
| 156 | * Meta information extracted from the WSDL |
||
| 157 | * - nillable: true |
||
| 158 | * @var string |
||
| 159 | */ |
||
| 160 | public $birthDate; |
||
| 161 | /** |
||
| 162 | * The birthCity |
||
| 163 | * Meta information extracted from the WSDL |
||
| 164 | * - nillable: true |
||
| 165 | * @var string |
||
| 166 | */ |
||
| 167 | public $birthCity; |
||
| 168 | /** |
||
| 169 | * The birthDepartement |
||
| 170 | * Meta information extracted from the WSDL |
||
| 171 | * - nillable: true |
||
| 172 | * @var string |
||
| 173 | */ |
||
| 174 | public $birthDepartement; |
||
| 175 | /** |
||
| 176 | * The birthCountry |
||
| 177 | * Meta information extracted from the WSDL |
||
| 178 | * - nillable: true |
||
| 179 | * @var string |
||
| 180 | */ |
||
| 181 | public $birthCountry; |
||
| 182 | /** |
||
| 183 | * The nationality |
||
| 184 | * Meta information extracted from the WSDL |
||
| 185 | * - nillable: true |
||
| 186 | * @var string |
||
| 187 | */ |
||
| 188 | public $nationality; |
||
| 189 | /** |
||
| 190 | * The dryRun |
||
| 191 | * Meta information extracted from the WSDL |
||
| 192 | * - nillable: true |
||
| 193 | * @var bool |
||
| 194 | */ |
||
| 195 | public $dryRun; |
||
| 196 | /** |
||
| 197 | * Constructor method for resellerDomainTransferIT |
||
| 198 | * @uses ResellerDomainTransferIT::setSession() |
||
| 199 | * @uses ResellerDomainTransferIT::setDomain() |
||
| 200 | * @uses ResellerDomainTransferIT::setAuthinfo() |
||
| 201 | * @uses ResellerDomainTransferIT::setHosting() |
||
| 202 | * @uses ResellerDomainTransferIT::setOffer() |
||
| 203 | * @uses ResellerDomainTransferIT::setProfile() |
||
| 204 | * @uses ResellerDomainTransferIT::setOwo() |
||
| 205 | * @uses ResellerDomainTransferIT::setOwner() |
||
| 206 | * @uses ResellerDomainTransferIT::setAdmin() |
||
| 207 | * @uses ResellerDomainTransferIT::setTech() |
||
| 208 | * @uses ResellerDomainTransferIT::setBilling() |
||
| 209 | * @uses ResellerDomainTransferIT::setDns1() |
||
| 210 | * @uses ResellerDomainTransferIT::setDns2() |
||
| 211 | * @uses ResellerDomainTransferIT::setDns3() |
||
| 212 | * @uses ResellerDomainTransferIT::setDns4() |
||
| 213 | * @uses ResellerDomainTransferIT::setDns5() |
||
| 214 | * @uses ResellerDomainTransferIT::setLegalRepresentantFirstName() |
||
| 215 | * @uses ResellerDomainTransferIT::setLegalRepresentantLastName() |
||
| 216 | * @uses ResellerDomainTransferIT::setLegalNumber() |
||
| 217 | * @uses ResellerDomainTransferIT::setVat() |
||
| 218 | * @uses ResellerDomainTransferIT::setBirthDate() |
||
| 219 | * @uses ResellerDomainTransferIT::setBirthCity() |
||
| 220 | * @uses ResellerDomainTransferIT::setBirthDepartement() |
||
| 221 | * @uses ResellerDomainTransferIT::setBirthCountry() |
||
| 222 | * @uses ResellerDomainTransferIT::setNationality() |
||
| 223 | * @uses ResellerDomainTransferIT::setDryRun() |
||
| 224 | * @param string $session |
||
| 225 | * @param string $domain |
||
| 226 | * @param string $authinfo |
||
| 227 | * @param string $hosting |
||
| 228 | * @param string $offer |
||
| 229 | * @param string $profile |
||
| 230 | * @param string $owo |
||
| 231 | * @param string $owner |
||
| 232 | * @param string $admin |
||
| 233 | * @param string $tech |
||
| 234 | * @param string $billing |
||
| 235 | * @param string $dns1 |
||
| 236 | * @param string $dns2 |
||
| 237 | * @param string $dns3 |
||
| 238 | * @param string $dns4 |
||
| 239 | * @param string $dns5 |
||
| 240 | * @param string $legalRepresentantFirstName |
||
| 241 | * @param string $legalRepresentantLastName |
||
| 242 | * @param string $legalNumber |
||
| 243 | * @param string $vat |
||
| 244 | * @param string $birthDate |
||
| 245 | * @param string $birthCity |
||
| 246 | * @param string $birthDepartement |
||
| 247 | * @param string $birthCountry |
||
| 248 | * @param string $nationality |
||
| 249 | * @param bool $dryRun |
||
| 250 | */ |
||
| 251 | public function __construct($session = null, $domain = null, $authinfo = null, $hosting = null, $offer = null, $profile = null, $owo = null, $owner = null, $admin = null, $tech = null, $billing = null, $dns1 = null, $dns2 = null, $dns3 = null, $dns4 = null, $dns5 = null, $legalRepresentantFirstName = null, $legalRepresentantLastName = null, $legalNumber = null, $vat = null, $birthDate = null, $birthCity = null, $birthDepartement = null, $birthCountry = null, $nationality = null, $dryRun = null) |
||
| 252 | { |
||
| 253 | $this |
||
| 254 | ->setSession($session) |
||
| 255 | ->setDomain($domain) |
||
| 256 | ->setAuthinfo($authinfo) |
||
| 257 | ->setHosting($hosting) |
||
| 258 | ->setOffer($offer) |
||
| 259 | ->setProfile($profile) |
||
| 260 | ->setOwo($owo) |
||
| 261 | ->setOwner($owner) |
||
| 262 | ->setAdmin($admin) |
||
| 263 | ->setTech($tech) |
||
| 264 | ->setBilling($billing) |
||
| 265 | ->setDns1($dns1) |
||
| 266 | ->setDns2($dns2) |
||
| 267 | ->setDns3($dns3) |
||
| 268 | ->setDns4($dns4) |
||
| 269 | ->setDns5($dns5) |
||
| 270 | ->setLegalRepresentantFirstName($legalRepresentantFirstName) |
||
| 271 | ->setLegalRepresentantLastName($legalRepresentantLastName) |
||
| 272 | ->setLegalNumber($legalNumber) |
||
| 273 | ->setVat($vat) |
||
| 274 | ->setBirthDate($birthDate) |
||
| 275 | ->setBirthCity($birthCity) |
||
| 276 | ->setBirthDepartement($birthDepartement) |
||
| 277 | ->setBirthCountry($birthCountry) |
||
| 278 | ->setNationality($nationality) |
||
| 279 | ->setDryRun($dryRun); |
||
| 280 | } |
||
| 281 | /** |
||
| 282 | * Get session value |
||
| 283 | * @return string|null |
||
| 284 | */ |
||
| 285 | public function getSession() |
||
| 286 | { |
||
| 287 | return $this->session; |
||
| 288 | } |
||
| 289 | /** |
||
| 290 | * Set session value |
||
| 291 | * @param string $session |
||
| 292 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 293 | */ |
||
| 294 | public function setSession($session = null) |
||
| 295 | { |
||
| 296 | // validation for constraint: string |
||
| 297 | if (!is_null($session) && !is_string($session)) { |
||
|
|
|||
| 298 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($session, true), gettype($session)), __LINE__); |
||
| 299 | } |
||
| 300 | $this->session = $session; |
||
| 301 | return $this; |
||
| 302 | } |
||
| 303 | /** |
||
| 304 | * Get domain value |
||
| 305 | * @return string|null |
||
| 306 | */ |
||
| 307 | public function getDomain() |
||
| 308 | { |
||
| 309 | return $this->domain; |
||
| 310 | } |
||
| 311 | /** |
||
| 312 | * Set domain value |
||
| 313 | * @param string $domain |
||
| 314 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 315 | */ |
||
| 316 | public function setDomain($domain = null) |
||
| 317 | { |
||
| 318 | // validation for constraint: string |
||
| 319 | if (!is_null($domain) && !is_string($domain)) { |
||
| 320 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($domain, true), gettype($domain)), __LINE__); |
||
| 321 | } |
||
| 322 | $this->domain = $domain; |
||
| 323 | return $this; |
||
| 324 | } |
||
| 325 | /** |
||
| 326 | * Get authinfo value |
||
| 327 | * @return string|null |
||
| 328 | */ |
||
| 329 | public function getAuthinfo() |
||
| 330 | { |
||
| 331 | return $this->authinfo; |
||
| 332 | } |
||
| 333 | /** |
||
| 334 | * Set authinfo value |
||
| 335 | * @param string $authinfo |
||
| 336 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 337 | */ |
||
| 338 | public function setAuthinfo($authinfo = null) |
||
| 339 | { |
||
| 340 | // validation for constraint: string |
||
| 341 | if (!is_null($authinfo) && !is_string($authinfo)) { |
||
| 342 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($authinfo, true), gettype($authinfo)), __LINE__); |
||
| 343 | } |
||
| 344 | $this->authinfo = $authinfo; |
||
| 345 | return $this; |
||
| 346 | } |
||
| 347 | /** |
||
| 348 | * Get hosting value |
||
| 349 | * @return string|null |
||
| 350 | */ |
||
| 351 | public function getHosting() |
||
| 352 | { |
||
| 353 | return $this->hosting; |
||
| 354 | } |
||
| 355 | /** |
||
| 356 | * Set hosting value |
||
| 357 | * @param string $hosting |
||
| 358 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 359 | */ |
||
| 360 | public function setHosting($hosting = null) |
||
| 361 | { |
||
| 362 | // validation for constraint: string |
||
| 363 | if (!is_null($hosting) && !is_string($hosting)) { |
||
| 364 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($hosting, true), gettype($hosting)), __LINE__); |
||
| 365 | } |
||
| 366 | $this->hosting = $hosting; |
||
| 367 | return $this; |
||
| 368 | } |
||
| 369 | /** |
||
| 370 | * Get offer value |
||
| 371 | * @return string|null |
||
| 372 | */ |
||
| 373 | public function getOffer() |
||
| 374 | { |
||
| 375 | return $this->offer; |
||
| 376 | } |
||
| 377 | /** |
||
| 378 | * Set offer value |
||
| 379 | * @param string $offer |
||
| 380 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 381 | */ |
||
| 382 | public function setOffer($offer = null) |
||
| 383 | { |
||
| 384 | // validation for constraint: string |
||
| 385 | if (!is_null($offer) && !is_string($offer)) { |
||
| 386 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($offer, true), gettype($offer)), __LINE__); |
||
| 387 | } |
||
| 388 | $this->offer = $offer; |
||
| 389 | return $this; |
||
| 390 | } |
||
| 391 | /** |
||
| 392 | * Get profile value |
||
| 393 | * @return string|null |
||
| 394 | */ |
||
| 395 | public function getProfile() |
||
| 396 | { |
||
| 397 | return $this->profile; |
||
| 398 | } |
||
| 399 | /** |
||
| 400 | * Set profile value |
||
| 401 | * @param string $profile |
||
| 402 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 403 | */ |
||
| 404 | public function setProfile($profile = null) |
||
| 405 | { |
||
| 406 | // validation for constraint: string |
||
| 407 | if (!is_null($profile) && !is_string($profile)) { |
||
| 408 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($profile, true), gettype($profile)), __LINE__); |
||
| 409 | } |
||
| 410 | $this->profile = $profile; |
||
| 411 | return $this; |
||
| 412 | } |
||
| 413 | /** |
||
| 414 | * Get owo value |
||
| 415 | * @return string|null |
||
| 416 | */ |
||
| 417 | public function getOwo() |
||
| 418 | { |
||
| 419 | return $this->owo; |
||
| 420 | } |
||
| 421 | /** |
||
| 422 | * Set owo value |
||
| 423 | * @param string $owo |
||
| 424 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 425 | */ |
||
| 426 | public function setOwo($owo = null) |
||
| 427 | { |
||
| 428 | // validation for constraint: string |
||
| 429 | if (!is_null($owo) && !is_string($owo)) { |
||
| 430 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($owo, true), gettype($owo)), __LINE__); |
||
| 431 | } |
||
| 432 | $this->owo = $owo; |
||
| 433 | return $this; |
||
| 434 | } |
||
| 435 | /** |
||
| 436 | * Get owner value |
||
| 437 | * @return string|null |
||
| 438 | */ |
||
| 439 | public function getOwner() |
||
| 440 | { |
||
| 441 | return $this->owner; |
||
| 442 | } |
||
| 443 | /** |
||
| 444 | * Set owner value |
||
| 445 | * @param string $owner |
||
| 446 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 447 | */ |
||
| 448 | public function setOwner($owner = null) |
||
| 449 | { |
||
| 450 | // validation for constraint: string |
||
| 451 | if (!is_null($owner) && !is_string($owner)) { |
||
| 452 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($owner, true), gettype($owner)), __LINE__); |
||
| 453 | } |
||
| 454 | $this->owner = $owner; |
||
| 455 | return $this; |
||
| 456 | } |
||
| 457 | /** |
||
| 458 | * Get admin value |
||
| 459 | * @return string|null |
||
| 460 | */ |
||
| 461 | public function getAdmin() |
||
| 462 | { |
||
| 463 | return $this->admin; |
||
| 464 | } |
||
| 465 | /** |
||
| 466 | * Set admin value |
||
| 467 | * @param string $admin |
||
| 468 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 469 | */ |
||
| 470 | public function setAdmin($admin = null) |
||
| 471 | { |
||
| 472 | // validation for constraint: string |
||
| 473 | if (!is_null($admin) && !is_string($admin)) { |
||
| 474 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($admin, true), gettype($admin)), __LINE__); |
||
| 475 | } |
||
| 476 | $this->admin = $admin; |
||
| 477 | return $this; |
||
| 478 | } |
||
| 479 | /** |
||
| 480 | * Get tech value |
||
| 481 | * @return string|null |
||
| 482 | */ |
||
| 483 | public function getTech() |
||
| 484 | { |
||
| 485 | return $this->tech; |
||
| 486 | } |
||
| 487 | /** |
||
| 488 | * Set tech value |
||
| 489 | * @param string $tech |
||
| 490 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 491 | */ |
||
| 492 | public function setTech($tech = null) |
||
| 493 | { |
||
| 494 | // validation for constraint: string |
||
| 495 | if (!is_null($tech) && !is_string($tech)) { |
||
| 496 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tech, true), gettype($tech)), __LINE__); |
||
| 497 | } |
||
| 498 | $this->tech = $tech; |
||
| 499 | return $this; |
||
| 500 | } |
||
| 501 | /** |
||
| 502 | * Get billing value |
||
| 503 | * @return string|null |
||
| 504 | */ |
||
| 505 | public function getBilling() |
||
| 506 | { |
||
| 507 | return $this->billing; |
||
| 508 | } |
||
| 509 | /** |
||
| 510 | * Set billing value |
||
| 511 | * @param string $billing |
||
| 512 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 513 | */ |
||
| 514 | public function setBilling($billing = null) |
||
| 515 | { |
||
| 516 | // validation for constraint: string |
||
| 517 | if (!is_null($billing) && !is_string($billing)) { |
||
| 518 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($billing, true), gettype($billing)), __LINE__); |
||
| 519 | } |
||
| 520 | $this->billing = $billing; |
||
| 521 | return $this; |
||
| 522 | } |
||
| 523 | /** |
||
| 524 | * Get dns1 value |
||
| 525 | * @return string|null |
||
| 526 | */ |
||
| 527 | public function getDns1() |
||
| 528 | { |
||
| 529 | return $this->dns1; |
||
| 530 | } |
||
| 531 | /** |
||
| 532 | * Set dns1 value |
||
| 533 | * @param string $dns1 |
||
| 534 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 535 | */ |
||
| 536 | public function setDns1($dns1 = null) |
||
| 537 | { |
||
| 538 | // validation for constraint: string |
||
| 539 | if (!is_null($dns1) && !is_string($dns1)) { |
||
| 540 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dns1, true), gettype($dns1)), __LINE__); |
||
| 541 | } |
||
| 542 | $this->dns1 = $dns1; |
||
| 543 | return $this; |
||
| 544 | } |
||
| 545 | /** |
||
| 546 | * Get dns2 value |
||
| 547 | * @return string|null |
||
| 548 | */ |
||
| 549 | public function getDns2() |
||
| 550 | { |
||
| 551 | return $this->dns2; |
||
| 552 | } |
||
| 553 | /** |
||
| 554 | * Set dns2 value |
||
| 555 | * @param string $dns2 |
||
| 556 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 557 | */ |
||
| 558 | public function setDns2($dns2 = null) |
||
| 559 | { |
||
| 560 | // validation for constraint: string |
||
| 561 | if (!is_null($dns2) && !is_string($dns2)) { |
||
| 562 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dns2, true), gettype($dns2)), __LINE__); |
||
| 563 | } |
||
| 564 | $this->dns2 = $dns2; |
||
| 565 | return $this; |
||
| 566 | } |
||
| 567 | /** |
||
| 568 | * Get dns3 value |
||
| 569 | * @return string|null |
||
| 570 | */ |
||
| 571 | public function getDns3() |
||
| 572 | { |
||
| 573 | return $this->dns3; |
||
| 574 | } |
||
| 575 | /** |
||
| 576 | * Set dns3 value |
||
| 577 | * @param string $dns3 |
||
| 578 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 579 | */ |
||
| 580 | public function setDns3($dns3 = null) |
||
| 581 | { |
||
| 582 | // validation for constraint: string |
||
| 583 | if (!is_null($dns3) && !is_string($dns3)) { |
||
| 584 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dns3, true), gettype($dns3)), __LINE__); |
||
| 585 | } |
||
| 586 | $this->dns3 = $dns3; |
||
| 587 | return $this; |
||
| 588 | } |
||
| 589 | /** |
||
| 590 | * Get dns4 value |
||
| 591 | * @return string|null |
||
| 592 | */ |
||
| 593 | public function getDns4() |
||
| 594 | { |
||
| 595 | return $this->dns4; |
||
| 596 | } |
||
| 597 | /** |
||
| 598 | * Set dns4 value |
||
| 599 | * @param string $dns4 |
||
| 600 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 601 | */ |
||
| 602 | public function setDns4($dns4 = null) |
||
| 603 | { |
||
| 604 | // validation for constraint: string |
||
| 605 | if (!is_null($dns4) && !is_string($dns4)) { |
||
| 606 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dns4, true), gettype($dns4)), __LINE__); |
||
| 607 | } |
||
| 608 | $this->dns4 = $dns4; |
||
| 609 | return $this; |
||
| 610 | } |
||
| 611 | /** |
||
| 612 | * Get dns5 value |
||
| 613 | * @return string|null |
||
| 614 | */ |
||
| 615 | public function getDns5() |
||
| 616 | { |
||
| 617 | return $this->dns5; |
||
| 618 | } |
||
| 619 | /** |
||
| 620 | * Set dns5 value |
||
| 621 | * @param string $dns5 |
||
| 622 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 623 | */ |
||
| 624 | public function setDns5($dns5 = null) |
||
| 625 | { |
||
| 626 | // validation for constraint: string |
||
| 627 | if (!is_null($dns5) && !is_string($dns5)) { |
||
| 628 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dns5, true), gettype($dns5)), __LINE__); |
||
| 629 | } |
||
| 630 | $this->dns5 = $dns5; |
||
| 631 | return $this; |
||
| 632 | } |
||
| 633 | /** |
||
| 634 | * Get legalRepresentantFirstName value |
||
| 635 | * @return string|null |
||
| 636 | */ |
||
| 637 | public function getLegalRepresentantFirstName() |
||
| 638 | { |
||
| 639 | return $this->legalRepresentantFirstName; |
||
| 640 | } |
||
| 641 | /** |
||
| 642 | * Set legalRepresentantFirstName value |
||
| 643 | * @param string $legalRepresentantFirstName |
||
| 644 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 645 | */ |
||
| 646 | public function setLegalRepresentantFirstName($legalRepresentantFirstName = null) |
||
| 647 | { |
||
| 648 | // validation for constraint: string |
||
| 649 | if (!is_null($legalRepresentantFirstName) && !is_string($legalRepresentantFirstName)) { |
||
| 650 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalRepresentantFirstName, true), gettype($legalRepresentantFirstName)), __LINE__); |
||
| 651 | } |
||
| 652 | $this->legalRepresentantFirstName = $legalRepresentantFirstName; |
||
| 653 | return $this; |
||
| 654 | } |
||
| 655 | /** |
||
| 656 | * Get legalRepresentantLastName value |
||
| 657 | * @return string|null |
||
| 658 | */ |
||
| 659 | public function getLegalRepresentantLastName() |
||
| 662 | } |
||
| 663 | /** |
||
| 664 | * Set legalRepresentantLastName value |
||
| 665 | * @param string $legalRepresentantLastName |
||
| 666 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 667 | */ |
||
| 668 | public function setLegalRepresentantLastName($legalRepresentantLastName = null) |
||
| 669 | { |
||
| 670 | // validation for constraint: string |
||
| 671 | if (!is_null($legalRepresentantLastName) && !is_string($legalRepresentantLastName)) { |
||
| 672 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalRepresentantLastName, true), gettype($legalRepresentantLastName)), __LINE__); |
||
| 673 | } |
||
| 674 | $this->legalRepresentantLastName = $legalRepresentantLastName; |
||
| 675 | return $this; |
||
| 676 | } |
||
| 677 | /** |
||
| 678 | * Get legalNumber value |
||
| 679 | * @return string|null |
||
| 680 | */ |
||
| 681 | public function getLegalNumber() |
||
| 684 | } |
||
| 685 | /** |
||
| 686 | * Set legalNumber value |
||
| 687 | * @param string $legalNumber |
||
| 688 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 689 | */ |
||
| 690 | public function setLegalNumber($legalNumber = null) |
||
| 691 | { |
||
| 692 | // validation for constraint: string |
||
| 693 | if (!is_null($legalNumber) && !is_string($legalNumber)) { |
||
| 694 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($legalNumber, true), gettype($legalNumber)), __LINE__); |
||
| 695 | } |
||
| 696 | $this->legalNumber = $legalNumber; |
||
| 697 | return $this; |
||
| 698 | } |
||
| 699 | /** |
||
| 700 | * Get vat value |
||
| 701 | * @return string|null |
||
| 702 | */ |
||
| 703 | public function getVat() |
||
| 704 | { |
||
| 705 | return $this->vat; |
||
| 706 | } |
||
| 707 | /** |
||
| 708 | * Set vat value |
||
| 709 | * @param string $vat |
||
| 710 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 711 | */ |
||
| 712 | public function setVat($vat = null) |
||
| 713 | { |
||
| 714 | // validation for constraint: string |
||
| 715 | if (!is_null($vat) && !is_string($vat)) { |
||
| 716 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($vat, true), gettype($vat)), __LINE__); |
||
| 717 | } |
||
| 718 | $this->vat = $vat; |
||
| 719 | return $this; |
||
| 720 | } |
||
| 721 | /** |
||
| 722 | * Get birthDate value |
||
| 723 | * @return string|null |
||
| 724 | */ |
||
| 725 | public function getBirthDate() |
||
| 726 | { |
||
| 727 | return $this->birthDate; |
||
| 728 | } |
||
| 729 | /** |
||
| 730 | * Set birthDate value |
||
| 731 | * @param string $birthDate |
||
| 732 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 733 | */ |
||
| 734 | public function setBirthDate($birthDate = null) |
||
| 735 | { |
||
| 736 | // validation for constraint: string |
||
| 737 | if (!is_null($birthDate) && !is_string($birthDate)) { |
||
| 738 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthDate, true), gettype($birthDate)), __LINE__); |
||
| 739 | } |
||
| 740 | $this->birthDate = $birthDate; |
||
| 741 | return $this; |
||
| 742 | } |
||
| 743 | /** |
||
| 744 | * Get birthCity value |
||
| 745 | * @return string|null |
||
| 746 | */ |
||
| 747 | public function getBirthCity() |
||
| 748 | { |
||
| 749 | return $this->birthCity; |
||
| 750 | } |
||
| 751 | /** |
||
| 752 | * Set birthCity value |
||
| 753 | * @param string $birthCity |
||
| 754 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 755 | */ |
||
| 756 | public function setBirthCity($birthCity = null) |
||
| 764 | } |
||
| 765 | /** |
||
| 766 | * Get birthDepartement value |
||
| 767 | * @return string|null |
||
| 768 | */ |
||
| 769 | public function getBirthDepartement() |
||
| 772 | } |
||
| 773 | /** |
||
| 774 | * Set birthDepartement value |
||
| 775 | * @param string $birthDepartement |
||
| 776 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 777 | */ |
||
| 778 | public function setBirthDepartement($birthDepartement = null) |
||
| 779 | { |
||
| 780 | // validation for constraint: string |
||
| 781 | if (!is_null($birthDepartement) && !is_string($birthDepartement)) { |
||
| 782 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthDepartement, true), gettype($birthDepartement)), __LINE__); |
||
| 783 | } |
||
| 784 | $this->birthDepartement = $birthDepartement; |
||
| 785 | return $this; |
||
| 786 | } |
||
| 787 | /** |
||
| 788 | * Get birthCountry value |
||
| 789 | * @return string|null |
||
| 790 | */ |
||
| 791 | public function getBirthCountry() |
||
| 792 | { |
||
| 793 | return $this->birthCountry; |
||
| 794 | } |
||
| 795 | /** |
||
| 796 | * Set birthCountry value |
||
| 797 | * @param string $birthCountry |
||
| 798 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 799 | */ |
||
| 800 | public function setBirthCountry($birthCountry = null) |
||
| 801 | { |
||
| 802 | // validation for constraint: string |
||
| 803 | if (!is_null($birthCountry) && !is_string($birthCountry)) { |
||
| 804 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthCountry, true), gettype($birthCountry)), __LINE__); |
||
| 805 | } |
||
| 806 | $this->birthCountry = $birthCountry; |
||
| 807 | return $this; |
||
| 808 | } |
||
| 809 | /** |
||
| 810 | * Get nationality value |
||
| 811 | * @return string|null |
||
| 812 | */ |
||
| 813 | public function getNationality() |
||
| 814 | { |
||
| 815 | return $this->nationality; |
||
| 816 | } |
||
| 817 | /** |
||
| 818 | * Set nationality value |
||
| 819 | * @param string $nationality |
||
| 820 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 821 | */ |
||
| 822 | public function setNationality($nationality = null) |
||
| 823 | { |
||
| 824 | // validation for constraint: string |
||
| 825 | if (!is_null($nationality) && !is_string($nationality)) { |
||
| 826 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($nationality, true), gettype($nationality)), __LINE__); |
||
| 827 | } |
||
| 828 | $this->nationality = $nationality; |
||
| 829 | return $this; |
||
| 830 | } |
||
| 831 | /** |
||
| 832 | * Get dryRun value |
||
| 833 | * @return bool|null |
||
| 834 | */ |
||
| 835 | public function getDryRun() |
||
| 838 | } |
||
| 839 | /** |
||
| 840 | * Set dryRun value |
||
| 841 | * @param bool $dryRun |
||
| 842 | * @return \Ovh\StructType\ResellerDomainTransferIT |
||
| 843 | */ |
||
| 844 | public function setDryRun($dryRun = null) |
||
| 845 | { |
||
| 846 | // validation for constraint: boolean |
||
| 847 | if (!is_null($dryRun) && !is_bool($dryRun)) { |
||
| 848 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($dryRun, true), gettype($dryRun)), __LINE__); |
||
| 849 | } |
||
| 850 | $this->dryRun = $dryRun; |
||
| 851 | return $this; |
||
| 852 | } |
||
| 853 | } |
||
| 854 |