ConstantCollectionIterator
in package
implements
Iterator
FinalYes
Tags
Table of Contents
Interfaces
- Iterator
Properties
- $constants : array<int, Constant>
- $position : int
Methods
Properties
$constants read-only
private
array<int, Constant>
$constants
$position
private
int
$position
= 0
non-negative-int
Methods
__construct()
public
__construct(ConstantCollection $constants) : mixed
Parameters
- $constants : ConstantCollection
current()
public
current() : Constant
Return values
Constantkey()
public
key() : int
Return values
intnext()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool