final | |
|---|---|
readonly | |
extends |
PaginatedResult<array{_meta?: template-type<MetaObject, Arrayable, 'T'>, resultType: non-empty-string, resources: list<template-type<Resource, Arrayable, 'T'>>, nextCursor?: non-empty-string, ttlMs: int, cacheScope: value-of<CacheScope>}> |
implements |
ServerResult |
The result returned by the server for a resources/list request.
| Methods | ||
|---|---|---|
public
|
__construct(
list<Resource> $resources,
int $ttlMs,
CacheScope $cacheScope,
?Cursor $nextCursor = null,
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
protected
|
getResultType(): string
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Result |
|---|
jsonSerialize(), |
| Properties | |||
|---|---|---|---|
public
|
list<Resource>
|
$resources
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result\PaginatedResult |
|---|
$nextCursor |
| Properties inherited from Nexus\Mcp\Core\Schema\Result\CacheableResult |
|---|
$ttlMs, $cacheScope |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |