Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class ActionWrapper implements MiddlewareInterface |
||
16 | { |
||
17 | private string $class; |
||
18 | private string $method; |
||
19 | private ContainerInterface $container; |
||
20 | private RequestModelFactory $factory; |
||
21 | |||
22 | 3 | public function __construct(ContainerInterface $container, RequestModelFactory $factory, string $class, string $method) |
|
23 | { |
||
24 | 3 | $this->container = $container; |
|
25 | 3 | $this->factory = $factory; |
|
26 | 3 | $this->class = $class; |
|
27 | 3 | $this->method = $method; |
|
28 | 3 | } |
|
29 | |||
30 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
35 | } |
||
36 | |||
37 | 1 | private function getHandlerParams(): array |
|
42 |