Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | final class RequestHandlerMiddleware implements RequestHandlerInterface, MiddlewareInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var RequestHandlerInterface |
||
30 | */ |
||
31 | private $handler; |
||
32 | |||
33 | /** |
||
34 | * MiddlewareAggregator constructor. |
||
35 | * |
||
36 | * @param RequestHandlerInterface $handler |
||
37 | */ |
||
38 | 7 | public function __construct(RequestHandlerInterface $handler) |
|
41 | 7 | } |
|
42 | |||
43 | /** |
||
44 | * @param ServerRequestInterface $request |
||
45 | * |
||
46 | * @return ResponseInterface |
||
47 | */ |
||
48 | 5 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
49 | { |
||
50 | 5 | return $this->handler->handle($request); |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
62 | } |
||
63 | } |
||
64 |