Documentation

ObjectSet
in package
implements IteratorAggregate

Tags
phpstan-template

T of object

phpstan-implements

\IteratorAggregate<int, T>

Interfaces, Classes, Traits and Enums

IteratorAggregate

Table of Contents

$objects  : array<string|int, mixed>
add()  : void
clear()  : void
contains()  : bool
getIterator()  : ArrayIterator
remove()  : void
toArray()  : array<string|int, object>

Properties

$objects

private array<string|int, mixed> $objects = []
Tags
phpstan-var

array<int, T>

Methods

add()

public add(object ...$objects) : void
Parameters
$objects : object
Tags
phpstan-param

T ...$objects

Return values
void

clear()

public clear() : void
Return values
void

contains()

public contains(object $object) : bool
Parameters
$object : object
Return values
bool

getIterator()

public getIterator() : ArrayIterator
Tags
phpstan-return

\ArrayIterator<int, T>

Return values
ArrayIterator

remove()

public remove(object ...$objects) : void
Parameters
$objects : object
Tags
phpstan-param

T ...$objects

Return values
void

toArray()

public toArray() : array<string|int, object>
Tags
phpstan-return

array<int, T>

Return values
array<string|int, object>

Search results