class WebDriverDimension (View source)

Represent a dimension.

Methods

__construct(int|float $width, int|float $height)

No description

int
getHeight()

Get the height.

int
getWidth()

Get the width.

bool
equals(WebDriverDimension $dimension)

Check whether the given dimension is the same as the instance.

Details

__construct(int|float $width, int|float $height)

No description

Parameters

int|float $width
int|float $height

int getHeight()

Get the height.

Return Value

int

The height.

int getWidth()

Get the width.

Return Value

int

The width.

bool equals(WebDriverDimension $dimension)

Check whether the given dimension is the same as the instance.

Parameters

WebDriverDimension $dimension

The dimension to be compared with.

Return Value

bool

Whether the height and the width are the same as the instance.