| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class PsrHttpMessageBridgePsrRequestTransformer implements PsrRequestTransformer |
||
| 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 toPsrRequest(SymfonyRequest $symfonyRequest): ServerRequestInterface |
||
| 27 | { |
||
| 28 | return $this->httpMessageFactory->createRequest($symfonyRequest); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function fromPsrRequest(ServerRequestInterface $request): SymfonyRequest |
||
| 34 | } |
||
| 35 | } |
||
| 36 |