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

Location   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 50
ccs 10
cts 10
cp 1
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setId() 0 5 1
A getId() 0 3 1
A setName() 0 5 1
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