Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / BeforeStepTested.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\Gherkin\Node\StepNode;
15 use Behat\Testwork\Environment\Environment;
16 use Behat\Testwork\EventDispatcher\Event\BeforeTested;
17
18 /**
19  * Represents an event before step test.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 final class BeforeStepTested extends StepTested implements BeforeTested
24 {
25     /**
26      * @var FeatureNode
27      */
28     private $feature;
29     /**
30      * @var StepNode
31      */
32     private $step;
33
34     /**
35      * Initializes event.
36      *
37      * @param Environment $env
38      * @param FeatureNode $feature
39      * @param StepNode    $step
40      */
41     public function __construct(Environment $env, FeatureNode $feature, StepNode $step)
42     {
43         parent::__construct($env);
44
45         $this->feature = $feature;
46         $this->step = $step;
47     }
48
49     /**
50      * Returns feature.
51      *
52      * @return FeatureNode
53      */
54     public function getFeature()
55     {
56         return $this->feature;
57     }
58
59     /**
60      * Returns step node.
61      *
62      * @return StepNode
63      */
64     public function getStep()
65     {
66         return $this->step;
67     }
68 }