WebDriverDimension
in package
Represent a dimension.
Table of Contents
Properties
Methods
- __construct() : mixed
- equals() : bool
- Check whether the given dimension is the same as the instance.
- getHeight() : int
- Get the height.
- getWidth() : int
- Get the width.
Properties
$height
private
int|float
$height
$width
private
int|float
$width
Methods
__construct()
public
__construct(int|float $width, int|float $height) : mixed
Parameters
- $width : int|float
- $height : int|float
equals()
Check whether the given dimension is the same as the instance.
public
equals(WebDriverDimension $dimension) : bool
Parameters
- $dimension : WebDriverDimension
-
The dimension to be compared with.
Return values
bool —Whether the height and the width are the same as the instance.
getHeight()
Get the height.
public
getHeight() : int
Return values
int —The height.
getWidth()
Get the width.
public
getWidth() : int
Return values
int —The width.