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\Call\RuntimeCallee;
14 use Behat\Testwork\Hook\Hook;
17 * Represents a hook executed during the execution runtime.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 abstract class RuntimeHook extends RuntimeCallee implements Hook
31 * @param string $scopeName
32 * @param callable $callable
33 * @param null|string $description
35 public function __construct($scopeName, $callable, $description = null)
37 $this->scopeName = $scopeName;
39 parent::__construct($callable, $description);
45 public function getScopeName()
47 return $this->scopeName;
53 public function __toString()
55 return $this->getName();