Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | final class RouteMiddleware implements MiddlewareInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $pattern; |
||
30 | |||
31 | /** |
||
32 | * @var MiddlewareInterface |
||
33 | */ |
||
34 | private $middleware; |
||
35 | |||
36 | /** |
||
37 | * RouteMiddleware constructor. |
||
38 | * |
||
39 | * @param string $method |
||
40 | * @param string $pattern |
||
41 | * @param RequestHandlerInterface $handler |
||
42 | */ |
||
43 | 5 | public function __construct(string $method, string $pattern, RequestHandlerInterface $handler) |
|
47 | 5 | } |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
60 |