<TEntry is object>abstract |
|---|
readonly |
Shared cursor scaffolding for in-memory per-feature stores.
| Methods | ||
|---|---|---|
public
|
__construct(array<non-empty-string, TEntry> $entries = [], int $pageSize = self::DEFAULT_PAGE_SIZE)
|
# |
final
protected
|
paginate<TItem is object, TResult is object>(
?Cursor $cursor,
Closure(TEntry): TItem $transform,
Closure(list<TItem>, ?Cursor): TResult $resultBuilder,
): TResult
|
# |
| Constants | |||
|---|---|---|---|
public
|
int |
DEFAULT_PAGE_SIZE = 50
|
# |
protected
|
string |
STORE_LABEL = 'Store'
|
# |
| Properties | |||
|---|---|---|---|
protected
|
array<non-empty-string, TEntry>
|
$entries
|
# |
protected
|
int
|
$pageSize
|
# |