ManufacturerDTO   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * File: ManufacturerDTO.php
4
 *
5
 * @author      Maciej Sławik <[email protected]>
6
 * Github:      https://github.com/maciejslawik
7
 */
8
9
namespace MSlwk\Otomoto\App\Manufacturer\Data;
10
11
/**
12
 * Class ManufacturerDTO
13
 * @package MSlwk\Otomoto\App\Manufacturer\Data
14
 */
15
class ManufacturerDTO implements ManufacturerDTOInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * ManufacturerDTO constructor.
24
     * @param string $name
25
     */
26 31
    public function __construct(string $name)
27
    {
28 31
        $this->name = $name;
29 31
    }
30
31
    /**
32
     * @return string
33
     */
34 26
    public function getName(): string
35
    {
36 26
        return $this->name;
37
    }
38
}
39