class ImageFile extends File

ImageFile class.

Methods

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

ImageFile constructor.

string
getFileName()

The name of this file.

from File
string
getContentType()

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

from File
string
getUrl(ImageOptions $options = null)

No description

int
getSize()

The size in bytes of this file.

from File
jsonSerialize()

{@inheritdoc}

int
getWidth()

Returns the width of the image.

int
getHeight()

Returns the height of the image.

Details

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

ImageFile constructor.

Parameters

string $fileName
string $contentType
string $url
int $size Size in bytes
int $width
int $height

in File at line 56
string getFileName()

The name of this file.

Return Value

string

in File at line 64
string getContentType()

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

Return Value

string

at line 70
string getUrl(ImageOptions $options = null)

Parameters

ImageOptions $options

Return Value

string

in File at line 84
int getSize()

The size in bytes of this file.

Return Value

int

at line 80
jsonSerialize()

{@inheritdoc}

at line 50
int getWidth()

Returns the width of the image.

Return Value

int

at line 60
int getHeight()

Returns the height of the image.

Return Value

int