Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / HelperContainer / Environment / ServiceContainerEnvironment.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\HelperContainer\Environment;
12
13 use Behat\Testwork\Environment\Environment;
14 use Psr\Container\ContainerInterface;
15
16 /**
17  * Represents test environment based on a service locator pattern.
18  *
19  * @see ContextEnvironmentHandler
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface ServiceContainerEnvironment extends Environment
24 {
25     /**
26      * Sets/unsets service container for the environment.
27      *
28      * @param ContainerInterface|null $container
29      */
30     public function setServiceContainer(ContainerInterface $container = null);
31
32     /**
33      * Returns environment service container if set.
34      *
35      * @return null|ContainerInterface
36      */
37     public function getServiceContainer();
38 }