4 * This file is part of the Behat Testwork.
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\Call;
13 use Behat\Testwork\Environment\Call\EnvironmentCall;
14 use Behat\Testwork\Hook\Hook;
15 use Behat\Testwork\Hook\Scope\HookScope;
18 * Represents a hook call.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 final class HookCall extends EnvironmentCall
30 * Initializes hook call.
32 * @param HookScope $scope
34 * @param null|integer $errorReportingLevel
36 public function __construct(HookScope $scope, Hook $hook, $errorReportingLevel = null)
38 parent::__construct($scope->getEnvironment(), $hook, array($scope), $errorReportingLevel);
40 $this->scope = $scope;
48 public function getScope()