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