EventCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
- $events : array<string|int, mixed>
Methods
- add() : void
- asArray() : array<string|int, mixed>
- count() : int
- getIterator() : EventCollectionIterator
- isEmpty() : bool
- isNotEmpty() : bool
Properties
$events
private
array<string|int, mixed>
$events
= []
Tags
Methods
add()
public
add(Event ...$events) : void
Parameters
- $events : Event
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Return values
intgetIterator()
public
getIterator() : EventCollectionIterator
Return values
EventCollectionIteratorisEmpty()
public
isEmpty() : bool
Return values
boolisNotEmpty()
public
isNotEmpty() : bool