Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Definition / Search / SearchEngine.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\Definition\Search;
12
13 use Behat\Behat\Definition\DefinitionFinder;
14 use Behat\Behat\Definition\SearchResult;
15 use Behat\Gherkin\Node\FeatureNode;
16 use Behat\Gherkin\Node\StepNode;
17 use Behat\Testwork\Environment\Environment;
18
19 /**
20  * Searches for a step definition in a specific environment.
21  *
22  * @see DefinitionFinder
23  *
24  * @author Konstantin Kudryashov <ever.zet@gmail.com>
25  */
26 interface SearchEngine
27 {
28     /**
29      * Searches for a step definition.
30      *
31      * @param Environment $environment
32      * @param FeatureNode $feature
33      * @param StepNode    $step
34      *
35      * @return null|SearchResult
36      */
37     public function searchDefinition(Environment $environment, FeatureNode $feature, StepNode $step);
38 }