Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 7 | ||
Bugs | 1 | Features | 3 |
1 | <?php |
||
23 | public function __construct( |
||
24 | Iterator $origin, |
||
25 | AddingIterator $target |
||
26 | ) { |
||
27 | parent::__construct( |
||
28 | /** @phpstan-ignore-next-line */ |
||
29 | new ContextVeil( |
||
30 | $target, |
||
31 | new ClosureReaction( |
||
32 | fn (AddingIterator $stored) => (new ValidTernary( |
||
33 | $origin, |
||
34 | function (Iterator $source) use ($stored) { |
||
35 | $temp = $stored->from($source); |
||
36 | $source->next(); |
||
37 | return $temp; |
||
38 | }, |
||
39 | fn () => $stored |
||
40 | ))->value() |
||
41 | ) |
||
46 |