| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 4 | public function handle(CallContextInterface $context): mixed |
|
| 16 | { |
||
| 17 | 4 | $callable = $context->getTarget()->getCallable(); |
|
| 18 | 4 | \is_callable($callable) or throw new \RuntimeException('Callable not found in the call context.'); |
|
| 19 | |||
| 20 | 3 | return $callable(...$context->getArguments()); |
|
| 21 | } |
||
| 23 |