| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class ActionWrapper implements MiddlewareInterface |
||
| 16 | { |
||
| 17 | 6 | public function __construct( |
|
| 18 | private ContainerInterface $container, |
||
| 19 | private HandlerParametersResolver $parametersResolver, |
||
| 20 | private string $class, |
||
| 21 | private string $method |
||
| 22 | ) { |
||
| 23 | } |
||
| 24 | |||
| 25 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @throws \ReflectionException |
||
| 37 | * |
||
| 38 | * @return \ReflectionParameter[] |
||
| 39 | */ |
||
| 40 | 4 | private function getHandlerParameters(): array |
|
| 47 |