File
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
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.
at line 58
string
getFileName()
The name of this file.
at line 66
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 74
string
getUrl(UrlOptionsInterface $options = \null)
The URL where this file can be retrieved.
at line 84
int
getSize()
The size in bytes of this file.
at line 92
jsonSerialize()
{@inheritdoc}