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\Testwork\Hook\Scope;
13 use Behat\Testwork\Specification\SpecificationIterator;
14 use Behat\Testwork\Environment\Environment;
17 * Represents a scope for BeforeSuite hook.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class BeforeSuiteScope implements SuiteScope
28 * @var SpecificationIterator
35 * @param Environment $env
36 * @param SpecificationIterator $iterator
38 public function __construct(Environment $env, SpecificationIterator $iterator)
40 $this->environment = $env;
41 $this->iterator = $iterator;
47 public function getName()
55 public function getSuite()
57 return $this->environment->getSuite();
63 public function getEnvironment()
65 return $this->environment;
71 public function getSpecificationIterator()
73 return $this->iterator;