Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class ResponseFactoryMiddleware extends AbstractMiddleware |
||
22 | { |
||
23 | /** |
||
24 | * @var MessageFactoryInterface |
||
25 | */ |
||
26 | protected $factory; |
||
27 | |||
28 | /** |
||
29 | * @param MessageFactoryInterface $factory |
||
30 | */ |
||
31 | 15 | public function __construct(MessageFactoryInterface $factory) |
|
32 | { |
||
33 | 15 | $this->factory = $factory; |
|
34 | 15 | } |
|
35 | |||
36 | /** |
||
37 | * @param HttpRequestInterface $request |
||
38 | * @param HttpResponseInterface $response |
||
39 | * @param array $options |
||
40 | * |
||
41 | * @return HttpResponseInterface |
||
42 | */ |
||
43 | 1 | public function applyResponse(HttpRequestInterface $request, HttpResponseInterface $response, array $options) |
|
46 | } |
||
47 | } |
||
48 |