Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Specification / NoSpecificationsIterator.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
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\Specification;
12
13 use Behat\Testwork\Suite\Suite;
14 use EmptyIterator;
15
16 /**
17  * Represents empty specification iterator.
18  *
19  * Return an instance of this class from locator if no specifications are found.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 final class NoSpecificationsIterator extends EmptyIterator implements SpecificationIterator
24 {
25     /**
26      * @var Suite
27      */
28     private $suite;
29
30     /**
31      * Initializes iterator.
32      *
33      * @param Suite $suite
34      */
35     public function __construct(Suite $suite)
36     {
37         $this->suite = $suite;
38     }
39
40     /**
41      * Returns suite that was used to load subjects.
42      *
43      * @return Suite
44      */
45     public function getSuite()
46     {
47         return $this->suite;
48     }
49 }