Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Environment / Reader / EnvironmentReader.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
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\Testwork\Environment\Reader;
12
13 use Behat\Testwork\Call\Callee;
14 use Behat\Testwork\Environment\Environment;
15 use Behat\Testwork\Environment\EnvironmentManager;
16
17 /**
18  * Reads callees from a provided environment.
19  *
20  * @see EnvironmentManager
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 interface EnvironmentReader
25 {
26     /**
27      * Checks if reader supports an environment.
28      *
29      * @param Environment $environment
30      *
31      * @return Boolean
32      */
33     public function supportsEnvironment(Environment $environment);
34
35     /**
36      * Reads callees from an environment.
37      *
38      * @param Environment $environment
39      *
40      * @return Callee[]
41      */
42     public function readEnvironmentCallees(Environment $environment);
43 }