| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function format(DataResponse $dataResponse): ResponseInterface |
||
| 22 | { |
||
| 23 | $jsonSerializer = new JsonSerializer($this->options); |
||
| 24 | $content = $jsonSerializer->serialize($dataResponse->getData()); |
||
| 25 | $response = $dataResponse->getResponse(); |
||
| 26 | $response->getBody()->write($content); |
||
| 27 | |||
| 28 | return $response->withHeader('Content-Type', $this->contentType); |
||
| 29 | } |
||
| 45 |