Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Snippet / UndefinedStep.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\Snippet;
12
13 use Behat\Gherkin\Node\StepNode;
14 use Behat\Testwork\Environment\Environment;
15
16 /**
17  * Represents an undefined step in a specific environment.
18  *
19  * @author Konstantin Kudryashov <ever.zet@gmail.com>
20  */
21 final class UndefinedStep
22 {
23     /**
24      * @var Environment
25      */
26     private $environment;
27     /**
28      * @var StepNode
29      */
30     private $step;
31
32     /**
33      * Initializes undefined step.
34      *
35      * @param Environment $environment
36      * @param StepNode    $step
37      */
38     public function __construct(Environment $environment, StepNode $step)
39     {
40         $this->environment = $environment;
41         $this->step = $step;
42     }
43
44     /**
45      * Returns environment that needs this step.
46      *
47      * @return Environment
48      */
49     public function getEnvironment()
50     {
51         return $this->environment;
52     }
53
54     /**
55      * Returns undefined step node.
56      *
57      * @return StepNode
58      */
59     public function getStep()
60     {
61         return $this->step;
62     }
63 }