Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param string $name |
||
47 | * |
||
48 | * @return Location |
||
49 | */ |
||
50 | 4 | public function setName(string $name): Location |
|
57 |