4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\EventDispatcher\Event;
13 use Behat\Testwork\Specification\SpecificationIterator;
14 use Behat\Testwork\Tester\Setup\Setup;
17 * Represents an event in which exercise is prepared to be executed.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class AfterExerciseSetup extends ExerciseCompleted implements AfterSetup
24 * @var SpecificationIterator[]
26 private $specificationIterators;
35 * @param SpecificationIterator[] $specificationIterators
38 public function __construct(array $specificationIterators, Setup $setup)
40 $this->specificationIterators = $specificationIterators;
41 $this->setup = $setup;
45 * Returns specification iterators.
47 * @return SpecificationIterator[]
49 public function getSpecificationIterators()
51 return $this->specificationIterators;
55 * Returns exercise setup result.
59 public function getSetup()