Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / AfterSuiteSetup.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\Testwork\EventDispatcher\Event;
12
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Specification\SpecificationIterator;
15 use Behat\Testwork\Tester\Setup\Setup;
16
17 /**
18  * Represents an event right after a suite setup.
19  *
20  * @author Konstantin Kudryashov <ever.zet@gmail.com>
21  */
22 final class AfterSuiteSetup extends SuiteTested implements AfterSetup
23 {
24     /**
25      * @var SpecificationIterator
26      */
27     private $iterator;
28     /**
29      * @var Setup
30      */
31     private $setup;
32
33     /**
34      * Initializes event.
35      *
36      * @param Environment           $env
37      * @param SpecificationIterator $iterator
38      * @param Setup                 $setup
39      */
40     public function __construct(Environment $env, SpecificationIterator $iterator, Setup $setup)
41     {
42         parent::__construct($env);
43
44         $this->iterator = $iterator;
45         $this->setup = $setup;
46     }
47
48     /**
49      * Returns specification iterator.
50      *
51      * @return SpecificationIterator
52      */
53     public function getSpecificationIterator()
54     {
55         return $this->iterator;
56     }
57
58     /**
59      * Returns current test setup.
60      *
61      * @return Setup
62      */
63     public function getSetup()
64     {
65         return $this->setup;
66     }
67 }