trait HasRemoteContent

Properties

protected Response|null $response

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.

string|null
declaredMimeType()

Get the declared MIME type without fetching the remote resource.

response()

Get the HTTP response for the remote file.

array
__serialize()

Prepare the file for serialization, discarding the cached HTTP response so it can be fetched again.

string
__toString()

Get the file content as a string.

Details

at line 18
string content()

Get the raw representation of the file.

Return Value

string

at line 26
string|null name()

Get the displayable name of the file.

Return Value

string|null

at line 36
string|null mimeType()

Get the file's MIME type.

Return Value

string|null

at line 44
string|null declaredMimeType()

Get the declared MIME type without fetching the remote resource.

Return Value

string|null

at line 52
protected Response response()

Get the HTTP response for the remote file.

Return Value

Response

at line 60
array __serialize()

Prepare the file for serialization, discarding the cached HTTP response so it can be fetched again.

Return Value

array

at line 72
string __toString()

Get the file content as a string.

Return Value

string