Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class ShootMiddleware implements MiddlewareInterface |
||
13 | { |
||
14 | /** @var Pipeline */ |
||
15 | private $pipeline; |
||
16 | |||
17 | /** |
||
18 | * @param Pipeline $pipeline |
||
19 | */ |
||
20 | 1 | public function __construct(Pipeline $pipeline) |
|
21 | { |
||
22 | 1 | $this->pipeline = $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 |
||
38 | 1 | }); |
|
39 | } |
||
41 |