StructuredContentText
class StructuredContentText extends Text
Traits
Properties
| protected null|array<string, mixed> | $meta | from HasMeta |
Methods
Details
in
HasMeta at line 21
void
setMeta(array|string $meta, mixed $value = null)
Set response metadata using an array or key-value pair.
in
HasMeta at line 46
array
mergeMeta(array $baseArray)
Merge metadata into the given response array.
in
Text at line 20
__construct(string $text)
Create text content.
in
Text at line 61
string
__toString()
Get the text content.
in
Text at line 71
array
toArray()
Convert the text content to an array.