Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class HeaderMiddleware implements MiddlewareInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $header; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $value; |
||
21 | |||
22 | /** |
||
23 | * HeaderMiddleware constructor. |
||
24 | * @param string $header |
||
25 | * @param string $value |
||
26 | */ |
||
27 | public function __construct(string $header, string $value) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param ServerRequestInterface $request |
||
35 | * @param RequestHandlerInterface $handler |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface |
||
44 |