1 | <?php namespace BuildR\TestTools\DataSetLoader\XML; |
||
20 | class XMLDataSetLoader implements DataSetLoaderInterface { |
||
21 | |||
22 | /** |
||
23 | * @type \BuildR\TestTools\DataSetLoader\XML\Parser\XMLDefinitionParserInterface |
||
24 | */ |
||
25 | protected $parser; |
||
26 | |||
27 | /** |
||
28 | * @type string |
||
29 | */ |
||
30 | protected $file; |
||
31 | |||
32 | /** |
||
33 | * @type \SimpleXMLElement |
||
34 | */ |
||
35 | protected $xml; |
||
36 | |||
37 | /** |
||
38 | * XMLDataSetLoader constructor. |
||
39 | * |
||
40 | * @param string $file |
||
41 | * @param \BuildR\TestTools\DataSetLoader\XML\Parser\XMLDefinitionParserInterface|NULL $parser |
||
42 | */ |
||
43 | 5 | public function __construct($file, XMLDefinitionParserInterface $parser = NULL) { |
|
53 | |||
54 | /** |
||
55 | * Returns the current XML definition parser |
||
56 | * |
||
57 | * @return \BuildR\TestTools\DataSetLoader\XML\Parser\XMLDefinitionParserInterface |
||
58 | */ |
||
59 | 4 | public function getParser() { |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 5 | public function load() { |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 4 | public function getResult() { |
|
78 | |||
79 | |||
80 | } |
||
81 |