Documentation

ConstantCollection
in package
implements Countable, IteratorAggregate

FinalYes
Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

psalm-immutable
template-implements

IteratorAggregate<int, Constant>

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
psalm-var

list<Constant>

Methods

asArray()

public asArray() : array<string|int, mixed>
Tags
psalm-return

list<Constant>

Return values
array<string|int, mixed>

fromArray()

public static fromArray(array<string|int, mixed> $constants) : self
Parameters
$constants : array<string|int, mixed>
Tags
psalm-param

list<Constant> $constants

Return values
self

        
On this page

Search results