Completed
Push — master ( 2d9e7d...e8a8b9 )
by Samuel
8s
created

Car::getSeatsNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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