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