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\Snippet;
13 use Behat\Gherkin\Node\StepNode;
14 use Behat\Testwork\Environment\Environment;
17 * Represents an undefined step in a specific environment.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class UndefinedStep
33 * Initializes undefined step.
35 * @param Environment $environment
36 * @param StepNode $step
38 public function __construct(Environment $environment, StepNode $step)
40 $this->environment = $environment;
45 * Returns environment that needs this step.
49 public function getEnvironment()
51 return $this->environment;
55 * Returns undefined step node.
59 public function getStep()