Dimension
Dimension class holds width and height for an icon
Table of Contents
Properties
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
$height
protected
int
$height
$width
protected
int
$width
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
getHeight()
Returns the height
public
getHeight() : int
Return values
intgetWidth()
Returns the width
public
getWidth() : int