interface StorableFile implements HasContent, HasMimeType, HasName, Stringable

Methods

string
content()

Get the file's raw content.

string|null
mimeType()

Get the file's MIME type.

withMimeType(string $mimeType)

Set the file's MIME type.

string|null
name()

Get the displayable name of the file.

from  HasName
as(string|null $name)

Set the displayable name of the file.

from  HasName

Details

in HasContent at line 14
string content()

Get the file's raw content.

Return Value

string

in HasMimeType at line 12
string|null mimeType()

Get the file's MIME type.

Return Value

string|null

in HasMimeType at line 17
HasMimeType withMimeType(string $mimeType)

Set the file's MIME type.

Parameters

string $mimeType

Return Value

HasMimeType

in HasName at line 12
string|null name()

Get the displayable name of the file.

Return Value

string|null

in HasName at line 17
HasName as(string|null $name)

Set the displayable name of the file.

Parameters

string|null $name

Return Value

HasName