Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | final class ZoneStorage |
||
19 | { |
||
20 | private string $name; |
||
21 | private string $slug; |
||
22 | |||
23 | public function __construct(NameField $name) |
||
24 | { |
||
25 | $this->name = $name->getValue(); |
||
26 | $this->slug = $name->slugify(); |
||
27 | } |
||
28 | |||
29 | public static function create(NameField $name): self |
||
32 | } |
||
33 | |||
34 | public function renameZone(NameField $name): void |
||
35 | { |
||
36 | $this->name = $name->getValue(); |
||
37 | $this->slug = $name->slugify(); |
||
38 | } |
||
39 | |||
40 | public function name(): string |
||
43 | } |
||
44 | |||
45 | public function slug(): string |
||
50 |