class
Illuminate
/
Database
/
Eloquent
/
Factories
/
Sequence
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Sequence
Implements
Properties
protected
$sequence array
The sequence of return values.
Default: null
public
$count int
The count of the sequence items.
Default: null
public
$index int
The current index of the sequence iteration.
Methods
public
__construct ( $sequence ) : void
Create a new sequence instance.
Parameters
- $sequence mixed
public
count ( ) : int
Get the current count of the sequence items.
public
__invoke ( ) : mixed
Get the next value in the sequence.