Copied!

InMemoryEventSource

InMemoryEventSource.php : 21

Methods

public__construct()

InMemoryEventSource.php : 25
public __construct(EventCollection $events)

Parameters

Name Type Default value Description
$events EventCollection - -

publicgetCount()

InMemoryEventSource.php : 30

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()

InMemoryEventSource.php : 44

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()

InMemoryEventSource.php : 35

Bulk-load Events with given id's.

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

Impl. should skip not relevant and erroneous ids.

Parameters

Name Type Default value Description
$eventIds array<string|int, mixed> - -

Return values

array<string|int, Event>