File
class File implements FileInterface
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()
The URL where this file can be retrieved.
int
getSize()
The size in bytes of this file.
jsonSerialize()
{@inheritdoc}
Details
at line 45
__construct(string $fileName, string $contentType, string $url, int $size)
File constructor.
at line 56
string
getFileName()
The name of this file.
at line 64
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 74
string
getUrl()
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}