ImageFile
class ImageFile extends File
Methods
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
string
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.
int
getWidth()
Returns the width of the image.
int
getHeight()
Returns the height of the image.
Details
at line 31
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
in File at line 54
string
getFileName()
The name of this file
in File at line 66
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 70
string
getUrl(ImageOptions $options = null)
in File at line 90
int
getSize()
The size in bytes of this file.
at line 86
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.
at line 46
int
getWidth()
Returns the width of the image.
at line 58
int
getHeight()
Returns the height of the image.