Copied!

CursorDateRange

CursorDateRange.php : 23
Final

Date range of events after the query cursor, for event sources ordering events of the same second by integer id.

Events scheduled at the start of the date range come after the cursor only if their id is greater than the since id.

Methods

public__construct()

CursorDateRange.php : 29
public __construct(DateRange $dateRange[, int|null $sinceId = null ])

Parameters

Name Type Default value Description
$dateRange DateRange - -
$sinceId int|null null -

publicfromQuery()

CursorDateRange.php : 55

Returns the date range of events of the given type which come after the query cursor.

public static fromQuery(EventQuery $query, string $typeIdentifier, callable(Cursor): Array $getCursorEventId) : self

Parameters

Name Type Default value Description
$query EventQuery - -
$typeIdentifier string - -
$getCursorEventId callable(Cursor): Array -

returns the id of the event pointed by a cursor of the given type

Return values

self

publicgetDateRange()

CursorDateRange.php : 37
public getDateRange() : DateRange

Return values

DateRange

publicgetSinceId()

CursorDateRange.php : 45

Returns the id after which events scheduled at the start of the date range are taken into account, or null.

public getSinceId() : int|null

Return values

int|null