Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Context / Argument / NullFactory.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\Argument;
12
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Suite\Suite;
15
16 /**
17  * NoOp factory. Always returns zero resolvers.
18  *
19  * @see ContextEnvironmentHandler
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 final class NullFactory implements ArgumentResolverFactory, SuiteScopedResolverFactory
24 {
25     /**
26      * {@inheritdoc}
27      */
28     public function generateArgumentResolvers(Suite $suite)
29     {
30         return array();
31     }
32
33     /**
34      * {@inheritdoc}
35      */
36     public function createArgumentResolvers(Environment $environment)
37     {
38         return array();
39     }
40 }