CarBP::__construct()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 28
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 26
nc 1
nop 25
dl 0
loc 28
rs 8.8571
c 0
b 0
f 0

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
3
namespace Webservices\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for CarBP StructType
9
 * @subpackage Structs
10
 * @author JCID <[email protected]>
11
 */
12
class CarBP extends AbstractStructBase
13
{
14
    /**
15
     * The license_plate
16
     * @var string
17
     */
18
    public $license_plate;
19
    /**
20
     * The category
21
     * @var string
22
     */
23
    public $category;
24
    /**
25
     * The brand
26
     * @var string
27
     */
28
    public $brand;
29
    /**
30
     * The model
31
     * @var string
32
     */
33
    public $model;
34
    /**
35
     * The colors
36
     * @var string
37
     */
38
    public $colors;
39
    /**
40
     * The fuel_type
41
     * @var string
42
     */
43
    public $fuel_type;
44
    /**
45
     * The cylinders
46
     * @var int
47
     */
48
    public $cylinders;
49
    /**
50
     * The cylinder_capacity
51
     * @var int
52
     */
53
    public $cylinder_capacity;
54
    /**
55
     * The seats
56
     * @var int
57
     */
58
    public $seats;
59
    /**
60
     * The standing_room
61
     * @var int
62
     */
63
    public $standing_room;
64
    /**
65
     * The unladen_mass
66
     * @var int
67
     */
68
    public $unladen_mass;
69
    /**
70
     * The gross_vehicle_mass
71
     * @var int
72
     */
73
    public $gross_vehicle_mass;
74
    /**
75
     * The mass_ready
76
     * @var int
77
     */
78
    public $mass_ready;
79
    /**
80
     * The maximum_mass_payload
81
     * @var int
82
     */
83
    public $maximum_mass_payload;
84
    /**
85
     * The maximum_mass_unbraked
86
     * @var int
87
     */
88
    public $maximum_mass_unbraked;
89
    /**
90
     * The maximum_mass_braked
91
     * @var int
92
     */
93
    public $maximum_mass_braked;
94
    /**
95
     * The maximum_mass_trailer_braked
96
     * @var int
97
     */
98
    public $maximum_mass_trailer_braked;
99
    /**
100
     * The maximum_mass_self_braked
101
     * @var int
102
     */
103
    public $maximum_mass_self_braked;
104
    /**
105
     * The maximum_mass_axle_braked
106
     * @var int
107
     */
108
    public $maximum_mass_axle_braked;
109
    /**
110
     * The date_first_issuing
111
     * @var string
112
     */
113
    public $date_first_issuing;
114
    /**
115
     * The date_first_admission
116
     * @var string
117
     */
118
    public $date_first_admission;
119
    /**
120
     * The date_latest_name_registration
121
     * @var string
122
     */
123
    public $date_latest_name_registration;
124
    /**
125
     * The apk_due_date
126
     * @var string
127
     */
128
    public $apk_due_date;
129
    /**
130
     * The bpm
131
     * @var int
132
     */
133
    public $bpm;
134
    /**
135
     * The power
136
     * @var int
137
     */
138
    public $power;
139
    /**
140
     * Constructor method for CarBP
141
     * @uses CarBP::setLicense_plate()
142
     * @uses CarBP::setCategory()
143
     * @uses CarBP::setBrand()
144
     * @uses CarBP::setModel()
145
     * @uses CarBP::setColors()
146
     * @uses CarBP::setFuel_type()
147
     * @uses CarBP::setCylinders()
148
     * @uses CarBP::setCylinder_capacity()
149
     * @uses CarBP::setSeats()
150
     * @uses CarBP::setStanding_room()
151
     * @uses CarBP::setUnladen_mass()
152
     * @uses CarBP::setGross_vehicle_mass()
153
     * @uses CarBP::setMass_ready()
154
     * @uses CarBP::setMaximum_mass_payload()
155
     * @uses CarBP::setMaximum_mass_unbraked()
156
     * @uses CarBP::setMaximum_mass_braked()
157
     * @uses CarBP::setMaximum_mass_trailer_braked()
158
     * @uses CarBP::setMaximum_mass_self_braked()
159
     * @uses CarBP::setMaximum_mass_axle_braked()
160
     * @uses CarBP::setDate_first_issuing()
161
     * @uses CarBP::setDate_first_admission()
162
     * @uses CarBP::setDate_latest_name_registration()
163
     * @uses CarBP::setApk_due_date()
164
     * @uses CarBP::setBpm()
165
     * @uses CarBP::setPower()
166
     * @param string $license_plate
167
     * @param string $category
168
     * @param string $brand
169
     * @param string $model
170
     * @param string $colors
171
     * @param string $fuel_type
172
     * @param int $cylinders
173
     * @param int $cylinder_capacity
174
     * @param int $seats
175
     * @param int $standing_room
176
     * @param int $unladen_mass
177
     * @param int $gross_vehicle_mass
178
     * @param int $mass_ready
179
     * @param int $maximum_mass_payload
180
     * @param int $maximum_mass_unbraked
181
     * @param int $maximum_mass_braked
182
     * @param int $maximum_mass_trailer_braked
183
     * @param int $maximum_mass_self_braked
184
     * @param int $maximum_mass_axle_braked
185
     * @param string $date_first_issuing
186
     * @param string $date_first_admission
187
     * @param string $date_latest_name_registration
188
     * @param string $apk_due_date
189
     * @param int $bpm
190
     * @param int $power
191
     */
192
    public function __construct($license_plate = null, $category = null, $brand = null, $model = null, $colors = null, $fuel_type = 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)
193
    {
194
        $this
195
            ->setLicense_plate($license_plate)
196
            ->setCategory($category)
197
            ->setBrand($brand)
198
            ->setModel($model)
199
            ->setColors($colors)
200
            ->setFuel_type($fuel_type)
201
            ->setCylinders($cylinders)
202
            ->setCylinder_capacity($cylinder_capacity)
203
            ->setSeats($seats)
204
            ->setStanding_room($standing_room)
205
            ->setUnladen_mass($unladen_mass)
206
            ->setGross_vehicle_mass($gross_vehicle_mass)
207
            ->setMass_ready($mass_ready)
208
            ->setMaximum_mass_payload($maximum_mass_payload)
209
            ->setMaximum_mass_unbraked($maximum_mass_unbraked)
210
            ->setMaximum_mass_braked($maximum_mass_braked)
211
            ->setMaximum_mass_trailer_braked($maximum_mass_trailer_braked)
212
            ->setMaximum_mass_self_braked($maximum_mass_self_braked)
213
            ->setMaximum_mass_axle_braked($maximum_mass_axle_braked)
214
            ->setDate_first_issuing($date_first_issuing)
215
            ->setDate_first_admission($date_first_admission)
216
            ->setDate_latest_name_registration($date_latest_name_registration)
217
            ->setApk_due_date($apk_due_date)
218
            ->setBpm($bpm)
219
            ->setPower($power);
220
    }
221
    /**
222
     * Get license_plate value
223
     * @return string|null
224
     */
225
    public function getLicense_plate()
226
    {
227
        return $this->license_plate;
228
    }
229
    /**
230
     * Set license_plate value
231
     * @param string $license_plate
232
     * @return \Webservices\StructType\CarBP
233
     */
234
    public function setLicense_plate($license_plate = null)
235
    {
236
        // validation for constraint: string
237
        if (!is_null($license_plate) && !is_string($license_plate)) {
0 ignored issues
show
introduced by
The condition ! is_null($license_plate..._string($license_plate) can never be true.
Loading history...
238
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($license_plate)), __LINE__);
239
        }
240
        $this->license_plate = $license_plate;
241
        return $this;
242
    }
243
    /**
244
     * Get category value
245
     * @return string|null
246
     */
247
    public function getCategory()
248
    {
249
        return $this->category;
250
    }
251
    /**
252
     * Set category value
253
     * @param string $category
254
     * @return \Webservices\StructType\CarBP
255
     */
256
    public function setCategory($category = null)
257
    {
258
        // validation for constraint: string
259
        if (!is_null($category) && !is_string($category)) {
0 ignored issues
show
introduced by
The condition ! is_null($category) && ! is_string($category) can never be true.
Loading history...
260
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($category)), __LINE__);
261
        }
262
        $this->category = $category;
263
        return $this;
264
    }
265
    /**
266
     * Get brand value
267
     * @return string|null
268
     */
269
    public function getBrand()
270
    {
271
        return $this->brand;
272
    }
273
    /**
274
     * Set brand value
275
     * @param string $brand
276
     * @return \Webservices\StructType\CarBP
277
     */
278
    public function setBrand($brand = null)
279
    {
280
        // validation for constraint: string
281
        if (!is_null($brand) && !is_string($brand)) {
0 ignored issues
show
introduced by
The condition ! is_null($brand) && ! is_string($brand) can never be true.
Loading history...
282
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($brand)), __LINE__);
283
        }
284
        $this->brand = $brand;
285
        return $this;
286
    }
287
    /**
288
     * Get model value
289
     * @return string|null
290
     */
291
    public function getModel()
292
    {
293
        return $this->model;
294
    }
295
    /**
296
     * Set model value
297
     * @param string $model
298
     * @return \Webservices\StructType\CarBP
299
     */
300
    public function setModel($model = null)
301
    {
302
        // validation for constraint: string
303
        if (!is_null($model) && !is_string($model)) {
0 ignored issues
show
introduced by
The condition ! is_null($model) && ! is_string($model) can never be true.
Loading history...
304
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($model)), __LINE__);
305
        }
306
        $this->model = $model;
307
        return $this;
308
    }
309
    /**
310
     * Get colors value
311
     * @return string|null
312
     */
313
    public function getColors()
314
    {
315
        return $this->colors;
316
    }
317
    /**
318
     * Set colors value
319
     * @param string $colors
320
     * @return \Webservices\StructType\CarBP
321
     */
322
    public function setColors($colors = null)
323
    {
324
        // validation for constraint: string
325
        if (!is_null($colors) && !is_string($colors)) {
0 ignored issues
show
introduced by
The condition ! is_null($colors) && ! is_string($colors) can never be true.
Loading history...
326
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($colors)), __LINE__);
327
        }
328
        $this->colors = $colors;
329
        return $this;
330
    }
331
    /**
332
     * Get fuel_type value
333
     * @return string|null
334
     */
335
    public function getFuel_type()
336
    {
337
        return $this->fuel_type;
338
    }
339
    /**
340
     * Set fuel_type value
341
     * @param string $fuel_type
342
     * @return \Webservices\StructType\CarBP
343
     */
344
    public function setFuel_type($fuel_type = null)
345
    {
346
        // validation for constraint: string
347
        if (!is_null($fuel_type) && !is_string($fuel_type)) {
0 ignored issues
show
introduced by
The condition ! is_null($fuel_type) && ! is_string($fuel_type) can never be true.
Loading history...
348
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($fuel_type)), __LINE__);
349
        }
350
        $this->fuel_type = $fuel_type;
351
        return $this;
352
    }
353
    /**
354
     * Get cylinders value
355
     * @return int|null
356
     */
357
    public function getCylinders()
358
    {
359
        return $this->cylinders;
360
    }
361
    /**
362
     * Set cylinders value
363
     * @param int $cylinders
364
     * @return \Webservices\StructType\CarBP
365
     */
366
    public function setCylinders($cylinders = null)
367
    {
368
        // validation for constraint: int
369
        if (!is_null($cylinders) && !is_numeric($cylinders)) {
0 ignored issues
show
introduced by
The condition ! is_null($cylinders) && ! is_numeric($cylinders) can never be true.
Loading history...
370
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($cylinders)), __LINE__);
371
        }
372
        $this->cylinders = $cylinders;
373
        return $this;
374
    }
375
    /**
376
     * Get cylinder_capacity value
377
     * @return int|null
378
     */
379
    public function getCylinder_capacity()
380
    {
381
        return $this->cylinder_capacity;
382
    }
383
    /**
384
     * Set cylinder_capacity value
385
     * @param int $cylinder_capacity
386
     * @return \Webservices\StructType\CarBP
387
     */
388
    public function setCylinder_capacity($cylinder_capacity = null)
389
    {
390
        // validation for constraint: int
391
        if (!is_null($cylinder_capacity) && !is_numeric($cylinder_capacity)) {
0 ignored issues
show
introduced by
The condition ! is_null($cylinder_capa...ric($cylinder_capacity) can never be true.
Loading history...
392
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($cylinder_capacity)), __LINE__);
393
        }
394
        $this->cylinder_capacity = $cylinder_capacity;
395
        return $this;
396
    }
397
    /**
398
     * Get seats value
399
     * @return int|null
400
     */
401
    public function getSeats()
402
    {
403
        return $this->seats;
404
    }
405
    /**
406
     * Set seats value
407
     * @param int $seats
408
     * @return \Webservices\StructType\CarBP
409
     */
410
    public function setSeats($seats = null)
411
    {
412
        // validation for constraint: int
413
        if (!is_null($seats) && !is_numeric($seats)) {
0 ignored issues
show
introduced by
The condition ! is_null($seats) && ! is_numeric($seats) can never be true.
Loading history...
414
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($seats)), __LINE__);
415
        }
416
        $this->seats = $seats;
417
        return $this;
418
    }
419
    /**
420
     * Get standing_room value
421
     * @return int|null
422
     */
423
    public function getStanding_room()
424
    {
425
        return $this->standing_room;
426
    }
427
    /**
428
     * Set standing_room value
429
     * @param int $standing_room
430
     * @return \Webservices\StructType\CarBP
431
     */
432
    public function setStanding_room($standing_room = null)
433
    {
434
        // validation for constraint: int
435
        if (!is_null($standing_room) && !is_numeric($standing_room)) {
0 ignored issues
show
introduced by
The condition ! is_null($standing_room...numeric($standing_room) can never be true.
Loading history...
436
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($standing_room)), __LINE__);
437
        }
438
        $this->standing_room = $standing_room;
439
        return $this;
440
    }
441
    /**
442
     * Get unladen_mass value
443
     * @return int|null
444
     */
445
    public function getUnladen_mass()
446
    {
447
        return $this->unladen_mass;
448
    }
449
    /**
450
     * Set unladen_mass value
451
     * @param int $unladen_mass
452
     * @return \Webservices\StructType\CarBP
453
     */
454
    public function setUnladen_mass($unladen_mass = null)
455
    {
456
        // validation for constraint: int
457
        if (!is_null($unladen_mass) && !is_numeric($unladen_mass)) {
0 ignored issues
show
introduced by
The condition ! is_null($unladen_mass)..._numeric($unladen_mass) can never be true.
Loading history...
458
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($unladen_mass)), __LINE__);
459
        }
460
        $this->unladen_mass = $unladen_mass;
461
        return $this;
462
    }
463
    /**
464
     * Get gross_vehicle_mass value
465
     * @return int|null
466
     */
467
    public function getGross_vehicle_mass()
468
    {
469
        return $this->gross_vehicle_mass;
470
    }
471
    /**
472
     * Set gross_vehicle_mass value
473
     * @param int $gross_vehicle_mass
474
     * @return \Webservices\StructType\CarBP
475
     */
476
    public function setGross_vehicle_mass($gross_vehicle_mass = null)
477
    {
478
        // validation for constraint: int
479
        if (!is_null($gross_vehicle_mass) && !is_numeric($gross_vehicle_mass)) {
0 ignored issues
show
introduced by
The condition ! is_null($gross_vehicle...ic($gross_vehicle_mass) can never be true.
Loading history...
480
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($gross_vehicle_mass)), __LINE__);
481
        }
482
        $this->gross_vehicle_mass = $gross_vehicle_mass;
483
        return $this;
484
    }
485
    /**
486
     * Get mass_ready value
487
     * @return int|null
488
     */
489
    public function getMass_ready()
490
    {
491
        return $this->mass_ready;
492
    }
493
    /**
494
     * Set mass_ready value
495
     * @param int $mass_ready
496
     * @return \Webservices\StructType\CarBP
497
     */
498
    public function setMass_ready($mass_ready = null)
499
    {
500
        // validation for constraint: int
501
        if (!is_null($mass_ready) && !is_numeric($mass_ready)) {
0 ignored issues
show
introduced by
The condition ! is_null($mass_ready) &...is_numeric($mass_ready) can never be true.
Loading history...
502
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($mass_ready)), __LINE__);
503
        }
504
        $this->mass_ready = $mass_ready;
505
        return $this;
506
    }
507
    /**
508
     * Get maximum_mass_payload value
509
     * @return int|null
510
     */
511
    public function getMaximum_mass_payload()
512
    {
513
        return $this->maximum_mass_payload;
514
    }
515
    /**
516
     * Set maximum_mass_payload value
517
     * @param int $maximum_mass_payload
518
     * @return \Webservices\StructType\CarBP
519
     */
520
    public function setMaximum_mass_payload($maximum_mass_payload = null)
521
    {
522
        // validation for constraint: int
523
        if (!is_null($maximum_mass_payload) && !is_numeric($maximum_mass_payload)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...($maximum_mass_payload) can never be true.
Loading history...
524
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_payload)), __LINE__);
525
        }
526
        $this->maximum_mass_payload = $maximum_mass_payload;
527
        return $this;
528
    }
529
    /**
530
     * Get maximum_mass_unbraked value
531
     * @return int|null
532
     */
533
    public function getMaximum_mass_unbraked()
534
    {
535
        return $this->maximum_mass_unbraked;
536
    }
537
    /**
538
     * Set maximum_mass_unbraked value
539
     * @param int $maximum_mass_unbraked
540
     * @return \Webservices\StructType\CarBP
541
     */
542
    public function setMaximum_mass_unbraked($maximum_mass_unbraked = null)
543
    {
544
        // validation for constraint: int
545
        if (!is_null($maximum_mass_unbraked) && !is_numeric($maximum_mass_unbraked)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...$maximum_mass_unbraked) can never be true.
Loading history...
546
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_unbraked)), __LINE__);
547
        }
548
        $this->maximum_mass_unbraked = $maximum_mass_unbraked;
549
        return $this;
550
    }
551
    /**
552
     * Get maximum_mass_braked value
553
     * @return int|null
554
     */
555
    public function getMaximum_mass_braked()
556
    {
557
        return $this->maximum_mass_braked;
558
    }
559
    /**
560
     * Set maximum_mass_braked value
561
     * @param int $maximum_mass_braked
562
     * @return \Webservices\StructType\CarBP
563
     */
564
    public function setMaximum_mass_braked($maximum_mass_braked = null)
565
    {
566
        // validation for constraint: int
567
        if (!is_null($maximum_mass_braked) && !is_numeric($maximum_mass_braked)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...c($maximum_mass_braked) can never be true.
Loading history...
568
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_braked)), __LINE__);
569
        }
570
        $this->maximum_mass_braked = $maximum_mass_braked;
571
        return $this;
572
    }
573
    /**
574
     * Get maximum_mass_trailer_braked value
575
     * @return int|null
576
     */
577
    public function getMaximum_mass_trailer_braked()
578
    {
579
        return $this->maximum_mass_trailer_braked;
580
    }
581
    /**
582
     * Set maximum_mass_trailer_braked value
583
     * @param int $maximum_mass_trailer_braked
584
     * @return \Webservices\StructType\CarBP
585
     */
586
    public function setMaximum_mass_trailer_braked($maximum_mass_trailer_braked = null)
587
    {
588
        // validation for constraint: int
589
        if (!is_null($maximum_mass_trailer_braked) && !is_numeric($maximum_mass_trailer_braked)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...um_mass_trailer_braked) can never be true.
Loading history...
590
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_trailer_braked)), __LINE__);
591
        }
592
        $this->maximum_mass_trailer_braked = $maximum_mass_trailer_braked;
593
        return $this;
594
    }
595
    /**
596
     * Get maximum_mass_self_braked value
597
     * @return int|null
598
     */
599
    public function getMaximum_mass_self_braked()
600
    {
601
        return $this->maximum_mass_self_braked;
602
    }
603
    /**
604
     * Set maximum_mass_self_braked value
605
     * @param int $maximum_mass_self_braked
606
     * @return \Webservices\StructType\CarBP
607
     */
608
    public function setMaximum_mass_self_braked($maximum_mass_self_braked = null)
609
    {
610
        // validation for constraint: int
611
        if (!is_null($maximum_mass_self_braked) && !is_numeric($maximum_mass_self_braked)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...ximum_mass_self_braked) can never be true.
Loading history...
612
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_self_braked)), __LINE__);
613
        }
614
        $this->maximum_mass_self_braked = $maximum_mass_self_braked;
615
        return $this;
616
    }
617
    /**
618
     * Get maximum_mass_axle_braked value
619
     * @return int|null
620
     */
621
    public function getMaximum_mass_axle_braked()
622
    {
623
        return $this->maximum_mass_axle_braked;
624
    }
625
    /**
626
     * Set maximum_mass_axle_braked value
627
     * @param int $maximum_mass_axle_braked
628
     * @return \Webservices\StructType\CarBP
629
     */
630
    public function setMaximum_mass_axle_braked($maximum_mass_axle_braked = null)
631
    {
632
        // validation for constraint: int
633
        if (!is_null($maximum_mass_axle_braked) && !is_numeric($maximum_mass_axle_braked)) {
0 ignored issues
show
introduced by
The condition ! is_null($maximum_mass_...ximum_mass_axle_braked) can never be true.
Loading history...
634
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($maximum_mass_axle_braked)), __LINE__);
635
        }
636
        $this->maximum_mass_axle_braked = $maximum_mass_axle_braked;
637
        return $this;
638
    }
639
    /**
640
     * Get date_first_issuing value
641
     * @return string|null
642
     */
643
    public function getDate_first_issuing()
644
    {
645
        return $this->date_first_issuing;
646
    }
647
    /**
648
     * Set date_first_issuing value
649
     * @param string $date_first_issuing
650
     * @return \Webservices\StructType\CarBP
651
     */
652
    public function setDate_first_issuing($date_first_issuing = null)
653
    {
654
        // validation for constraint: string
655
        if (!is_null($date_first_issuing) && !is_string($date_first_issuing)) {
0 ignored issues
show
introduced by
The condition ! is_null($date_first_is...ng($date_first_issuing) can never be true.
Loading history...
656
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_first_issuing)), __LINE__);
657
        }
658
        $this->date_first_issuing = $date_first_issuing;
659
        return $this;
660
    }
661
    /**
662
     * Get date_first_admission value
663
     * @return string|null
664
     */
665
    public function getDate_first_admission()
666
    {
667
        return $this->date_first_admission;
668
    }
669
    /**
670
     * Set date_first_admission value
671
     * @param string $date_first_admission
672
     * @return \Webservices\StructType\CarBP
673
     */
674
    public function setDate_first_admission($date_first_admission = null)
675
    {
676
        // validation for constraint: string
677
        if (!is_null($date_first_admission) && !is_string($date_first_admission)) {
0 ignored issues
show
introduced by
The condition ! is_null($date_first_ad...($date_first_admission) can never be true.
Loading history...
678
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_first_admission)), __LINE__);
679
        }
680
        $this->date_first_admission = $date_first_admission;
681
        return $this;
682
    }
683
    /**
684
     * Get date_latest_name_registration value
685
     * @return string|null
686
     */
687
    public function getDate_latest_name_registration()
688
    {
689
        return $this->date_latest_name_registration;
690
    }
691
    /**
692
     * Set date_latest_name_registration value
693
     * @param string $date_latest_name_registration
694
     * @return \Webservices\StructType\CarBP
695
     */
696
    public function setDate_latest_name_registration($date_latest_name_registration = null)
697
    {
698
        // validation for constraint: string
699
        if (!is_null($date_latest_name_registration) && !is_string($date_latest_name_registration)) {
0 ignored issues
show
introduced by
The condition ! is_null($date_latest_n...test_name_registration) can never be true.
Loading history...
700
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($date_latest_name_registration)), __LINE__);
701
        }
702
        $this->date_latest_name_registration = $date_latest_name_registration;
703
        return $this;
704
    }
705
    /**
706
     * Get apk_due_date value
707
     * @return string|null
708
     */
709
    public function getApk_due_date()
710
    {
711
        return $this->apk_due_date;
712
    }
713
    /**
714
     * Set apk_due_date value
715
     * @param string $apk_due_date
716
     * @return \Webservices\StructType\CarBP
717
     */
718
    public function setApk_due_date($apk_due_date = null)
719
    {
720
        // validation for constraint: string
721
        if (!is_null($apk_due_date) && !is_string($apk_due_date)) {
0 ignored issues
show
introduced by
The condition ! is_null($apk_due_date)...s_string($apk_due_date) can never be true.
Loading history...
722
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($apk_due_date)), __LINE__);
723
        }
724
        $this->apk_due_date = $apk_due_date;
725
        return $this;
726
    }
727
    /**
728
     * Get bpm value
729
     * @return int|null
730
     */
731
    public function getBpm()
732
    {
733
        return $this->bpm;
734
    }
735
    /**
736
     * Set bpm value
737
     * @param int $bpm
738
     * @return \Webservices\StructType\CarBP
739
     */
740
    public function setBpm($bpm = null)
741
    {
742
        // validation for constraint: int
743
        if (!is_null($bpm) && !is_numeric($bpm)) {
0 ignored issues
show
introduced by
The condition ! is_null($bpm) && ! is_numeric($bpm) can never be true.
Loading history...
744
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($bpm)), __LINE__);
745
        }
746
        $this->bpm = $bpm;
747
        return $this;
748
    }
749
    /**
750
     * Get power value
751
     * @return int|null
752
     */
753
    public function getPower()
754
    {
755
        return $this->power;
756
    }
757
    /**
758
     * Set power value
759
     * @param int $power
760
     * @return \Webservices\StructType\CarBP
761
     */
762
    public function setPower($power = null)
763
    {
764
        // validation for constraint: int
765
        if (!is_null($power) && !is_numeric($power)) {
0 ignored issues
show
introduced by
The condition ! is_null($power) && ! is_numeric($power) can never be true.
Loading history...
766
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($power)), __LINE__);
767
        }
768
        $this->power = $power;
769
        return $this;
770
    }
771
    /**
772
     * Method called when an object has been exported with var_export() functions
773
     * It allows to return an object instantiated with the values
774
     * @see AbstractStructBase::__set_state()
775
     * @uses AbstractStructBase::__set_state()
776
     * @param array $array the exported values
777
     * @return \Webservices\StructType\CarBP
778
     */
779
    public static function __set_state(array $array)
780
    {
781
        return parent::__set_state($array);
782
    }
783
    /**
784
     * Method returning the class name
785
     * @return string __CLASS__
786
     */
787
    public function __toString()
788
    {
789
        return __CLASS__;
790
    }
791
}
792