Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class ResourceIteratorAggregate implements IteratorAggregate |
||
22 | { |
||
23 | /** |
||
24 | * @var resource |
||
25 | */ |
||
26 | private $resource; |
||
27 | |||
28 | /** |
||
29 | * @param false|resource $resource |
||
30 | */ |
||
31 | 5 | public function __construct($resource, private bool $closeResource = false) |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return Generator<int, string> |
||
42 | */ |
||
43 | 3 | public function getIterator(): Generator |
|
59 |