class ImageFile extends File

ImageFile class.

Methods

__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)

ImageFile constructor.

getFileName()

The name of this file.

from File
getContentType()

The Content- (or MIME-)Type of this file.

from File
string
getUrl(UrlOptionsInterface $options = null)

The URL where this file can be retrieved.

getSize()

The size in bytes of this file.

from File
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.

Parameters

string $fileName
string $contentType
string $url
int $size
int $width
int $height

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.

Parameters

UrlOptionsInterface $options

Return Value

string

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.