Completed
Push — master ( 91e961...79ac70 )
by Samuel
11s
created

TruckInput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getMaximumLoad() 0 4 1
1
<?php
2
3
namespace App\Vehicle\Domain\Input;
4
5
use App\Vehicle\Domain\VehicleAbstract;
6
7
class TruckInput extends VehicleAbstract
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $id;
13
14
    /**
15
     * @var int
16
     */
17
    protected $maximumLoad;
18
19
    /**
20
     * @param string $id
21
     * @param string $manufacturer
22
     * @param string $model
23
     * @param int $maximumLoad
24
     */
25
    public function __construct(string $id, string $manufacturer, string $model, int $maximumLoad)
26
    {
27
        parent::__construct($id, $manufacturer, $model);
28
29
        $this->maximumLoad = $maximumLoad;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getMaximumLoad(): int
36
    {
37
        return $this->maximumLoad;
38
    }
39
}
40