trait HasLocalContent

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 31
string|null name()

Get the displayable name of the file.

Return Value

string|null

at line 39
string|null mimeType()

Get the file's MIME type.

Return Value

string|null

at line 47
array jsonSerialize()

Get the JSON serializable representation of the instance.

Return Value

array

at line 55
string __toString()

Get the file content as a string.

Return Value

string