Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class RegionName implements RegionInterface |
||
9 | { |
||
10 | protected string $name; |
||
11 | |||
12 | public function __construct(string $name) |
||
13 | { |
||
14 | $this->setName($name); |
||
15 | } |
||
16 | |||
17 | public function getName() |
||
18 | { |
||
19 | return (string) $this->name; |
||
20 | } |
||
21 | |||
22 | public function setName(string $name) |
||
23 | { |
||
24 | $this->name = (string) trim($name); |
||
25 | } |
||
26 | |||
27 | public function isValid(): bool |
||
30 | } |
||
31 | } |