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