final | |
|---|---|
readonly | |
extends |
ResourceContents<array{uri: non-empty-string, text: string, mimeType?: non-empty-string, _meta?: template-type<MetaObject, Arrayable, 'T'>}> |
Text-encoded resource contents. The text payload is set only when the
resource can actually be represented as text (not binary data).
| Methods | ||
|---|---|---|
public
|
__construct(string $uri, string $text, ?string $mimeType = null, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Resource\ResourceContents |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
string
|
$text
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Resource\ResourceContents |
|---|
$uri, $mimeType, $meta |