| Total Complexity | 145 |
| Total Lines | 1194 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like CarVWEBasicTypeData 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 CarVWEBasicTypeData, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 12 | class CarVWEBasicTypeData extends AbstractStructBase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The category |
||
| 16 | * Meta informations extracted from the WSDL |
||
| 17 | * - minOccurs: 0 |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $category; |
||
| 21 | /** |
||
| 22 | * The brand_rdw |
||
| 23 | * Meta informations extracted from the WSDL |
||
| 24 | * - minOccurs: 0 |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $brand_rdw; |
||
| 28 | /** |
||
| 29 | * The brand_atl |
||
| 30 | * Meta informations extracted from the WSDL |
||
| 31 | * - minOccurs: 0 |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | public $brand_atl; |
||
| 35 | /** |
||
| 36 | * The model_rdw |
||
| 37 | * Meta informations extracted from the WSDL |
||
| 38 | * - minOccurs: 0 |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | public $model_rdw; |
||
| 42 | /** |
||
| 43 | * The model_atl |
||
| 44 | * Meta informations extracted from the WSDL |
||
| 45 | * - minOccurs: 0 |
||
| 46 | * @var string |
||
| 47 | */ |
||
| 48 | public $model_atl; |
||
| 49 | /** |
||
| 50 | * The short_type |
||
| 51 | * Meta informations extracted from the WSDL |
||
| 52 | * - minOccurs: 0 |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | public $short_type; |
||
| 56 | /** |
||
| 57 | * The colors |
||
| 58 | * @var \Webservices\ArrayType\StringArray |
||
| 59 | */ |
||
| 60 | public $colors; |
||
| 61 | /** |
||
| 62 | * The fuel_types |
||
| 63 | * @var \Webservices\ArrayType\StringArray |
||
| 64 | */ |
||
| 65 | public $fuel_types; |
||
| 66 | /** |
||
| 67 | * The cylinders |
||
| 68 | * Meta informations extracted from the WSDL |
||
| 69 | * - minOccurs: 0 |
||
| 70 | * @var int |
||
| 71 | */ |
||
| 72 | public $cylinders; |
||
| 73 | /** |
||
| 74 | * The cylinder_capacity |
||
| 75 | * Meta informations extracted from the WSDL |
||
| 76 | * - minOccurs: 0 |
||
| 77 | * @var int |
||
| 78 | */ |
||
| 79 | public $cylinder_capacity; |
||
| 80 | /** |
||
| 81 | * The seats |
||
| 82 | * Meta informations extracted from the WSDL |
||
| 83 | * - minOccurs: 0 |
||
| 84 | * @var int |
||
| 85 | */ |
||
| 86 | public $seats; |
||
| 87 | /** |
||
| 88 | * The standing_room |
||
| 89 | * Meta informations extracted from the WSDL |
||
| 90 | * - minOccurs: 0 |
||
| 91 | * @var int |
||
| 92 | */ |
||
| 93 | public $standing_room; |
||
| 94 | /** |
||
| 95 | * The unladen_mass |
||
| 96 | * Meta informations extracted from the WSDL |
||
| 97 | * - minOccurs: 0 |
||
| 98 | * @var int |
||
| 99 | */ |
||
| 100 | public $unladen_mass; |
||
| 101 | /** |
||
| 102 | * The gross_vehicle_mass |
||
| 103 | * Meta informations extracted from the WSDL |
||
| 104 | * - minOccurs: 0 |
||
| 105 | * @var int |
||
| 106 | */ |
||
| 107 | public $gross_vehicle_mass; |
||
| 108 | /** |
||
| 109 | * The maximum_mass_payload |
||
| 110 | * Meta informations extracted from the WSDL |
||
| 111 | * - minOccurs: 0 |
||
| 112 | * @var int |
||
| 113 | */ |
||
| 114 | public $maximum_mass_payload; |
||
| 115 | /** |
||
| 116 | * The date_first_issuing |
||
| 117 | * Meta informations extracted from the WSDL |
||
| 118 | * - minOccurs: 0 |
||
| 119 | * @var string |
||
| 120 | */ |
||
| 121 | public $date_first_issuing; |
||
| 122 | /** |
||
| 123 | * The date_first_admission |
||
| 124 | * Meta informations extracted from the WSDL |
||
| 125 | * - minOccurs: 0 |
||
| 126 | * @var string |
||
| 127 | */ |
||
| 128 | public $date_first_admission; |
||
| 129 | /** |
||
| 130 | * The date_latest_name_registration |
||
| 131 | * Meta informations extracted from the WSDL |
||
| 132 | * - minOccurs: 0 |
||
| 133 | * @var string |
||
| 134 | */ |
||
| 135 | public $date_latest_name_registration; |
||
| 136 | /** |
||
| 137 | * The apk_due_date |
||
| 138 | * Meta informations extracted from the WSDL |
||
| 139 | * - minOccurs: 0 |
||
| 140 | * @var string |
||
| 141 | */ |
||
| 142 | public $apk_due_date; |
||
| 143 | /** |
||
| 144 | * The bpm |
||
| 145 | * Meta informations extracted from the WSDL |
||
| 146 | * - minOccurs: 0 |
||
| 147 | * @var int |
||
| 148 | */ |
||
| 149 | public $bpm; |
||
| 150 | /** |
||
| 151 | * The bpm_currency |
||
| 152 | * Meta informations extracted from the WSDL |
||
| 153 | * - minOccurs: 0 |
||
| 154 | * @var string |
||
| 155 | */ |
||
| 156 | public $bpm_currency; |
||
| 157 | /** |
||
| 158 | * The power |
||
| 159 | * Meta informations extracted from the WSDL |
||
| 160 | * - minOccurs: 0 |
||
| 161 | * @var int |
||
| 162 | */ |
||
| 163 | public $power; |
||
| 164 | /** |
||
| 165 | * The g3_indication |
||
| 166 | * Meta informations extracted from the WSDL |
||
| 167 | * - minOccurs: 0 |
||
| 168 | * @var bool |
||
| 169 | */ |
||
| 170 | public $g3_indication; |
||
| 171 | /** |
||
| 172 | * The co2_emission |
||
| 173 | * Meta informations extracted from the WSDL |
||
| 174 | * - minOccurs: 0 |
||
| 175 | * @var int |
||
| 176 | */ |
||
| 177 | public $co2_emission; |
||
| 178 | /** |
||
| 179 | * The emission_particles |
||
| 180 | * Meta informations extracted from the WSDL |
||
| 181 | * - minOccurs: 0 |
||
| 182 | * @var string |
||
| 183 | */ |
||
| 184 | public $emission_particles; |
||
| 185 | /** |
||
| 186 | * The energy_label |
||
| 187 | * Meta informations extracted from the WSDL |
||
| 188 | * - minOccurs: 0 |
||
| 189 | * @var string |
||
| 190 | */ |
||
| 191 | public $energy_label; |
||
| 192 | /** |
||
| 193 | * The emission_code |
||
| 194 | * Meta informations extracted from the WSDL |
||
| 195 | * - minOccurs: 0 |
||
| 196 | * @var string |
||
| 197 | */ |
||
| 198 | public $emission_code; |
||
| 199 | /** |
||
| 200 | * The interior_code |
||
| 201 | * Meta informations extracted from the WSDL |
||
| 202 | * - minOccurs: 0 |
||
| 203 | * @var string |
||
| 204 | */ |
||
| 205 | public $interior_code; |
||
| 206 | /** |
||
| 207 | * The interior_description |
||
| 208 | * Meta informations extracted from the WSDL |
||
| 209 | * - minOccurs: 0 |
||
| 210 | * @var string |
||
| 211 | */ |
||
| 212 | public $interior_description; |
||
| 213 | /** |
||
| 214 | * The doors |
||
| 215 | * Meta informations extracted from the WSDL |
||
| 216 | * - minOccurs: 0 |
||
| 217 | * @var int |
||
| 218 | */ |
||
| 219 | public $doors; |
||
| 220 | /** |
||
| 221 | * The tax_write_off |
||
| 222 | * Meta informations extracted from the WSDL |
||
| 223 | * - minOccurs: 0 |
||
| 224 | * @var string |
||
| 225 | */ |
||
| 226 | public $tax_write_off; |
||
| 227 | /** |
||
| 228 | * The parallel_import |
||
| 229 | * Meta informations extracted from the WSDL |
||
| 230 | * - minOccurs: 0 |
||
| 231 | * @var bool |
||
| 232 | */ |
||
| 233 | public $parallel_import; |
||
| 234 | /** |
||
| 235 | * The license_plate_signal |
||
| 236 | * Meta informations extracted from the WSDL |
||
| 237 | * - minOccurs: 0 |
||
| 238 | * @var string |
||
| 239 | */ |
||
| 240 | public $license_plate_signal; |
||
| 241 | /** |
||
| 242 | * The gear |
||
| 243 | * Meta informations extracted from the WSDL |
||
| 244 | * - minOccurs: 0 |
||
| 245 | * @var string |
||
| 246 | */ |
||
| 247 | public $gear; |
||
| 248 | /** |
||
| 249 | * The brand_approval |
||
| 250 | * Meta informations extracted from the WSDL |
||
| 251 | * - minOccurs: 0 |
||
| 252 | * @var string |
||
| 253 | */ |
||
| 254 | public $brand_approval; |
||
| 255 | /** |
||
| 256 | * The top_speed |
||
| 257 | * Meta informations extracted from the WSDL |
||
| 258 | * - minOccurs: 0 |
||
| 259 | * @var int |
||
| 260 | */ |
||
| 261 | public $top_speed; |
||
| 262 | /** |
||
| 263 | * The types |
||
| 264 | * @var \Webservices\ArrayType\CarVWEVersionPriceReferenceArray |
||
| 265 | */ |
||
| 266 | public $types; |
||
| 267 | /** |
||
| 268 | * Constructor method for CarVWEBasicTypeData |
||
| 269 | * @uses CarVWEBasicTypeData::setCategory() |
||
| 270 | * @uses CarVWEBasicTypeData::setBrand_rdw() |
||
| 271 | * @uses CarVWEBasicTypeData::setBrand_atl() |
||
| 272 | * @uses CarVWEBasicTypeData::setModel_rdw() |
||
| 273 | * @uses CarVWEBasicTypeData::setModel_atl() |
||
| 274 | * @uses CarVWEBasicTypeData::setShort_type() |
||
| 275 | * @uses CarVWEBasicTypeData::setColors() |
||
| 276 | * @uses CarVWEBasicTypeData::setFuel_types() |
||
| 277 | * @uses CarVWEBasicTypeData::setCylinders() |
||
| 278 | * @uses CarVWEBasicTypeData::setCylinder_capacity() |
||
| 279 | * @uses CarVWEBasicTypeData::setSeats() |
||
| 280 | * @uses CarVWEBasicTypeData::setStanding_room() |
||
| 281 | * @uses CarVWEBasicTypeData::setUnladen_mass() |
||
| 282 | * @uses CarVWEBasicTypeData::setGross_vehicle_mass() |
||
| 283 | * @uses CarVWEBasicTypeData::setMaximum_mass_payload() |
||
| 284 | * @uses CarVWEBasicTypeData::setDate_first_issuing() |
||
| 285 | * @uses CarVWEBasicTypeData::setDate_first_admission() |
||
| 286 | * @uses CarVWEBasicTypeData::setDate_latest_name_registration() |
||
| 287 | * @uses CarVWEBasicTypeData::setApk_due_date() |
||
| 288 | * @uses CarVWEBasicTypeData::setBpm() |
||
| 289 | * @uses CarVWEBasicTypeData::setBpm_currency() |
||
| 290 | * @uses CarVWEBasicTypeData::setPower() |
||
| 291 | * @uses CarVWEBasicTypeData::setG3_indication() |
||
| 292 | * @uses CarVWEBasicTypeData::setCo2_emission() |
||
| 293 | * @uses CarVWEBasicTypeData::setEmission_particles() |
||
| 294 | * @uses CarVWEBasicTypeData::setEnergy_label() |
||
| 295 | * @uses CarVWEBasicTypeData::setEmission_code() |
||
| 296 | * @uses CarVWEBasicTypeData::setInterior_code() |
||
| 297 | * @uses CarVWEBasicTypeData::setInterior_description() |
||
| 298 | * @uses CarVWEBasicTypeData::setDoors() |
||
| 299 | * @uses CarVWEBasicTypeData::setTax_write_off() |
||
| 300 | * @uses CarVWEBasicTypeData::setParallel_import() |
||
| 301 | * @uses CarVWEBasicTypeData::setLicense_plate_signal() |
||
| 302 | * @uses CarVWEBasicTypeData::setGear() |
||
| 303 | * @uses CarVWEBasicTypeData::setBrand_approval() |
||
| 304 | * @uses CarVWEBasicTypeData::setTop_speed() |
||
| 305 | * @uses CarVWEBasicTypeData::setTypes() |
||
| 306 | * @param string $category |
||
| 307 | * @param string $brand_rdw |
||
| 308 | * @param string $brand_atl |
||
| 309 | * @param string $model_rdw |
||
| 310 | * @param string $model_atl |
||
| 311 | * @param string $short_type |
||
| 312 | * @param \Webservices\ArrayType\StringArray $colors |
||
| 313 | * @param \Webservices\ArrayType\StringArray $fuel_types |
||
| 314 | * @param int $cylinders |
||
| 315 | * @param int $cylinder_capacity |
||
| 316 | * @param int $seats |
||
| 317 | * @param int $standing_room |
||
| 318 | * @param int $unladen_mass |
||
| 319 | * @param int $gross_vehicle_mass |
||
| 320 | * @param int $maximum_mass_payload |
||
| 321 | * @param string $date_first_issuing |
||
| 322 | * @param string $date_first_admission |
||
| 323 | * @param string $date_latest_name_registration |
||
| 324 | * @param string $apk_due_date |
||
| 325 | * @param int $bpm |
||
| 326 | * @param string $bpm_currency |
||
| 327 | * @param int $power |
||
| 328 | * @param bool $g3_indication |
||
| 329 | * @param int $co2_emission |
||
| 330 | * @param string $emission_particles |
||
| 331 | * @param string $energy_label |
||
| 332 | * @param string $emission_code |
||
| 333 | * @param string $interior_code |
||
| 334 | * @param string $interior_description |
||
| 335 | * @param int $doors |
||
| 336 | * @param string $tax_write_off |
||
| 337 | * @param bool $parallel_import |
||
| 338 | * @param string $license_plate_signal |
||
| 339 | * @param string $gear |
||
| 340 | * @param string $brand_approval |
||
| 341 | * @param int $top_speed |
||
| 342 | * @param \Webservices\ArrayType\CarVWEVersionPriceReferenceArray $types |
||
| 343 | */ |
||
| 344 | public function __construct($category = null, $brand_rdw = null, $brand_atl = null, $model_rdw = null, $model_atl = null, $short_type = null, \Webservices\ArrayType\StringArray $colors = null, \Webservices\ArrayType\StringArray $fuel_types = null, $cylinders = null, $cylinder_capacity = null, $seats = null, $standing_room = null, $unladen_mass = null, $gross_vehicle_mass = null, $maximum_mass_payload = null, $date_first_issuing = null, $date_first_admission = null, $date_latest_name_registration = null, $apk_due_date = null, $bpm = null, $bpm_currency = null, $power = null, $g3_indication = null, $co2_emission = null, $emission_particles = null, $energy_label = null, $emission_code = null, $interior_code = null, $interior_description = null, $doors = null, $tax_write_off = null, $parallel_import = null, $license_plate_signal = null, $gear = null, $brand_approval = null, $top_speed = null, \Webservices\ArrayType\CarVWEVersionPriceReferenceArray $types = null) |
||
| 345 | { |
||
| 346 | $this |
||
| 347 | ->setCategory($category) |
||
| 348 | ->setBrand_rdw($brand_rdw) |
||
| 349 | ->setBrand_atl($brand_atl) |
||
| 350 | ->setModel_rdw($model_rdw) |
||
| 351 | ->setModel_atl($model_atl) |
||
| 352 | ->setShort_type($short_type) |
||
| 353 | ->setColors($colors) |
||
| 354 | ->setFuel_types($fuel_types) |
||
| 355 | ->setCylinders($cylinders) |
||
| 356 | ->setCylinder_capacity($cylinder_capacity) |
||
| 357 | ->setSeats($seats) |
||
| 358 | ->setStanding_room($standing_room) |
||
| 359 | ->setUnladen_mass($unladen_mass) |
||
| 360 | ->setGross_vehicle_mass($gross_vehicle_mass) |
||
| 361 | ->setMaximum_mass_payload($maximum_mass_payload) |
||
| 362 | ->setDate_first_issuing($date_first_issuing) |
||
| 363 | ->setDate_first_admission($date_first_admission) |
||
| 364 | ->setDate_latest_name_registration($date_latest_name_registration) |
||
| 365 | ->setApk_due_date($apk_due_date) |
||
| 366 | ->setBpm($bpm) |
||
| 367 | ->setBpm_currency($bpm_currency) |
||
| 368 | ->setPower($power) |
||
| 369 | ->setG3_indication($g3_indication) |
||
| 370 | ->setCo2_emission($co2_emission) |
||
| 371 | ->setEmission_particles($emission_particles) |
||
| 372 | ->setEnergy_label($energy_label) |
||
| 373 | ->setEmission_code($emission_code) |
||
| 374 | ->setInterior_code($interior_code) |
||
| 375 | ->setInterior_description($interior_description) |
||
| 376 | ->setDoors($doors) |
||
| 377 | ->setTax_write_off($tax_write_off) |
||
| 378 | ->setParallel_import($parallel_import) |
||
| 379 | ->setLicense_plate_signal($license_plate_signal) |
||
| 380 | ->setGear($gear) |
||
| 381 | ->setBrand_approval($brand_approval) |
||
| 382 | ->setTop_speed($top_speed) |
||
| 383 | ->setTypes($types); |
||
| 384 | } |
||
| 385 | /** |
||
| 386 | * Get category value |
||
| 387 | * @return string|null |
||
| 388 | */ |
||
| 389 | public function getCategory() |
||
| 390 | { |
||
| 391 | return $this->category; |
||
| 392 | } |
||
| 393 | /** |
||
| 394 | * Set category value |
||
| 395 | * @param string $category |
||
| 396 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 397 | */ |
||
| 398 | public function setCategory($category = null) |
||
| 399 | { |
||
| 400 | // validation for constraint: string |
||
| 401 | if (!is_null($category) && !is_string($category)) { |
||
|
|
|||
| 402 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($category)), __LINE__); |
||
| 403 | } |
||
| 404 | $this->category = $category; |
||
| 405 | return $this; |
||
| 406 | } |
||
| 407 | /** |
||
| 408 | * Get brand_rdw value |
||
| 409 | * @return string|null |
||
| 410 | */ |
||
| 411 | public function getBrand_rdw() |
||
| 412 | { |
||
| 413 | return $this->brand_rdw; |
||
| 414 | } |
||
| 415 | /** |
||
| 416 | * Set brand_rdw value |
||
| 417 | * @param string $brand_rdw |
||
| 418 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 419 | */ |
||
| 420 | public function setBrand_rdw($brand_rdw = null) |
||
| 421 | { |
||
| 422 | // validation for constraint: string |
||
| 423 | if (!is_null($brand_rdw) && !is_string($brand_rdw)) { |
||
| 424 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($brand_rdw)), __LINE__); |
||
| 425 | } |
||
| 426 | $this->brand_rdw = $brand_rdw; |
||
| 427 | return $this; |
||
| 428 | } |
||
| 429 | /** |
||
| 430 | * Get brand_atl value |
||
| 431 | * @return string|null |
||
| 432 | */ |
||
| 433 | public function getBrand_atl() |
||
| 434 | { |
||
| 435 | return $this->brand_atl; |
||
| 436 | } |
||
| 437 | /** |
||
| 438 | * Set brand_atl value |
||
| 439 | * @param string $brand_atl |
||
| 440 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 441 | */ |
||
| 442 | public function setBrand_atl($brand_atl = null) |
||
| 443 | { |
||
| 444 | // validation for constraint: string |
||
| 445 | if (!is_null($brand_atl) && !is_string($brand_atl)) { |
||
| 446 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($brand_atl)), __LINE__); |
||
| 447 | } |
||
| 448 | $this->brand_atl = $brand_atl; |
||
| 449 | return $this; |
||
| 450 | } |
||
| 451 | /** |
||
| 452 | * Get model_rdw value |
||
| 453 | * @return string|null |
||
| 454 | */ |
||
| 455 | public function getModel_rdw() |
||
| 456 | { |
||
| 457 | return $this->model_rdw; |
||
| 458 | } |
||
| 459 | /** |
||
| 460 | * Set model_rdw value |
||
| 461 | * @param string $model_rdw |
||
| 462 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 463 | */ |
||
| 464 | public function setModel_rdw($model_rdw = null) |
||
| 465 | { |
||
| 466 | // validation for constraint: string |
||
| 467 | if (!is_null($model_rdw) && !is_string($model_rdw)) { |
||
| 468 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($model_rdw)), __LINE__); |
||
| 469 | } |
||
| 470 | $this->model_rdw = $model_rdw; |
||
| 471 | return $this; |
||
| 472 | } |
||
| 473 | /** |
||
| 474 | * Get model_atl value |
||
| 475 | * @return string|null |
||
| 476 | */ |
||
| 477 | public function getModel_atl() |
||
| 478 | { |
||
| 479 | return $this->model_atl; |
||
| 480 | } |
||
| 481 | /** |
||
| 482 | * Set model_atl value |
||
| 483 | * @param string $model_atl |
||
| 484 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 485 | */ |
||
| 486 | public function setModel_atl($model_atl = null) |
||
| 487 | { |
||
| 488 | // validation for constraint: string |
||
| 489 | if (!is_null($model_atl) && !is_string($model_atl)) { |
||
| 490 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($model_atl)), __LINE__); |
||
| 491 | } |
||
| 492 | $this->model_atl = $model_atl; |
||
| 493 | return $this; |
||
| 494 | } |
||
| 495 | /** |
||
| 496 | * Get short_type value |
||
| 497 | * @return string|null |
||
| 498 | */ |
||
| 499 | public function getShort_type() |
||
| 500 | { |
||
| 501 | return $this->short_type; |
||
| 502 | } |
||
| 503 | /** |
||
| 504 | * Set short_type value |
||
| 505 | * @param string $short_type |
||
| 506 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 507 | */ |
||
| 508 | public function setShort_type($short_type = null) |
||
| 509 | { |
||
| 510 | // validation for constraint: string |
||
| 511 | if (!is_null($short_type) && !is_string($short_type)) { |
||
| 512 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($short_type)), __LINE__); |
||
| 513 | } |
||
| 514 | $this->short_type = $short_type; |
||
| 515 | return $this; |
||
| 516 | } |
||
| 517 | /** |
||
| 518 | * Get colors value |
||
| 519 | * @return \Webservices\ArrayType\StringArray|null |
||
| 520 | */ |
||
| 521 | public function getColors() |
||
| 522 | { |
||
| 523 | return $this->colors; |
||
| 524 | } |
||
| 525 | /** |
||
| 526 | * Set colors value |
||
| 527 | * @param \Webservices\ArrayType\StringArray $colors |
||
| 528 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 529 | */ |
||
| 530 | public function setColors(\Webservices\ArrayType\StringArray $colors = null) |
||
| 531 | { |
||
| 532 | $this->colors = $colors; |
||
| 533 | return $this; |
||
| 534 | } |
||
| 535 | /** |
||
| 536 | * Get fuel_types value |
||
| 537 | * @return \Webservices\ArrayType\StringArray|null |
||
| 538 | */ |
||
| 539 | public function getFuel_types() |
||
| 540 | { |
||
| 541 | return $this->fuel_types; |
||
| 542 | } |
||
| 543 | /** |
||
| 544 | * Set fuel_types value |
||
| 545 | * @param \Webservices\ArrayType\StringArray $fuel_types |
||
| 546 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 547 | */ |
||
| 548 | public function setFuel_types(\Webservices\ArrayType\StringArray $fuel_types = null) |
||
| 549 | { |
||
| 550 | $this->fuel_types = $fuel_types; |
||
| 551 | return $this; |
||
| 552 | } |
||
| 553 | /** |
||
| 554 | * Get cylinders value |
||
| 555 | * @return int|null |
||
| 556 | */ |
||
| 557 | public function getCylinders() |
||
| 558 | { |
||
| 559 | return $this->cylinders; |
||
| 560 | } |
||
| 561 | /** |
||
| 562 | * Set cylinders value |
||
| 563 | * @param int $cylinders |
||
| 564 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 565 | */ |
||
| 566 | public function setCylinders($cylinders = null) |
||
| 567 | { |
||
| 568 | // validation for constraint: int |
||
| 569 | if (!is_null($cylinders) && !is_numeric($cylinders)) { |
||
| 570 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($cylinders)), __LINE__); |
||
| 571 | } |
||
| 572 | $this->cylinders = $cylinders; |
||
| 573 | return $this; |
||
| 574 | } |
||
| 575 | /** |
||
| 576 | * Get cylinder_capacity value |
||
| 577 | * @return int|null |
||
| 578 | */ |
||
| 579 | public function getCylinder_capacity() |
||
| 580 | { |
||
| 581 | return $this->cylinder_capacity; |
||
| 582 | } |
||
| 583 | /** |
||
| 584 | * Set cylinder_capacity value |
||
| 585 | * @param int $cylinder_capacity |
||
| 586 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 587 | */ |
||
| 588 | public function setCylinder_capacity($cylinder_capacity = null) |
||
| 589 | { |
||
| 590 | // validation for constraint: int |
||
| 591 | if (!is_null($cylinder_capacity) && !is_numeric($cylinder_capacity)) { |
||
| 592 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($cylinder_capacity)), __LINE__); |
||
| 593 | } |
||
| 594 | $this->cylinder_capacity = $cylinder_capacity; |
||
| 595 | return $this; |
||
| 596 | } |
||
| 597 | /** |
||
| 598 | * Get seats value |
||
| 599 | * @return int|null |
||
| 600 | */ |
||
| 601 | public function getSeats() |
||
| 602 | { |
||
| 603 | return $this->seats; |
||
| 604 | } |
||
| 605 | /** |
||
| 606 | * Set seats value |
||
| 607 | * @param int $seats |
||
| 608 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 609 | */ |
||
| 610 | public function setSeats($seats = null) |
||
| 611 | { |
||
| 612 | // validation for constraint: int |
||
| 613 | if (!is_null($seats) && !is_numeric($seats)) { |
||
| 614 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($seats)), __LINE__); |
||
| 615 | } |
||
| 616 | $this->seats = $seats; |
||
| 617 | return $this; |
||
| 618 | } |
||
| 619 | /** |
||
| 620 | * Get standing_room value |
||
| 621 | * @return int|null |
||
| 622 | */ |
||
| 623 | public function getStanding_room() |
||
| 624 | { |
||
| 625 | return $this->standing_room; |
||
| 626 | } |
||
| 627 | /** |
||
| 628 | * Set standing_room value |
||
| 629 | * @param int $standing_room |
||
| 630 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 631 | */ |
||
| 632 | public function setStanding_room($standing_room = null) |
||
| 633 | { |
||
| 634 | // validation for constraint: int |
||
| 635 | if (!is_null($standing_room) && !is_numeric($standing_room)) { |
||
| 636 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($standing_room)), __LINE__); |
||
| 637 | } |
||
| 638 | $this->standing_room = $standing_room; |
||
| 639 | return $this; |
||
| 640 | } |
||
| 641 | /** |
||
| 642 | * Get unladen_mass value |
||
| 643 | * @return int|null |
||
| 644 | */ |
||
| 645 | public function getUnladen_mass() |
||
| 646 | { |
||
| 647 | return $this->unladen_mass; |
||
| 648 | } |
||
| 649 | /** |
||
| 650 | * Set unladen_mass value |
||
| 651 | * @param int $unladen_mass |
||
| 652 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 653 | */ |
||
| 654 | public function setUnladen_mass($unladen_mass = null) |
||
| 655 | { |
||
| 656 | // validation for constraint: int |
||
| 657 | if (!is_null($unladen_mass) && !is_numeric($unladen_mass)) { |
||
| 658 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($unladen_mass)), __LINE__); |
||
| 659 | } |
||
| 660 | $this->unladen_mass = $unladen_mass; |
||
| 661 | return $this; |
||
| 662 | } |
||
| 663 | /** |
||
| 664 | * Get gross_vehicle_mass value |
||
| 665 | * @return int|null |
||
| 666 | */ |
||
| 667 | public function getGross_vehicle_mass() |
||
| 668 | { |
||
| 669 | return $this->gross_vehicle_mass; |
||
| 670 | } |
||
| 671 | /** |
||
| 672 | * Set gross_vehicle_mass value |
||
| 673 | * @param int $gross_vehicle_mass |
||
| 674 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 675 | */ |
||
| 676 | public function setGross_vehicle_mass($gross_vehicle_mass = null) |
||
| 677 | { |
||
| 678 | // validation for constraint: int |
||
| 679 | if (!is_null($gross_vehicle_mass) && !is_numeric($gross_vehicle_mass)) { |
||
| 680 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($gross_vehicle_mass)), __LINE__); |
||
| 681 | } |
||
| 682 | $this->gross_vehicle_mass = $gross_vehicle_mass; |
||
| 683 | return $this; |
||
| 684 | } |
||
| 685 | /** |
||
| 686 | * Get maximum_mass_payload value |
||
| 687 | * @return int|null |
||
| 688 | */ |
||
| 689 | public function getMaximum_mass_payload() |
||
| 690 | { |
||
| 691 | return $this->maximum_mass_payload; |
||
| 692 | } |
||
| 693 | /** |
||
| 694 | * Set maximum_mass_payload value |
||
| 695 | * @param int $maximum_mass_payload |
||
| 696 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 697 | */ |
||
| 698 | public function setMaximum_mass_payload($maximum_mass_payload = null) |
||
| 699 | { |
||
| 700 | // validation for constraint: int |
||
| 701 | if (!is_null($maximum_mass_payload) && !is_numeric($maximum_mass_payload)) { |
||
| 702 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_payload)), __LINE__); |
||
| 703 | } |
||
| 704 | $this->maximum_mass_payload = $maximum_mass_payload; |
||
| 705 | return $this; |
||
| 706 | } |
||
| 707 | /** |
||
| 708 | * Get date_first_issuing value |
||
| 709 | * @return string|null |
||
| 710 | */ |
||
| 711 | public function getDate_first_issuing() |
||
| 714 | } |
||
| 715 | /** |
||
| 716 | * Set date_first_issuing value |
||
| 717 | * @param string $date_first_issuing |
||
| 718 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 719 | */ |
||
| 720 | public function setDate_first_issuing($date_first_issuing = null) |
||
| 721 | { |
||
| 722 | // validation for constraint: string |
||
| 723 | if (!is_null($date_first_issuing) && !is_string($date_first_issuing)) { |
||
| 724 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_first_issuing)), __LINE__); |
||
| 725 | } |
||
| 726 | $this->date_first_issuing = $date_first_issuing; |
||
| 727 | return $this; |
||
| 728 | } |
||
| 729 | /** |
||
| 730 | * Get date_first_admission value |
||
| 731 | * @return string|null |
||
| 732 | */ |
||
| 733 | public function getDate_first_admission() |
||
| 734 | { |
||
| 735 | return $this->date_first_admission; |
||
| 736 | } |
||
| 737 | /** |
||
| 738 | * Set date_first_admission value |
||
| 739 | * @param string $date_first_admission |
||
| 740 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 741 | */ |
||
| 742 | public function setDate_first_admission($date_first_admission = null) |
||
| 743 | { |
||
| 744 | // validation for constraint: string |
||
| 745 | if (!is_null($date_first_admission) && !is_string($date_first_admission)) { |
||
| 746 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_first_admission)), __LINE__); |
||
| 747 | } |
||
| 748 | $this->date_first_admission = $date_first_admission; |
||
| 749 | return $this; |
||
| 750 | } |
||
| 751 | /** |
||
| 752 | * Get date_latest_name_registration value |
||
| 753 | * @return string|null |
||
| 754 | */ |
||
| 755 | public function getDate_latest_name_registration() |
||
| 756 | { |
||
| 757 | return $this->date_latest_name_registration; |
||
| 758 | } |
||
| 759 | /** |
||
| 760 | * Set date_latest_name_registration value |
||
| 761 | * @param string $date_latest_name_registration |
||
| 762 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 763 | */ |
||
| 764 | public function setDate_latest_name_registration($date_latest_name_registration = null) |
||
| 765 | { |
||
| 766 | // validation for constraint: string |
||
| 767 | if (!is_null($date_latest_name_registration) && !is_string($date_latest_name_registration)) { |
||
| 768 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_latest_name_registration)), __LINE__); |
||
| 769 | } |
||
| 770 | $this->date_latest_name_registration = $date_latest_name_registration; |
||
| 771 | return $this; |
||
| 772 | } |
||
| 773 | /** |
||
| 774 | * Get apk_due_date value |
||
| 775 | * @return string|null |
||
| 776 | */ |
||
| 777 | public function getApk_due_date() |
||
| 778 | { |
||
| 779 | return $this->apk_due_date; |
||
| 780 | } |
||
| 781 | /** |
||
| 782 | * Set apk_due_date value |
||
| 783 | * @param string $apk_due_date |
||
| 784 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 785 | */ |
||
| 786 | public function setApk_due_date($apk_due_date = null) |
||
| 787 | { |
||
| 788 | // validation for constraint: string |
||
| 789 | if (!is_null($apk_due_date) && !is_string($apk_due_date)) { |
||
| 790 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($apk_due_date)), __LINE__); |
||
| 791 | } |
||
| 792 | $this->apk_due_date = $apk_due_date; |
||
| 793 | return $this; |
||
| 794 | } |
||
| 795 | /** |
||
| 796 | * Get bpm value |
||
| 797 | * @return int|null |
||
| 798 | */ |
||
| 799 | public function getBpm() |
||
| 802 | } |
||
| 803 | /** |
||
| 804 | * Set bpm value |
||
| 805 | * @param int $bpm |
||
| 806 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 807 | */ |
||
| 808 | public function setBpm($bpm = null) |
||
| 809 | { |
||
| 810 | // validation for constraint: int |
||
| 811 | if (!is_null($bpm) && !is_numeric($bpm)) { |
||
| 812 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($bpm)), __LINE__); |
||
| 813 | } |
||
| 814 | $this->bpm = $bpm; |
||
| 815 | return $this; |
||
| 816 | } |
||
| 817 | /** |
||
| 818 | * Get bpm_currency value |
||
| 819 | * @return string|null |
||
| 820 | */ |
||
| 821 | public function getBpm_currency() |
||
| 822 | { |
||
| 823 | return $this->bpm_currency; |
||
| 824 | } |
||
| 825 | /** |
||
| 826 | * Set bpm_currency value |
||
| 827 | * @param string $bpm_currency |
||
| 828 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 829 | */ |
||
| 830 | public function setBpm_currency($bpm_currency = null) |
||
| 831 | { |
||
| 832 | // validation for constraint: string |
||
| 833 | if (!is_null($bpm_currency) && !is_string($bpm_currency)) { |
||
| 834 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($bpm_currency)), __LINE__); |
||
| 835 | } |
||
| 836 | $this->bpm_currency = $bpm_currency; |
||
| 837 | return $this; |
||
| 838 | } |
||
| 839 | /** |
||
| 840 | * Get power value |
||
| 841 | * @return int|null |
||
| 842 | */ |
||
| 843 | public function getPower() |
||
| 844 | { |
||
| 845 | return $this->power; |
||
| 846 | } |
||
| 847 | /** |
||
| 848 | * Set power value |
||
| 849 | * @param int $power |
||
| 850 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 851 | */ |
||
| 852 | public function setPower($power = null) |
||
| 853 | { |
||
| 854 | // validation for constraint: int |
||
| 855 | if (!is_null($power) && !is_numeric($power)) { |
||
| 856 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($power)), __LINE__); |
||
| 857 | } |
||
| 858 | $this->power = $power; |
||
| 859 | return $this; |
||
| 860 | } |
||
| 861 | /** |
||
| 862 | * Get g3_indication value |
||
| 863 | * @return bool|null |
||
| 864 | */ |
||
| 865 | public function getG3_indication() |
||
| 866 | { |
||
| 867 | return $this->g3_indication; |
||
| 868 | } |
||
| 869 | /** |
||
| 870 | * Set g3_indication value |
||
| 871 | * @param bool $g3_indication |
||
| 872 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 873 | */ |
||
| 874 | public function setG3_indication($g3_indication = null) |
||
| 875 | { |
||
| 876 | // validation for constraint: boolean |
||
| 877 | if (!is_null($g3_indication) && !is_bool($g3_indication)) { |
||
| 878 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($g3_indication)), __LINE__); |
||
| 879 | } |
||
| 880 | $this->g3_indication = $g3_indication; |
||
| 881 | return $this; |
||
| 882 | } |
||
| 883 | /** |
||
| 884 | * Get co2_emission value |
||
| 885 | * @return int|null |
||
| 886 | */ |
||
| 887 | public function getCo2_emission() |
||
| 888 | { |
||
| 889 | return $this->co2_emission; |
||
| 890 | } |
||
| 891 | /** |
||
| 892 | * Set co2_emission value |
||
| 893 | * @param int $co2_emission |
||
| 894 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 895 | */ |
||
| 896 | public function setCo2_emission($co2_emission = null) |
||
| 897 | { |
||
| 898 | // validation for constraint: int |
||
| 899 | if (!is_null($co2_emission) && !is_numeric($co2_emission)) { |
||
| 900 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($co2_emission)), __LINE__); |
||
| 901 | } |
||
| 902 | $this->co2_emission = $co2_emission; |
||
| 903 | return $this; |
||
| 904 | } |
||
| 905 | /** |
||
| 906 | * Get emission_particles value |
||
| 907 | * @return string|null |
||
| 908 | */ |
||
| 909 | public function getEmission_particles() |
||
| 910 | { |
||
| 911 | return $this->emission_particles; |
||
| 912 | } |
||
| 913 | /** |
||
| 914 | * Set emission_particles value |
||
| 915 | * @param string $emission_particles |
||
| 916 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 917 | */ |
||
| 918 | public function setEmission_particles($emission_particles = null) |
||
| 919 | { |
||
| 920 | // validation for constraint: string |
||
| 921 | if (!is_null($emission_particles) && !is_string($emission_particles)) { |
||
| 922 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($emission_particles)), __LINE__); |
||
| 923 | } |
||
| 924 | $this->emission_particles = $emission_particles; |
||
| 925 | return $this; |
||
| 926 | } |
||
| 927 | /** |
||
| 928 | * Get energy_label value |
||
| 929 | * @return string|null |
||
| 930 | */ |
||
| 931 | public function getEnergy_label() |
||
| 932 | { |
||
| 933 | return $this->energy_label; |
||
| 934 | } |
||
| 935 | /** |
||
| 936 | * Set energy_label value |
||
| 937 | * @param string $energy_label |
||
| 938 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 939 | */ |
||
| 940 | public function setEnergy_label($energy_label = null) |
||
| 941 | { |
||
| 942 | // validation for constraint: string |
||
| 943 | if (!is_null($energy_label) && !is_string($energy_label)) { |
||
| 944 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($energy_label)), __LINE__); |
||
| 945 | } |
||
| 946 | $this->energy_label = $energy_label; |
||
| 947 | return $this; |
||
| 948 | } |
||
| 949 | /** |
||
| 950 | * Get emission_code value |
||
| 951 | * @return string|null |
||
| 952 | */ |
||
| 953 | public function getEmission_code() |
||
| 954 | { |
||
| 955 | return $this->emission_code; |
||
| 956 | } |
||
| 957 | /** |
||
| 958 | * Set emission_code value |
||
| 959 | * @param string $emission_code |
||
| 960 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 961 | */ |
||
| 962 | public function setEmission_code($emission_code = null) |
||
| 963 | { |
||
| 964 | // validation for constraint: string |
||
| 965 | if (!is_null($emission_code) && !is_string($emission_code)) { |
||
| 966 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($emission_code)), __LINE__); |
||
| 967 | } |
||
| 968 | $this->emission_code = $emission_code; |
||
| 969 | return $this; |
||
| 970 | } |
||
| 971 | /** |
||
| 972 | * Get interior_code value |
||
| 973 | * @return string|null |
||
| 974 | */ |
||
| 975 | public function getInterior_code() |
||
| 976 | { |
||
| 977 | return $this->interior_code; |
||
| 978 | } |
||
| 979 | /** |
||
| 980 | * Set interior_code value |
||
| 981 | * @param string $interior_code |
||
| 982 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 983 | */ |
||
| 984 | public function setInterior_code($interior_code = null) |
||
| 985 | { |
||
| 986 | // validation for constraint: string |
||
| 987 | if (!is_null($interior_code) && !is_string($interior_code)) { |
||
| 988 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($interior_code)), __LINE__); |
||
| 989 | } |
||
| 990 | $this->interior_code = $interior_code; |
||
| 991 | return $this; |
||
| 992 | } |
||
| 993 | /** |
||
| 994 | * Get interior_description value |
||
| 995 | * @return string|null |
||
| 996 | */ |
||
| 997 | public function getInterior_description() |
||
| 998 | { |
||
| 999 | return $this->interior_description; |
||
| 1000 | } |
||
| 1001 | /** |
||
| 1002 | * Set interior_description value |
||
| 1003 | * @param string $interior_description |
||
| 1004 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1005 | */ |
||
| 1006 | public function setInterior_description($interior_description = null) |
||
| 1007 | { |
||
| 1008 | // validation for constraint: string |
||
| 1009 | if (!is_null($interior_description) && !is_string($interior_description)) { |
||
| 1010 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($interior_description)), __LINE__); |
||
| 1011 | } |
||
| 1012 | $this->interior_description = $interior_description; |
||
| 1013 | return $this; |
||
| 1014 | } |
||
| 1015 | /** |
||
| 1016 | * Get doors value |
||
| 1017 | * @return int|null |
||
| 1018 | */ |
||
| 1019 | public function getDoors() |
||
| 1020 | { |
||
| 1021 | return $this->doors; |
||
| 1022 | } |
||
| 1023 | /** |
||
| 1024 | * Set doors value |
||
| 1025 | * @param int $doors |
||
| 1026 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1027 | */ |
||
| 1028 | public function setDoors($doors = null) |
||
| 1029 | { |
||
| 1030 | // validation for constraint: int |
||
| 1031 | if (!is_null($doors) && !is_numeric($doors)) { |
||
| 1032 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($doors)), __LINE__); |
||
| 1033 | } |
||
| 1034 | $this->doors = $doors; |
||
| 1035 | return $this; |
||
| 1036 | } |
||
| 1037 | /** |
||
| 1038 | * Get tax_write_off value |
||
| 1039 | * @return string|null |
||
| 1040 | */ |
||
| 1041 | public function getTax_write_off() |
||
| 1042 | { |
||
| 1043 | return $this->tax_write_off; |
||
| 1044 | } |
||
| 1045 | /** |
||
| 1046 | * Set tax_write_off value |
||
| 1047 | * @param string $tax_write_off |
||
| 1048 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1049 | */ |
||
| 1050 | public function setTax_write_off($tax_write_off = null) |
||
| 1051 | { |
||
| 1052 | // validation for constraint: string |
||
| 1053 | if (!is_null($tax_write_off) && !is_string($tax_write_off)) { |
||
| 1054 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($tax_write_off)), __LINE__); |
||
| 1055 | } |
||
| 1056 | $this->tax_write_off = $tax_write_off; |
||
| 1057 | return $this; |
||
| 1058 | } |
||
| 1059 | /** |
||
| 1060 | * Get parallel_import value |
||
| 1061 | * @return bool|null |
||
| 1062 | */ |
||
| 1063 | public function getParallel_import() |
||
| 1064 | { |
||
| 1065 | return $this->parallel_import; |
||
| 1066 | } |
||
| 1067 | /** |
||
| 1068 | * Set parallel_import value |
||
| 1069 | * @param bool $parallel_import |
||
| 1070 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1071 | */ |
||
| 1072 | public function setParallel_import($parallel_import = null) |
||
| 1073 | { |
||
| 1074 | // validation for constraint: boolean |
||
| 1075 | if (!is_null($parallel_import) && !is_bool($parallel_import)) { |
||
| 1076 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($parallel_import)), __LINE__); |
||
| 1077 | } |
||
| 1078 | $this->parallel_import = $parallel_import; |
||
| 1079 | return $this; |
||
| 1080 | } |
||
| 1081 | /** |
||
| 1082 | * Get license_plate_signal value |
||
| 1083 | * @return string|null |
||
| 1084 | */ |
||
| 1085 | public function getLicense_plate_signal() |
||
| 1086 | { |
||
| 1087 | return $this->license_plate_signal; |
||
| 1088 | } |
||
| 1089 | /** |
||
| 1090 | * Set license_plate_signal value |
||
| 1091 | * @param string $license_plate_signal |
||
| 1092 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1093 | */ |
||
| 1094 | public function setLicense_plate_signal($license_plate_signal = null) |
||
| 1095 | { |
||
| 1096 | // validation for constraint: string |
||
| 1097 | if (!is_null($license_plate_signal) && !is_string($license_plate_signal)) { |
||
| 1098 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($license_plate_signal)), __LINE__); |
||
| 1099 | } |
||
| 1100 | $this->license_plate_signal = $license_plate_signal; |
||
| 1101 | return $this; |
||
| 1102 | } |
||
| 1103 | /** |
||
| 1104 | * Get gear value |
||
| 1105 | * @return string|null |
||
| 1106 | */ |
||
| 1107 | public function getGear() |
||
| 1108 | { |
||
| 1109 | return $this->gear; |
||
| 1110 | } |
||
| 1111 | /** |
||
| 1112 | * Set gear value |
||
| 1113 | * @param string $gear |
||
| 1114 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1115 | */ |
||
| 1116 | public function setGear($gear = null) |
||
| 1117 | { |
||
| 1118 | // validation for constraint: string |
||
| 1119 | if (!is_null($gear) && !is_string($gear)) { |
||
| 1120 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($gear)), __LINE__); |
||
| 1121 | } |
||
| 1122 | $this->gear = $gear; |
||
| 1123 | return $this; |
||
| 1124 | } |
||
| 1125 | /** |
||
| 1126 | * Get brand_approval value |
||
| 1127 | * @return string|null |
||
| 1128 | */ |
||
| 1129 | public function getBrand_approval() |
||
| 1130 | { |
||
| 1131 | return $this->brand_approval; |
||
| 1132 | } |
||
| 1133 | /** |
||
| 1134 | * Set brand_approval value |
||
| 1135 | * @param string $brand_approval |
||
| 1136 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1137 | */ |
||
| 1138 | public function setBrand_approval($brand_approval = null) |
||
| 1139 | { |
||
| 1140 | // validation for constraint: string |
||
| 1141 | if (!is_null($brand_approval) && !is_string($brand_approval)) { |
||
| 1142 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($brand_approval)), __LINE__); |
||
| 1143 | } |
||
| 1144 | $this->brand_approval = $brand_approval; |
||
| 1145 | return $this; |
||
| 1146 | } |
||
| 1147 | /** |
||
| 1148 | * Get top_speed value |
||
| 1149 | * @return int|null |
||
| 1150 | */ |
||
| 1151 | public function getTop_speed() |
||
| 1152 | { |
||
| 1153 | return $this->top_speed; |
||
| 1154 | } |
||
| 1155 | /** |
||
| 1156 | * Set top_speed value |
||
| 1157 | * @param int $top_speed |
||
| 1158 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1159 | */ |
||
| 1160 | public function setTop_speed($top_speed = null) |
||
| 1161 | { |
||
| 1162 | // validation for constraint: int |
||
| 1163 | if (!is_null($top_speed) && !is_numeric($top_speed)) { |
||
| 1164 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($top_speed)), __LINE__); |
||
| 1165 | } |
||
| 1166 | $this->top_speed = $top_speed; |
||
| 1167 | return $this; |
||
| 1168 | } |
||
| 1169 | /** |
||
| 1170 | * Get types value |
||
| 1171 | * @return \Webservices\ArrayType\CarVWEVersionPriceReferenceArray|null |
||
| 1172 | */ |
||
| 1173 | public function getTypes() |
||
| 1174 | { |
||
| 1175 | return $this->types; |
||
| 1176 | } |
||
| 1177 | /** |
||
| 1178 | * Set types value |
||
| 1179 | * @param \Webservices\ArrayType\CarVWEVersionPriceReferenceArray $types |
||
| 1180 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1181 | */ |
||
| 1182 | public function setTypes(\Webservices\ArrayType\CarVWEVersionPriceReferenceArray $types = null) |
||
| 1183 | { |
||
| 1184 | $this->types = $types; |
||
| 1185 | return $this; |
||
| 1186 | } |
||
| 1187 | /** |
||
| 1188 | * Method called when an object has been exported with var_export() functions |
||
| 1189 | * It allows to return an object instantiated with the values |
||
| 1190 | * @see AbstractStructBase::__set_state() |
||
| 1191 | * @uses AbstractStructBase::__set_state() |
||
| 1192 | * @param array $array the exported values |
||
| 1193 | * @return \Webservices\StructType\CarVWEBasicTypeData |
||
| 1194 | */ |
||
| 1195 | public static function __set_state(array $array) |
||
| 1198 | } |
||
| 1199 | /** |
||
| 1200 | * Method returning the class name |
||
| 1201 | * @return string __CLASS__ |
||
| 1202 | */ |
||
| 1203 | public function __toString() |
||
| 1204 | { |
||
| 1205 | return __CLASS__; |
||
| 1206 | } |
||
| 1207 | } |
||
| 1208 |