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

void
__construct(mixed ...$sequence)

Create a new sequence instance.

int
count()

Get the current count of the sequence items.

mixed
__invoke()

Get the next value in the sequence.

Details

void __construct(mixed ...$sequence)

Create a new sequence instance.

Parameters

mixed ...$sequence

Return Value

void

int count()

Get the current count of the sequence items.

Return Value

int

mixed __invoke()

Get the next value in the sequence.

Return Value

mixed

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.