Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class HtmlNormalizer extends AbstractNormalizer |
||
8 | { |
||
9 | private bool $encode = true; |
||
10 | private int $flags = \ENT_QUOTES; |
||
11 | |||
12 | /** |
||
13 | * Sets whether the data should HTML encoded or returned as raw HTML. Defaults to true. |
||
14 | */ |
||
15 | public function encode(bool $encode): self |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Sets the flags that are passed to htmlentities and html_entity_decode. Defaults to ENT_QUOTES. |
||
24 | */ |
||
25 | public function flags(int $flags): self |
||
30 | } |
||
31 | |||
32 | protected function getNormalizedValue(string $value): string |
||
37 |