final | |
|---|---|
readonly | |
extends |
ResourceContents<array{_meta?: array<string, mixed>, blob: non-empty-string, uri: non-empty-string, mimeType?: non-empty-string}> |
The contents of a specific resource or sub-resource.
| Methods | ||
|---|---|---|
public
|
__construct(string $uri, non-empty-string $blob, ?string $mimeType = null, ?array $meta = null)
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\Content\ResourceContents |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$blob
|
# |
| Properties inherited from Nexus\Mcp\Schema\Content\ResourceContents |
|---|
$uri, $mimeType, $meta |