class CrossJoinSequence extends Sequence

Properties

protected array $sequence

The sequence of return values.

from  Sequence
int $count

The count of the sequence items.

from  Sequence
int $index

The current index of the sequence iteration.

from  Sequence

Methods

__construct(array ...$sequences)

Create a new cross join sequence instance.

int
count()

Get the current count of the sequence items.

from  Sequence
mixed
__invoke(array|Model $attributes = [], Model|null $parent = null)

Get the next value in the sequence.

from  Sequence

Details

at line 14
__construct(array ...$sequences)

Create a new cross join sequence instance.

Parameters

array ...$sequences

in Sequence at line 39
int count()

Get the current count of the sequence items.

Return Value

int

in Sequence at line 49
mixed __invoke(array|Model $attributes = [], Model|null $parent = null)

Get the next value in the sequence.

Parameters

array|Model $attributes
Model|null $parent

Return Value

mixed