4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Definition\Call;
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;
20 * Enhances environment call with definition information.
22 * @author Konstantin Kudryashov <ever.zet@gmail.com>
24 final class DefinitionCall extends EnvironmentCall
36 * Initializes definition call.
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
45 public function __construct(
46 Environment $environment,
49 Definition $definition,
51 $errorReportingLevel = null
53 parent::__construct($environment, $definition, $arguments, $errorReportingLevel);
55 $this->feature = $feature;
60 * Returns step feature node.
64 public function getFeature()
66 return $this->feature;
70 * Returns definition step node.
74 public function getStep()