Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / BeforeExerciseTeardown.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\Result\TestResult;
15
16 /**
17  * Represents an event right before exercise teardown.
18  *
19  * @author Konstantin Kudryashov <ever.zet@gmail.com>
20  */
21 final class BeforeExerciseTeardown extends ExerciseCompleted implements BeforeTeardown
22 {
23     /**
24      * @var SpecificationIterator[]
25      */
26     private $specificationIterators;
27     /**
28      * @var TestResult
29      */
30     private $result;
31
32     /**
33      * Initializes event.
34      *
35      * @param SpecificationIterator[] $specificationIterators
36      * @param TestResult              $result
37      */
38     public function __construct(array $specificationIterators, TestResult $result)
39     {
40         $this->specificationIterators = $specificationIterators;
41         $this->result = $result;
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 test result.
56      *
57      * @return TestResult
58      */
59     public function getTestResult()
60     {
61         return $this->result;
62     }
63 }