Copied!

McpResource

McpResource.php : 14
Read-only
Final
Attributes
#[Attribute]
\Attribute::TARGET_METHOD

Properties

public $annotations

McpResource.php : 29
public Annotations|null $annotations = null

public $description

McpResource.php : 26
public string|null $description = null

public $icons

McpResource.php : 30
public array<string|int, mixed>|null $icons = null

public $meta

McpResource.php : 31
public array<string|int, mixed>|null $meta = null

public $mimeType

McpResource.php : 27
public string|null $mimeType = null

public $name

McpResource.php : 25
public string|null $name = null

public $servers

McpResource.php : 23
public array<string|int, mixed> $servers

public $size

McpResource.php : 28
public int|null $size = null

public $uri

McpResource.php : 24
public string $uri

Methods

public__construct()

McpResource.php : 22
public __construct(array<int, string> $servers, string $uri[, string|null $name = null ][, string|null $description = null ][, string|null $mimeType = null ][, int|null $size = null ][, Annotations|null $annotations = null ][, array<string|int, Icon>|null $icons = null ][, array<string, mixed>|null $meta = null ])

Parameters

Name Type Default value Description
$servers array<int, string> - -
$uri string - -
$name string|null null -
$description string|null null -
$mimeType string|null null -
$size int|null null -
$annotations Annotations|null null -
$icons array<string|int, Icon>|null null -
$meta array<string, mixed>|null null -