Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function format(Response $deferredResponse): ResponseInterface |
||
32 | { |
||
33 | $content = $this->jsonSerializer->serialize($deferredResponse->getData()); |
||
34 | $response = $deferredResponse->getResponse(); |
||
35 | $response->getBody()->write($content); |
||
36 | |||
37 | return $response->withHeader('Content-Type', $this->contentType); |
||
38 | } |
||
40 |