Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
12 | final class Middleware implements MiddlewareInterface |
||
13 | { |
||
14 | /** @var PipelineInterface */ |
||
15 | private $pipeline; |
||
16 | |||
17 | /** |
||
18 | * @param PipelineInterface $pipeline |
||
19 | */ |
||
20 | 1 | public function __construct(PipelineInterface $pipeline) |
|
23 | 1 | } |
|
24 | |||
25 | /** |
||
26 | * Process an incoming server request and return a response, optionally delegating |
||
27 | * response creation to a handler. |
||
28 | * |
||
29 | * @param ServerRequestInterface $request |
||
30 | * @param RequestHandlerInterface $handler |
||
31 | * |
||
32 | * @return ResponseInterface |
||
33 | */ |
||
34 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
41 |