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\Hook\Scope;
13 use Behat\Gherkin\Node\FeatureNode;
14 use Behat\Testwork\Environment\Environment;
15 use Behat\Testwork\Suite\Suite;
18 * Represents a BeforeFeature hook scope.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 final class BeforeFeatureScope implements FeatureScope
36 * @param Environment $env
37 * @param FeatureNode $feature
39 public function __construct(Environment $env, FeatureNode $feature)
41 $this->environment = $env;
42 $this->feature = $feature;
46 * Returns hook scope name.
50 public function getName()
60 public function getSuite()
62 return $this->environment->getSuite();
66 * Returns hook environment.
70 public function getEnvironment()
72 return $this->environment;
76 * Returns scope feature.
80 public function getFeature()
82 return $this->feature;