Passed
Push — master ( fe8c79...c4382a )
by Igor
04:34
created

Location::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace SomeWork\Minjust\Entity;
4
5
class Location
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $id = '';
11
12
    /**
13
     * @var string
14
     */
15
    protected $name = '';
16
17
    /**
18
     * @return string
19
     */
20 3
    public function getId(): string
21
    {
22 3
        return $this->id;
23
    }
24
25
    /**
26
     * @param string $id
27
     *
28
     * @return Location
29
     */
30 4
    public function setId(string $id): Location
31
    {
32 4
        $this->id = $id;
33
34 4
        return $this;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 3
    public function getName(): string
41
    {
42 3
        return $this->name;
43
    }
44
45
    /**
46
     * @param string $name
47
     *
48
     * @return Location
49
     */
50 4
    public function setName(string $name): Location
51
    {
52 4
        $this->name = $name;
53
54 4
        return $this;
55
    }
56
}
57