<out T is Result>final | |
|---|---|
readonly | |
implements |
JsonSerializable, JsonRpcResponse |
A successful (non-error) response to a request.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $id, T $result)
|
# |
public
|
toArray(): array{jsonrpc: '2.0', id: (int|non-empty-string), result: template-type<T, Arrayable, 'T'>}
|
# |
public
|
jsonSerialize(): array{jsonrpc: '2.0', id: (int|non-empty-string), result: (array<string, mixed>|stdClass)}
|
# |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
|
RequestId
|
$id
|
# |
public
|
T
|
$result
|
# |