1 | <?php |
||
23 | class DirectoryLoader extends AbstractFileLoader |
||
24 | { |
||
25 | protected $gherkin; |
||
26 | |||
27 | /** |
||
28 | * Initializes loader. |
||
29 | * |
||
30 | * @param Gherkin $gherkin Gherkin manager |
||
31 | */ |
||
32 | 4 | public function __construct(Gherkin $gherkin) |
|
36 | |||
37 | /** |
||
38 | * Checks if current loader supports provided resource. |
||
39 | * |
||
40 | * @param mixed $path Resource to load |
||
41 | * |
||
42 | * @return Boolean |
||
43 | */ |
||
44 | 1 | public function supports($path) |
|
49 | |||
50 | /** |
||
51 | * Loads features from provided resource. |
||
52 | * |
||
53 | * @param string $path Resource to load |
||
54 | * |
||
55 | * @return FeatureNode[] |
||
56 | */ |
||
57 | 3 | public function load($path) |
|
80 | } |
||
81 |