Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / BeforeFeatureTested.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
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\Behat\EventDispatcher\Event;
12
13 use Behat\Gherkin\Node\FeatureNode;
14 use Behat\Testwork\Environment\Environment;
15 use Behat\Testwork\EventDispatcher\Event\BeforeTested;
16
17 /**
18  * Represents an event before feature tested.
19  *
20  * @author Konstantin Kudryashov <ever.zet@gmail.com>
21  */
22 final class BeforeFeatureTested extends FeatureTested implements BeforeTested
23 {
24     /**
25      * @var FeatureNode
26      */
27     private $feature;
28
29     /**
30      * Initializes event.
31      *
32      * @param Environment $env
33      * @param FeatureNode $feature
34      */
35     public function __construct(Environment $env, FeatureNode $feature)
36     {
37         parent::__construct($env);
38
39         $this->feature = $feature;
40     }
41
42     /**
43      * Returns feature.
44      *
45      * @return FeatureNode
46      */
47     public function getFeature()
48     {
49         return $this->feature;
50     }
51 }