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}
int
getWidth()
Returns the width of the image.
int
getHeight()
Returns the height of the image.
Details
at line 39
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)
ImageFile constructor.
in File at line 58
string
getFileName()
The name of this file.
in File at line 66
string
getContentType()
The Content- (or MIME-)Type of this file.
at line 72
string
getUrl(UrlOptionsInterface $options = \null)
in File at line 84
int
getSize()
The size in bytes of this file.
at line 82
jsonSerialize()
{@inheritdoc}
at line 52
int
getWidth()
Returns the width of the image.
at line 62
int
getHeight()
Returns the height of the image.