class
Illuminate
/
Database
/
Eloquent
/
Factories
/
Sequence
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.