ComponentsCollection implements IteratorAggregate
Table of Contents
Interfaces
- IteratorAggregate
Methods
- __construct() : mixed
- ComponentsCollection constructor.
- add() : $this
- count() : int
- createInstance() : ComponentsCollection
- getIterator() : ArrayIterator
- hasOneCalendarComponent() : bool
- hasOneComponent() : bool
Methods
__construct()
ComponentsCollection constructor.
public
__construct([array<string|int, ParserComponent>|null $collection = null ]) : mixed
Parameters
- $collection : array<string|int, ParserComponent>|null = null
add()
public
add(ParserComponent|null $component) : $this
Parameters
- $component : ParserComponent|null
Return values
$thiscount()
public
count() : int
Return values
intcreateInstance()
public
static createInstance([array<string|int, ParserComponent>|null $collection = null ]) : ComponentsCollection
Parameters
- $collection : array<string|int, ParserComponent>|null = null
Return values
ComponentsCollectiongetIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorhasOneCalendarComponent()
public
hasOneCalendarComponent() : bool
Return values
boolhasOneComponent()
public
hasOneComponent() : bool