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

VehicleAbstract::getManufacturer()   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
abstract class VehicleAbstract implements VehicleInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $id;
11
12
    /**
13
     * @var string
14
     */
15
    private $manufacturer;
16
17
    /**
18
     * @var string
19
     */
20
    private $model;
21
22
    /**
23
     * @param string $id
24
     * @param string $manufacturer
25
     * @param string $model
26
     */
27
    public function __construct(string $id, string $manufacturer, string $model)
28
    {
29
        $this->id = $id;
30
        $this->manufacturer = $manufacturer;
31
        $this->model = $model;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getId(): string
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getManufacturer(): string
46
    {
47
        return $this->manufacturer;
48
    }
49
50
    /**
51
     * @param string $manufacturer
52
     * @return VehicleInterface
53
     */
54
    public function setManufacturer(string $manufacturer): VehicleInterface
55
    {
56
        $this->manufacturer = $manufacturer;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getModel(): string
65
    {
66
        return $this->model;
67
    }
68
69
    /**
70
     * @param string $model
71
     * @return VehicleInterface
72
     */
73
    public function setModel(string $model): VehicleInterface
74
    {
75
        $this->model = $model;
76
77
        return $this;
78
    }
79
}
80