Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | enum AppModeEnum: string |
||
17 | { |
||
18 | case DEV = 'dev'; |
||
19 | case TEST = 'test'; |
||
20 | case PROD = 'prod'; |
||
21 | |||
22 | /** |
||
23 | * @psalm-suppress PossiblyUnusedMethod |
||
24 | */ |
||
25 | public function isDev(): bool |
||
26 | { |
||
27 | return self::DEV === $this; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @psalm-suppress PossiblyUnusedMethod |
||
32 | */ |
||
33 | public function isTest(): bool |
||
36 | } |
||
37 | |||
38 | public function isProd(): bool |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @psalm-suppress PossiblyUnusedMethod |
||
45 | */ |
||
46 | public static function fromString(string $mode): self |
||
58 |