File
class File implements JsonSerializable
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 39
__construct(string $fileName, string $contentType, string $url, int $size)
File constructor.
at line 54
string
getFileName()
The name of this file
at line 66
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 78
string
getUrl()
The Url where this file can be retrieved.
at line 90
int
getSize()
The size in bytes of this file.
at line 104
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.