VariableCollectionIterator
in package
implements
Countable, Iterator
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- Iterator
Properties
- $position : int
- $variables : array<string|int, mixed>
Methods
- __construct() : mixed
- count() : int
- current() : Variable
- key() : int
- next() : void
- rewind() : void
- valid() : bool
Properties
$position
private
int
$position
= 0
$variables read-only
private
array<string|int, mixed>
$variables
Tags
Methods
__construct()
public
__construct(VariableCollection $variables) : mixed
Parameters
- $variables : VariableCollection
count()
public
count() : int
Return values
intcurrent()
public
current() : Variable
Return values
Variablekey()
public
key() : int
Return values
intnext()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool