AreaBuilder
in package
A builder class for area of imagemap.
Table of Contents
- $height : int
- $width : int
- $x : int
- $y : int
- __construct() : mixed
- AreaBuilder constructor.
- build() : array<string|int, mixed>
- Builds imagemap area structure.
Properties
$height
private
int
$height
$width
private
int
$width
$x
private
int
$x
$y
private
int
$y
Methods
__construct()
AreaBuilder constructor.
public
__construct(int $x, int $y, int $width, int $height) : mixed
Parameters
- $x : int
-
Position of x-axis.
- $y : int
-
Position of y-axis.
- $width : int
-
Width of area.
- $height : int
-
Height of area.
Return values
mixed —build()
Builds imagemap area structure.
public
build() : array<string|int, mixed>
Return values
array<string|int, mixed> —Built area structure.