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¶
__construct()
¶
CursorDateRange.php
:
29
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $dateRange | DateRange | - | - |
| $sinceId | int|null | null | - |
fromQuery()
¶
CursorDateRange.php
:
55
Returns the date range of events of the given type which come after the query cursor.
|
|
|
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
getDateRange()
¶
CursorDateRange.php
:
37
|
|
|
Return values
getSinceId()
¶
CursorDateRange.php
:
45
Returns the id after which events scheduled at the start of the date range are taken into account, or null.
|
|
|
Return values
int|null