Total Complexity | 1 |
Total Lines | 19 |
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. If not set, it will use the value of [[Response::charset]]. |
||
19 | */ |
||
20 | private string $encoding = 'UTF-8'; |
||
21 | |||
22 | public function format(DeferredResponse $response): ResponseInterface |
||
31 |