| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class HtmlResponseFormatter implements ResponseFormatterInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string the Content-Type header for the response |
||
| 14 | */ |
||
| 15 | private string $contentType = 'text/html'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string the XML encoding. |
||
| 19 | */ |
||
| 20 | private string $encoding = 'UTF-8'; |
||
| 21 | |||
| 22 | public function format(Response $deferredResponse): ResponseInterface |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setEncoding(string $encoding): void |
||
| 36 |