861332ccc9c83895ffb7a9f6670316a4ff1290bc
[yaffs-website] / vendor / behat / gherkin / src / Behat / Gherkin / Loader / LoaderInterface.php
1 <?php
2
3 /*
4  * This file is part of the Behat Gherkin.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Gherkin\Loader;
12
13 use Behat\Gherkin\Node\FeatureNode;
14
15 /**
16  * Loader interface.
17  *
18  * @author      Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 interface LoaderInterface
21 {
22     /**
23      * Checks if current loader supports provided resource.
24      *
25      * @param mixed $resource Resource to load
26      *
27      * @return Boolean
28      */
29     public function supports($resource);
30
31     /**
32      * Loads features from provided resource.
33      *
34      * @param mixed $resource Resource to load
35      *
36      * @return FeatureNode[]
37      */
38     public function load($resource);
39 }