Implementation implements JsonSerializable
Describes the name and version of an MCP implementation.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $description : string|null
- $icons : array<string|int, mixed>|null
- $name : string
- $version : string
- $websiteUrl : string|null
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : Icon[], websiteUrl?: string}
Properties
$description read-only
public
string|null
$description
= null
$icons read-only
public
array<string|int, mixed>|null
$icons
= null
$name read-only
public
string
$name
= 'app'
$version read-only
public
string
$version
= 'dev'
$websiteUrl read-only
public
string|null
$websiteUrl
= null
Methods
__construct()
public
__construct([string $name = 'app' ][, string $version = 'dev' ][, string|null $description = null ][, array<string|int, Icon>|null $icons = null ][, string|null $websiteUrl = null ]) : mixed
Parameters
- $name : string = 'app'
- $version : string = 'dev'
- $description : string|null = null
- $icons : array<string|int, Icon>|null = null
- $websiteUrl : string|null = null
fromArray()
public
static fromArray(IconData[], websiteUrl?: string} $data) : self
Parameters
- $data : IconData[], websiteUrl?: string}
Return values
selfjsonSerialize()
public
jsonSerialize() : Icon[], websiteUrl?: string}