Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / BeforeExerciseCompleted.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
15 /**
16  * Represents an event in which exercise is prepared to be executed.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 final class BeforeExerciseCompleted extends ExerciseCompleted implements BeforeTested
21 {
22     /**
23      * @var SpecificationIterator[]
24      */
25     private $specificationIterators;
26
27     /**
28      * Initializes event.
29      *
30      * @param SpecificationIterator[] $specificationIterators
31      */
32     public function __construct(array $specificationIterators)
33     {
34         $this->specificationIterators = $specificationIterators;
35     }
36
37     /**
38      * Returns specification iterators.
39      *
40      * @return SpecificationIterator[]
41      */
42     public function getSpecificationIterators()
43     {
44         return $this->specificationIterators;
45     }
46 }