class Sequence (View source)

Properties

protected array $sequence The sequence of return values.
protected int $count The count of the sequence items.
protected int $index The current index of the sequence.

Methods

void
__construct(array ...$sequence)

Create a new sequence instance.

mixed
__invoke()

Get the next value in the sequence.

Details

void __construct(array ...$sequence)

Create a new sequence instance.

Parameters

array ...$sequence

Return Value

void

mixed __invoke()

Get the next value in the sequence.

Return Value

mixed