Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Hook / Call / BeforeStep.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\Hook\Call;
12
13 use Behat\Behat\Hook\Scope\StepScope;
14
15 /**
16  * Represents a BeforeStep hook.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 final class BeforeStep extends RuntimeStepHook
21 {
22     /**
23      * Initializes hook.
24      *
25      * @param null|string $filterString
26      * @param callable    $callable
27      * @param null|string $description
28      */
29     public function __construct($filterString, $callable, $description = null)
30     {
31         parent::__construct(StepScope::BEFORE, $filterString, $callable, $description);
32     }
33
34     /**
35      * {@inheritdoc}
36      */
37     public function getName()
38     {
39         return 'BeforeStep';
40     }
41 }