File
class File implements FileInterface
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.
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.
Details
at line 42
__construct(string $fileName, string $contentType, string $url, int $size)
File constructor.
at line 55
string
getFileName()
The name of this file.
at line 65
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 75
string
getUrl()
The Url where this file can be retrieved.
at line 85
int
getSize()
The size in bytes of this file.
at line 97
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.