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