Basic event collection.
Juste stores event as an array, and iterate over the array for retrieving.
Implements:
CollectionInterface
| __construct( array $events = array()) | ||
|
add( EventInterface $event)
Adds an event to the collection |
||
|
remove( EventInterface $event)
Removes an event from the collection |
||
| array<EventInterface> |
all()
Return all events; |
|
| bool |
has( mixed $index)
Returns if there is events corresponding to $index period |
|
| array<EventInterface> |
find( mixed $index)
Find events in the collection |
|
| int | count() |
public
__construct( array $events = array())
| Parameters |
|
|||
|---|---|---|---|---|
public
add( EventInterface $event)
public
remove( EventInterface $event)
public array<EventInterface>
all()
Return all events;
| Return Value |
|
|---|
public bool
has( mixed $index)
Returns if there is events corresponding to $index period
| Parameters |
|
|||
|---|---|---|---|---|
| Return Value |
|
|||
public array<EventInterface>
find( mixed $index)
Find events in the collection
| Parameters |
|
|||
|---|---|---|---|---|
| Return Value |
|
|||
public int
count()
| Return Value |
|
|---|