Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class AbstractRenderer implements RendererInterface |
||
17 | { |
||
18 | /** |
||
19 | * Container element used to inject dump into, usually pre elemnt with some styling. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $body = '%s'; |
||
24 | |||
25 | /** |
||
26 | * Default indent string. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $indent = ' '; |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function wrapContent(string $body): string |
||
36 | { |
||
37 | return sprintf($this->body, $body); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function indent(int $level): string |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function escapeStrings(): bool |
||
58 | } |
||
59 | } |
||
60 |