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