Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Context / ContextClass / ClassResolver.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\Context\ContextClass;
12
13 use Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler;
14
15 /**
16  * Resolves arbitrary context strings into a context classes.
17  *
18  * @see ContextEnvironmentHandler
19  *
20  * @author Konstantin Kudryashov <ever.zet@gmail.com>
21  */
22 interface ClassResolver
23 {
24     /**
25      * Checks if resolvers supports provided class.
26      *
27      * @param string $contextString
28      *
29      * @return Boolean
30      */
31     public function supportsClass($contextString);
32
33     /**
34      * Resolves context class.
35      *
36      * @param string $contextClass
37      *
38      * @return string
39      */
40     public function resolveClass($contextClass);
41 }