class FileResponse

Traits

Properties

Response|null $raw

The raw HTTP response, if available for the provider.

from  HasRawResponse
string|null $mime

Methods

withRawResponse(Response|null $response)

Set the raw HTTP response.

array
__serialize()

Prepare the instance for serialization, discarding the unserializable raw HTTP response.

__construct(string $id, string|null $mimeType = null, string|null $content = null)

Create a file response.

string|null
mimeType()

Get the MIME type for the file.

string|null
content()

Get the file's content.

Details

in HasRawResponse at line 19
HasRawResponse withRawResponse(Response|null $response)

Set the raw HTTP response.

Parameters

Response|null $response

Return Value

HasRawResponse

in HasRawResponse at line 29
array __serialize()

Prepare the instance for serialization, discarding the unserializable raw HTTP response.

Return Value

array

at line 18
__construct(string $id, string|null $mimeType = null, string|null $content = null)

Create a file response.

Parameters

string $id
string|null $mimeType
string|null $content

at line 29
string|null mimeType()

Get the MIME type for the file.

Return Value

string|null

at line 37
string|null content()

Get the file's content.

Return Value

string|null