MCP PHP SDK

Implementation implements JsonSerializable

Describes the name and version of an MCP implementation.

Tags
phpstan-import-type

IconData from Icon

author

Kyrian Obikwelu koshnawaza@gmail.com

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

$icons read-only

public array<string|int, mixed>|null $icons = 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
self

jsonSerialize()

public jsonSerialize() : Icon[], websiteUrl?: string}
Return values
Icon[], websiteUrl?: string}

        
On this page

Search results