Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | final class RouteMiddleware implements MiddlewareInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $pattern; |
||
33 | |||
34 | /** |
||
35 | * @var MiddlewareInterface |
||
36 | */ |
||
37 | private $middleware; |
||
38 | |||
39 | /** |
||
40 | * RouteMiddleware constructor. |
||
41 | * |
||
42 | * @param string $method |
||
43 | * @param string $pattern |
||
44 | * @param RequestHandlerInterface $handler |
||
45 | */ |
||
46 | 5 | public function __construct(string $method, string $pattern, RequestHandlerInterface $handler) |
|
50 | 5 | } |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
63 |