class File implements ProcessedFileInterface

File class.

Methods

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

File constructor.

getFileName()

The name of this file.

getContentType()

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

string
getUrl(UrlOptionsInterface $options = null)

The URL where this file can be retrieved.

getSize()

The size in bytes of this file.

jsonSerialize()

{@inheritdoc}

Details

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

File constructor.

Parameters

string $fileName
string $contentType
string $url
int $size

at line 55
getFileName()

The name of this file.

at line 63
getContentType()

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

at line 71
string getUrl(UrlOptionsInterface $options = null)

The URL where this file can be retrieved.

Parameters

UrlOptionsInterface $options

Return Value

string

at line 79
getSize()

The size in bytes of this file.

at line 87
jsonSerialize()

{@inheritdoc}