Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Definition / Call / DefinitionCall.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\Definition\Call;
12
13 use Behat\Behat\Definition\Definition;
14 use Behat\Gherkin\Node\FeatureNode;
15 use Behat\Gherkin\Node\StepNode;
16 use Behat\Testwork\Environment\Call\EnvironmentCall;
17 use Behat\Testwork\Environment\Environment;
18
19 /**
20  * Enhances environment call with definition information.
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 final class DefinitionCall extends EnvironmentCall
25 {
26     /**
27      * @var FeatureNode
28      */
29     private $feature;
30     /**
31      * @var StepNode
32      */
33     private $step;
34
35     /**
36      * Initializes definition call.
37      *
38      * @param Environment  $environment
39      * @param FeatureNode  $feature
40      * @param StepNode     $step
41      * @param Definition   $definition
42      * @param array        $arguments
43      * @param null|integer $errorReportingLevel
44      */
45     public function __construct(
46         Environment $environment,
47         FeatureNode $feature,
48         StepNode $step,
49         Definition $definition,
50         array $arguments,
51         $errorReportingLevel = null
52     ) {
53         parent::__construct($environment, $definition, $arguments, $errorReportingLevel);
54
55         $this->feature = $feature;
56         $this->step = $step;
57     }
58
59     /**
60      * Returns step feature node.
61      *
62      * @return FeatureNode
63      */
64     public function getFeature()
65     {
66         return $this->feature;
67     }
68
69     /**
70      * Returns definition step node.
71      *
72      * @return StepNode
73      */
74     public function getStep()
75     {
76         return $this->step;
77     }
78 }