ImageFile
class ImageFile extends File
ImageFile class.
Methods
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
string
jsonSerialize()
{@inheritdoc}
getWidth()
Returns the width of the image.
getHeight()
Returns the height of the image.
Details
at line 32
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
in File at line 55
getFileName()
The name of this file.
in File at line 63
getContentType()
The Content- (or MIME-)Type of this file.
at line 56
string
getUrl(UrlOptionsInterface $options = null)
The URL where this file can be retrieved.
in File at line 79
getSize()
The size in bytes of this file.
at line 66
jsonSerialize()
{@inheritdoc}
at line 43
getWidth()
Returns the width of the image.
at line 51
getHeight()
Returns the height of the image.