1 | <?php |
||
9 | final class XmlFormatter implements FormatterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var bool |
||
13 | */ |
||
14 | private $formatOutput; |
||
15 | |||
16 | /** |
||
17 | * @param bool $formatOutput |
||
18 | */ |
||
19 | 1 | public function __construct(bool $formatOutput = false) |
|
23 | |||
24 | /** |
||
25 | * @param array $data |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | 1 | public function format(array $data): string |
|
38 | |||
39 | /** |
||
40 | * @param \DOMDocument $document |
||
41 | * @param \DOMNode $listNode |
||
42 | * @param array $data |
||
43 | */ |
||
44 | 1 | private function dataToNodes(\DOMDocument $document, \DOMNode $listNode, array $data) |
|
57 | } |
||
58 |