Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Context / ContextClass / ClassGenerator.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\Suite\Setup\SuiteWithContextsSetup;
14 use Behat\Testwork\Suite\Suite;
15
16 /**
17  * Generates context classes (as a string).
18  *
19  * @see SuiteWithContextsSetup
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface ClassGenerator
24 {
25     /**
26      * Checks if generator supports provided context class.
27      *
28      * @param Suite  $suite
29      * @param string $contextClass
30      *
31      * @return Boolean
32      */
33     public function supportsSuiteAndClass(Suite $suite, $contextClass);
34
35     /**
36      * Generates context class code.
37      *
38      * @param Suite  $suite
39      * @param string $contextClass
40      *
41      * @return string The context class source code
42      */
43     public function generateClass(Suite $suite, $contextClass);
44 }