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 34
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
in File at line 55
string
getFileName()
The name of this file.
in File at line 65
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 67
string
getUrl(ImageOptions $options = null)
in File at line 85
int
getSize()
The size in bytes of this file.
at line 81
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.
at line 47
int
getWidth()
Returns the width of the image.
at line 57
int
getHeight()
Returns the height of the image.