b77de0610d05e72a35cb04d5a7e54e259f1c09ba
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / AfterExerciseSetup.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\Specification\SpecificationIterator;
14 use Behat\Testwork\Tester\Setup\Setup;
15
16 /**
17  * Represents an event in which exercise is prepared to be executed.
18  *
19  * @author Konstantin Kudryashov <ever.zet@gmail.com>
20  */
21 final class AfterExerciseSetup extends ExerciseCompleted implements AfterSetup
22 {
23     /**
24      * @var SpecificationIterator[]
25      */
26     private $specificationIterators;
27     /**
28      * @var Setup
29      */
30     private $setup;
31
32     /**
33      * Initializes event.
34      *
35      * @param SpecificationIterator[] $specificationIterators
36      * @param Setup                   $setup
37      */
38     public function __construct(array $specificationIterators, Setup $setup)
39     {
40         $this->specificationIterators = $specificationIterators;
41         $this->setup = $setup;
42     }
43
44     /**
45      * Returns specification iterators.
46      *
47      * @return SpecificationIterator[]
48      */
49     public function getSpecificationIterators()
50     {
51         return $this->specificationIterators;
52     }
53
54     /**
55      * Returns exercise setup result.
56      *
57      * @return Setup
58      */
59     public function getSetup()
60     {
61         return $this->setup;
62     }
63 }