W3cubDocs

/Symfony 4.1

RewindableGenerator

class RewindableGenerator implements IteratorAggregate, Countable

Methods

__construct(callable $generator, int|callable $count)
getIterator()
count()

Details

__construct(callable $generator, int|callable $count)

Parameters

callable $generator
int|callable $count

getIterator()

count()