Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class PsrHttpMessageBridgePsrResponseTransformer implements PsrResponseTransformer |
||
14 | { |
||
15 | private HttpMessageFactoryInterface $httpMessageFactory; |
||
16 | private HttpFoundationFactoryInterface $httpFoundationFactory; |
||
17 | |||
18 | public function __construct( |
||
19 | HttpMessageFactoryInterface $httpMessageFactory, |
||
20 | HttpFoundationFactoryInterface $httpFoundationFactory |
||
21 | ) { |
||
22 | $this->httpMessageFactory = $httpMessageFactory; |
||
23 | $this->httpFoundationFactory = $httpFoundationFactory; |
||
24 | } |
||
25 | |||
26 | public function toPsrResponse(SymfonyResponse $symfonyResponse): ResponseInterface |
||
29 | } |
||
30 | |||
31 | public function fromPsrResponse(ResponseInterface $response): SymfonyResponse |
||
36 |