| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 19 | public function execute(string $className, string $methodName, ServerRequestInterface $request) |
|
| 26 | { |
||
| 27 | 19 | if (!method_exists($className, $methodName) && !method_exists($className, '__callStatic')) { |
|
| 28 | 2 | throw new HandlerNotFoundException($className, $methodName); |
|
| 29 | } |
||
| 30 | 18 | return call_user_func([$className, $methodName], $request); |
|
| 31 | } |
||
| 32 | } |
||
| 33 |