1 | <?php namespace BuildR\TestTools\DataSetLoader\YAML; |
||
20 | class YAMLDataSetLoader implements DataSetLoaderInterface { |
||
21 | |||
22 | /** |
||
23 | * @type string |
||
24 | */ |
||
25 | protected $file; |
||
26 | |||
27 | /** |
||
28 | * @type \BuildR\TestTools\DataSetLoader\YAML\Parser\YAMLParserInterface |
||
29 | */ |
||
30 | protected $parser; |
||
31 | |||
32 | /** |
||
33 | * @type string|NULL |
||
34 | */ |
||
35 | private $dataSetName; |
||
36 | |||
37 | /** |
||
38 | * @type array |
||
39 | */ |
||
40 | private $result; |
||
41 | |||
42 | /** |
||
43 | * YAMLDataSetLoader constructor. |
||
44 | * |
||
45 | * @param string $file The laoded YAML file absolute location |
||
46 | * @param \BuildR\TestTools\DataSetLoader\YAML\Parser\YAMLParserInterface $parser |
||
47 | */ |
||
48 | public function __construct($file, YAMLParserInterface $parser = NULL) { |
||
56 | |||
57 | /** |
||
58 | * Set the data set name that returned in getResult. If no specific DataSet are |
||
59 | * selected, the first DataSet are selected. |
||
60 | * |
||
61 | * @param string $dataSetName |
||
62 | * |
||
63 | * @return \BuildR\TestTools\DataSetLoader\YAML\YAMLDataSetLoader |
||
64 | */ |
||
65 | public function setDataSet($dataSetName) { |
||
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | public function load() { |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | public function getResult() { |
||
91 | |||
92 | } |
||
93 |