McpResourceTemplate
FinalYes
Marks a PHP class definition as representing an MCP Resource Template.
This is informational, used for 'resources/templates/list'.
Tags
Attributes
- #[Attribute]
- \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS
Table of Contents
Properties
- $annotations : Annotations|null
- $description : string|null
- $meta : array<string|int, mixed>|null
- $mimeType : string|null
- $name : string|null
- $uriTemplate : string
Methods
- __construct() : mixed
Properties
$annotations
public
Annotations|null
$annotations
= null
$description
public
string|null
$description
= null
$meta
public
array<string|int, mixed>|null
$meta
= null
$mimeType
public
string|null
$mimeType
= null
$name
public
string|null
$name
= null
$uriTemplate
public
string
$uriTemplate
Methods
__construct()
public
__construct(string $uriTemplate[, string|null $name = null ][, string|null $description = null ][, string|null $mimeType = null ][, Annotations|null $annotations = null ][, array<string, mixed>|null $meta = null ]) : mixed
Parameters
- $uriTemplate : string
-
the URI template string (RFC 6570)
- $name : string|null = null
-
A human-readable name for the template type. If null, a default might be generated from the method name.
- $description : string|null = null
-
Optional description. Defaults to class DocBlock summary.
- $mimeType : string|null = null
-
optional default MIME type for matching resources
- $annotations : Annotations|null = null
-
optional annotations describing the resource template
- $meta : array<string, mixed>|null = null
-
Optional metadata