Copied!

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

publicgetCount()

EventSourceInterface.php : 38

Returns the number of events matching given $query.

public getCount(EventQuery $query) : int

Parameters

Name Type Default value Description
$query EventQuery - -

Return values

int

publicgetEvents()

EventSourceInterface.php : 45

Returns events matching given $query.

public getEvents(EventQuery $query) : iterable<string|int, Event>

Parameters

Name Type Default value Description
$query EventQuery - -

Return values

iterable<string|int, Event>

publicloadEvents()

EventSourceInterface.php : 33

Bulk-load Events with given id's.

public loadEvents(array<string|int, string> $eventIds) : array<string|int, Event>

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>