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