Total Complexity | 5 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | abstract class CacheEnum |
||
6 | { |
||
7 | public function __construct(protected int|string $value) {} |
||
8 | |||
9 | public static function __callStatic(string $name, array $arguments): self |
||
12 | } |
||
13 | |||
14 | public function getValue(): int|string |
||
15 | { |
||
16 | return $this->value; |
||
17 | } |
||
18 | |||
19 | public function equals(self $other): bool |
||
22 | } |
||
23 | } |
||
24 |