Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class AbstractWriter implements WriterInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var PrinterInterface |
||
12 | */ |
||
13 | protected $printer; |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public function setPrinter(PrinterInterface $printer) |
||
19 | { |
||
20 | $this->printer = $printer; |
||
21 | return $this; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param NodeInterface|null $node |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function printNode(?NodeInterface $node): string |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param array $nodes |
||
35 | * @return array |
||
36 | */ |
||
37 | protected function printNodes(array $nodes): array |
||
44 |