Documentation

VariableCollection
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, Variable>

Table of Contents

Interfaces

Countable
IteratorAggregate

Properties

$variables  : array<string|int, mixed>

Methods

asArray()  : array<string|int, mixed>
count()  : int
fromArray()  : self
getIterator()  : VariableCollectionIterator
__construct()  : mixed

Properties

$variables read-only

private array<string|int, mixed> $variables
Tags
psalm-var

list<Variable>

Methods

asArray()

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

list<Variable>

Return values
array<string|int, mixed>

fromArray()

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

list<Variable> $variables

Return values
self

        
On this page

Search results