trait HasStoredContent

Methods

string
content()

Get the raw representation of the file.

string|null
name()

Get the displayable name of the file.

string|null
mimeType()

Get the file's MIME type.

array
jsonSerialize()

Get the JSON serializable representation of the instance.

string
__toString()

Get the file content as a string.

Details

at line 17
string content()

Get the raw representation of the file.

Return Value

string

Exceptions

RuntimeException

at line 26
string|null name()

Get the displayable name of the file.

Return Value

string|null

at line 34
string|null mimeType()

Get the file's MIME type.

Return Value

string|null

at line 45
array jsonSerialize()

Get the JSON serializable representation of the instance.

Return Value

array

at line 53
string __toString()

Get the file content as a string.

Return Value

string