1 | <?php |
||
10 | class XmlWriter implements WriterInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \DOMDocument |
||
14 | */ |
||
15 | private $xml; |
||
16 | private $filename; |
||
17 | |||
18 | /** |
||
19 | * @var \DOMNode |
||
20 | */ |
||
21 | private $rootNode; |
||
22 | |||
23 | private $rowNodeName; |
||
24 | private $rootNodeName; |
||
25 | |||
26 | 1 | public function __construct(\SplFileObject $file, $rowNodeName = 'node', $rootNodeName = 'root') |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 1 | public function prepare() |
|
44 | |||
45 | /** |
||
46 | * (non-PHPdoc). |
||
47 | * |
||
48 | * @see \Ddeboer\DataImport\Writer\WriterInterface::writeItem() |
||
49 | */ |
||
50 | 1 | public function writeItem(array $item) |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 1 | public function finish() |
|
85 | } |
||
86 |