Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Environment / StaticEnvironment.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;
12
13 use Behat\Testwork\Call\Callee;
14 use Behat\Testwork\Suite\Suite;
15
16 /**
17  * Represents static calls environment.
18  *
19  * @author Konstantin Kudryashov <ever.zet@gmail.com>
20  */
21 class StaticEnvironment implements Environment
22 {
23     /**
24      * @var Suite
25      */
26     private $suite;
27
28     /**
29      * Initializes environment.
30      *
31      * @param Suite $suite
32      */
33     public function __construct(Suite $suite)
34     {
35         $this->suite = $suite;
36     }
37
38     /**
39      * {@inheritdoc}
40      */
41     final public function getSuite()
42     {
43         return $this->suite;
44     }
45
46     /**
47      * {@inheritdoc}
48      */
49     final public function bindCallee(Callee $callee)
50     {
51         return $callee->getCallable();
52     }
53 }