File
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
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.
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.
at line 79
getSize()
The size in bytes of this file.
at line 87
jsonSerialize()
{@inheritdoc}