ConstantCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
- $constants : array<string|int, mixed>
Methods
- asArray() : array<string|int, mixed>
- count() : int
- fromArray() : self
- getIterator() : ConstantCollectionIterator
- __construct() : mixed
Properties
$constants read-only
private
array<string|int, mixed>
$constants
Tags
Methods
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Return values
intfromArray()
public
static fromArray(array<string|int, mixed> $constants) : self
Parameters
- $constants : array<string|int, mixed>
Tags
Return values
selfgetIterator()
public
getIterator() : ConstantCollectionIterator
Return values
ConstantCollectionIterator__construct()
private
__construct(Constant ...$constants) : mixed
Parameters
- $constants : Constant