ClientCapabilities implements JsonSerializable
Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $elicitation : bool|null
- $experimental : array<string|int, mixed>|null
- $roots : bool|null
- $rootsListChanged : bool|null
- $sampling : bool|null
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array{roots?: object, sampling?: object, elicitation?: object, experimental?: object}
Properties
$elicitation read-only
public
bool|null
$elicitation
= null
$experimental read-only
public
array<string|int, mixed>|null
$experimental
= null
$roots read-only
public
bool|null
$roots
= false
$rootsListChanged read-only
public
bool|null
$rootsListChanged
= null
$sampling read-only
public
bool|null
$sampling
= null
Methods
__construct()
public
__construct([bool|null $roots = false ][, bool|null $rootsListChanged = null ][, bool|null $sampling = null ][, bool|null $elicitation = null ][, array<string, mixed> $experimental = null ]) : mixed
Parameters
- $roots : bool|null = false
- $rootsListChanged : bool|null = null
- $sampling : bool|null = null
- $elicitation : bool|null = null
- $experimental : array<string, mixed> = null
fromArray()
public
static fromArray(array{roots?: array{listChanged?: bool}, sampling?: bool, elicitation?: bool, experimental?: array} $data) : self
Parameters
-
$data
: array{roots?: array{listChanged?: bool}, sampling?: bool, elicitation?: bool, experimental?: array
}
Return values
selfjsonSerialize()
public
jsonSerialize() : array{roots?: object, sampling?: object, elicitation?: object, experimental?: object}