ResourceReadResult
class ResourceReadResult implements Stringable
Methods
__construct(array $contents, array|null $meta = null)
Create a resource read result.
static ResourceReadResult
from(array $result)
Parse a resource read response.
string|null
mimeType()
Get the first declared MIME type.
string
content()
Get the combined text and decoded binary content.
string
__toString()
Convert the result to its content.
Details
at line 19
__construct(array $contents, array|null $meta = null)
Create a resource read result.
at line 30
static ResourceReadResult
from(array $result)
Parse a resource read response.
at line 48
string|null
mimeType()
Get the first declared MIME type.
at line 64
string
content()
Get the combined text and decoded binary content.
at line 94
string
__toString()
Convert the result to its content.