| 1 | <?php namespace BuildR\TestTools\DataSetLoader\XML; |
||
| 7 | class XMLDataSetLoader implements DataSetLoaderInterface { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @type \BuildR\TestTools\DataSetLoader\XML\Parser\XMLDefinitionParserInterface |
||
| 11 | */ |
||
| 12 | protected $parser; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @type string |
||
| 16 | */ |
||
| 17 | protected $file; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @type \SimpleXMLElement |
||
| 21 | */ |
||
| 22 | protected $xml; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritDoc |
||
| 26 | */ |
||
| 27 | public function __construct($file, XMLDefinitionParserInterface $parser = NULL) { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the current XML definition parser |
||
| 38 | * |
||
| 39 | * @return \BuildR\TestTools\DataSetLoader\XML\Parser\XMLDefinitionParserInterface |
||
| 40 | */ |
||
| 41 | public function getParser() { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function load() { |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function getResult() { |
||
| 60 | |||
| 61 | |||
| 62 | } |
||
| 63 |