Sequence
class Sequence implements Countable (View source)
Properties
protected array | $sequence | The sequence of return values. |
|
int | $count | The count of the sequence items. |
|
int | $index | The current index of the sequence iteration. |
Methods
__construct(mixed ...$sequence)
Create a new sequence instance.
int
count()
Get the current count of the sequence items.
Details
__construct(mixed ...$sequence)
Create a new sequence instance.
int
count()
Get the current count of the sequence items.
mixed
__invoke(array<string,mixed> $attributes = [], Model|null $parent = null)
Get the next value in the sequence.