final | |
|---|---|
readonly | |
extends |
ResourceContents |
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<string, mixed> $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 |