You are viewing an older version of the documentation. For the latest, please visit master documentation.

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 array
public

count ( ) : int

Get the current count of the sequence items.

public

__invoke ( ) : mixed

Get the next value in the sequence.