Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait IsMagic |
||
11 | { |
||
12 | /** |
||
13 | * Handle the call to an inaccessible enum method. |
||
14 | */ |
||
15 | 1 | public static function __callStatic(string $name, array $arguments): mixed |
|
16 | { |
||
17 | 1 | return Enums::handleStaticCall(self::class, $name, $arguments); |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * Handle the call to an inaccessible case method. |
||
22 | */ |
||
23 | 10 | public function __call(string $name, array $arguments): mixed |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * Handle the invocation of a case. |
||
30 | */ |
||
31 | 1 | public function __invoke(mixed ...$arguments): mixed |
|
34 | } |
||
35 | } |
||
36 |