| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class JsonResponseFormatter implements ResponseFormatterInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string the Content-Type header for the response |
||
| 16 | */ |
||
| 17 | private string $contentType = 'application/json'; |
||
| 18 | |||
| 19 | private JsonSerializer $jsonSerializer; |
||
| 20 | |||
| 21 | private StreamFactoryInterface $streamFactory; |
||
| 22 | |||
| 23 | public function __construct( |
||
| 29 | } |
||
| 30 | |||
| 31 | public function format(Response $deferredResponse): ResponseInterface |
||
| 40 |