Completed
Push — master ( c9e866...91e961 )
by Samuel
10s
created

CarInput::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace App\Vehicle\Domain\Input;
4
5
use App\Vehicle\Domain\VehicleAbstract;
6
7
class CarInput extends VehicleAbstract
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $id;
13
14
    /**
15
     * @var int
16
     */
17
    protected $seatsNumber;
18
19
    /**
20
     * @param string $id
21
     * @param string $manufacturer
22
     * @param string $model
23
     * @param int $seatsNumber
24
     */
25
    public function __construct(string $id, string $manufacturer, string $model, int $seatsNumber)
26
    {
27
        parent::__construct($id, $manufacturer, $model);
28
29
        $this->seatsNumber = $seatsNumber;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getSeatsNumber(): int
36
    {
37
        return $this->seatsNumber;
38
    }
39
}
40