Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function __invoke(): Closure |
|
25 | { |
||
26 | 3 | return |
|
27 | /** |
||
28 | * @return Closure(iterable<TKey, T>): Generator<TKey, T> |
||
29 | */ |
||
30 | 3 | static fn (CacheItemPoolInterface $cache): Closure => |
|
31 | /** |
||
32 | * @param iterable<TKey, T> $iterable |
||
33 | * |
||
34 | * @return Generator<TKey, T> |
||
35 | */ |
||
36 | 3 | static fn (iterable $iterable): Generator => yield from new PsrCacheIterator((new IterableIteratorAggregate($iterable))->getIterator(), $cache); |
|
37 | } |
||
39 |