Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 16 | ||
Bugs | 3 | Features | 6 |
1 | <?php |
||
15 | final class SavingIterator extends IteratorEnvelope |
||
16 | { |
||
17 | /** |
||
18 | * Ctor. |
||
19 | * |
||
20 | * @phpstan-param Iterator<TKey, TValue>|Closure():Generator<TKey, TValue, void, void> $origin |
||
21 | * @phpstan-param AddingIterator<TKey, TValue> $target |
||
22 | * @param Iterator|Closure $origin original iterator. |
||
23 | * @param AddingIterator $target iterator to which the values are saved. |
||
24 | */ |
||
25 | public function __construct( |
||
53 |