EventSourceInterface
EventSourceInterface.php
:
22
Interface
Events of a given type have to be provided by a single event source, ordered as defined by {@see EventOrder}.
With a query cursor, only events coming after it in that order are counted and returned (see CursorDateRange).
getEvents() returns the full query count unless fewer events match, otherwise the next page skips events.
Methods¶
getCount()
¶
EventSourceInterface.php
:
38
Returns the number of events matching given $query.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | EventQuery | - | - |
Return values
int
getEvents()
¶
EventSourceInterface.php
:
45
Returns events matching given $query.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | EventQuery | - | - |
Return values
iterable<string|int, Event>
loadEvents()
¶
EventSourceInterface.php
:
33
Bulk-load Events with given id's.
|
|
|
Impl. should skip not relevant and erroneous ids.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $eventIds | array<string|int, string> | - | - |
Return values
array<string|int, Event>