Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class Permission implements PermissionInterface |
||
13 | { |
||
14 | private string $slug; |
||
15 | |||
16 | private ?string $description = null; |
||
17 | |||
18 | 13 | public function __construct(string $slug, string $description = null) |
|
19 | { |
||
20 | 13 | $this->slug = $slug; |
|
21 | 13 | $this->description = $description; |
|
22 | 13 | } |
|
23 | |||
24 | 13 | public function slug(): string |
|
25 | { |
||
26 | 13 | return $this->slug; |
|
27 | } |
||
28 | |||
29 | 2 | public function description(): ?string |
|
32 | } |
||
33 | } |
||
34 |