| Total Complexity | 2 |
| Total Lines | 21 |
| 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 | public function __construct(JsonSerializer $jsonSerializer) |
||
| 24 | } |
||
| 25 | |||
| 26 | public function format(WebResponse $webResponse): ResponseInterface |
||
| 35 |