class File implements ProcessedFileInterface

File class.

Methods

__construct(string $fileName, string $contentType, string $url, int $size)

File constructor.

string
getFileName()

The name of this file.

string
getContentType()

The Content- (or MIME-)Type of this file.

string
getUrl(UrlOptionsInterface $options = \null)

The URL where this file can be retrieved.

int
getSize()

The size in bytes of this file.

jsonSerialize()

{@inheritdoc}

Details

at line 47
__construct(string $fileName, string $contentType, string $url, int $size)

File constructor.

Parameters

string $fileName
string $contentType
string $url
int $size Size in bytes

at line 58
string getFileName()

The name of this file.

Return Value

string

at line 66
string getContentType()

The Content- (or MIME-)Type of this file.

Return Value

string

at line 74
string getUrl(UrlOptionsInterface $options = \null)

The URL where this file can be retrieved.

Parameters

UrlOptionsInterface $options

Return Value

string

at line 84
int getSize()

The size in bytes of this file.

Return Value

int

at line 92
jsonSerialize()

{@inheritdoc}