Dimension

Dimension class holds width and height for an icon

Table of Contents

Properties

$height  : int
$width  : int

Methods

__construct()  : mixed
Constructor which fetches the size and resolves it to a pixel size
getHeight()  : int
Returns the height
getWidth()  : int
Returns the width

Properties

Methods

__construct()

Constructor which fetches the size and resolves it to a pixel size

public __construct([string $size = Icon::SIZE_DEFAULT ]) : mixed
Parameters
$size : string = Icon::SIZE_DEFAULT

the icon size

Tags
throws
InvalidArgumentException

getHeight()

Returns the height

public getHeight() : int
Return values
int

getWidth()

Returns the width

public getWidth() : int
Return values
int

        
On this page

Search results