| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class LazyMiddleware implements MiddlewareInterface |
||
| 15 | { |
||
| 16 | /** @var ContainerInterface */ |
||
| 17 | private $container; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | private $middleware; |
||
| 21 | |||
| 22 | 3 | public function __construct(ContainerInterface $container, string $middleware) |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | // MiddlewareInterface |
||
| 33 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 34 | { |
||
| 35 | 1 | return $this->resolve()->process($request, $handler); |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | private function resolve(): MiddlewareInterface |
|
| 41 | } |
||
| 42 | } |
||
| 43 |