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