Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
16 | class Highlighter extends Pretty |
||
17 | { |
||
18 | /** @var string Output string */ |
||
19 | protected $out = ''; |
||
20 | |||
21 | public function __toString(): string |
||
22 | { |
||
23 | return $this->highlight(); |
||
24 | } |
||
25 | |||
26 | public function highlight(string $code = null): string |
||
31 | } |
||
32 | |||
33 | protected function reset() |
||
34 | { |
||
35 | $this->out = ''; |
||
36 | } |
||
37 | |||
38 | protected function visit(\DOMNode $el) |
||
51 | } |
||
52 | } |
||
53 |