final | |
---|---|
readonly | |
extends |
Request |
A request that expects a response.
Methods | ||
---|---|---|
public
|
__construct(
non-empty-string $jsonrpc,
RequestId $requestId,
non-empty-string $method,
null|array<string, mixed> $params = null,
)
|
# |
public
|
toArray(
): array{jsonrpc: non-empty-string, id: (int|non-empty-string), method: non-empty-string, params?: array<string, mixed>}
|
# |
Methods inherited from Nexus\Mcp\Message\Message |
---|
jsonSerialize() |
Constants inherited from Nexus\Mcp\Message\Message |
---|
|
Properties | |||
---|---|---|---|
public
|
RequestId
|
$requestId
|
# |
Properties inherited from Nexus\Mcp\Message\Request |
---|
$method, $params |
Properties inherited from Nexus\Mcp\Message\Message |
---|
$jsonrpc |