| 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 | 4 | public static function __callStatic(string $name, array $arguments): mixed |
|
| 16 | { |
||
| 17 | 4 | return Enums::handleStaticCall(self::class, $name, $arguments); |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Handle the call to an inaccessible case method. |
||
| 22 | */ |
||
| 23 | 14 | public function __call(string $name, array $arguments): mixed |
|
| 24 | { |
||
| 25 | 14 | return Enums::handleCall($this, $name, $arguments); |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Handle the invocation of a case. |
||
| 30 | */ |
||
| 31 | 2 | public function __invoke(mixed ...$arguments): mixed |
|
| 34 | } |
||
| 35 | } |
||
| 36 |