final | |
|---|---|
readonly | |
extends |
BaseMetadata |
implements |
Arrayable<array{name: non-empty-string, uriTemplate: non-empty-string, title?: non-empty-string, description?: non-empty-string, mimeType?: non-empty-string, annotations?: template-type<Annotations, Arrayable, 'T'>, icons?: list<template-type<Icon, Arrayable, 'T'>>, _meta?: template-type<MetaObject, Arrayable, 'T'>}>, Icons |
A template description for resources available on the server.
| Methods | ||
|---|---|---|
public
|
__construct(
string $name,
string $uriTemplate,
?string $title = null,
?string $description = null,
?string $mimeType = null,
Annotations $annotations = new Annotations(),
null|list<Icon> $icons = null,
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\BaseMetadata |
|---|
getDisplayName() |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$uriTemplate
|
# |
public
|
null|non-empty-string
|
$description
|
# |
public
|
null|non-empty-string
|
$mimeType
|
# |
public
|
null|list<Icon>
|
$icons
|
# |
public
|
Annotations
|
$annotations
|
# |
public
|
MetaObject
|
$meta
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\BaseMetadata |
|---|
$name, $title |