class Implementation

Methods

__construct(string $name, string $version, string|null $title = null, string|null $description = null, array $icons = [], string|null $websiteUrl = null)

Create implementation metadata.

array
toArray()

Convert the implementation metadata to an array.

static Implementation|null
from(mixed $data)

Parse implementation metadata from a protocol message.

static string
stringAt(array $array, string $key, string|null $default = null)

Get a string value from the metadata.

static array
arrayAt(array $array, string $key, array|null $default = null)

Get an array value from the metadata.

Details

at line 18
__construct(string $name, string $version, string|null $title = null, string|null $description = null, array $icons = [], string|null $websiteUrl = null)

Create implementation metadata.

Parameters

string $name
string $version
string|null $title
string|null $description
array $icons
string|null $websiteUrl

at line 33
array toArray()

Convert the implementation metadata to an array.

Return Value

array

at line 48
static Implementation|null from(mixed $data)

Parse implementation metadata from a protocol message.

Parameters

mixed $data

Return Value

Implementation|null

at line 85
static protected string stringAt(array $array, string $key, string|null $default = null)

Get a string value from the metadata.

Parameters

array $array
string $key
string|null $default

Return Value

string

at line 103
static protected array arrayAt(array $array, string $key, array|null $default = null)

Get an array value from the metadata.

Parameters

array $array
string $key
array|null $default

Return Value

array