Copied!

EventSourceInterface

EventSourceInterface.php : 13

Methods

publicgetCount()

EventSourceInterface.php : 29

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 : 36

Returns events matching given $query.

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

Parameters

Name Type Default value Description
$query EventQuery - -

Return values

array<string|int, Event>

publicloadEvents()

EventSourceInterface.php : 24

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>