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