class Box implements BoxInterface (View source)

Methods

__construct(int $width, int $height)

Constructs the Size with given width and height

getWidth()

{@inheritdoc}

getHeight()

{@inheritdoc}

scale($ratio)

{@inheritdoc}

increase($size)

{@inheritdoc}

contains(BoxInterface $box, PointInterface $start = null)

{@inheritdoc}

square()

{@inheritdoc}

__toString()

{@inheritdoc}

widen($width)

{@inheritdoc}

heighten($height)

{@inheritdoc}

Details

__construct(int $width, int $height)

Constructs the Size with given width and height

Parameters

int $width
int $height

Exceptions

InvalidArgumentException

getWidth()

{@inheritdoc}

getHeight()

{@inheritdoc}

scale($ratio)

{@inheritdoc}

Parameters

$ratio

increase($size)

{@inheritdoc}

Parameters

$size

contains(BoxInterface $box, PointInterface $start = null)

{@inheritdoc}

Parameters

BoxInterface $box
PointInterface $start

square()

{@inheritdoc}

__toString()

{@inheritdoc}

widen($width)

{@inheritdoc}

Parameters

$width

heighten($height)

{@inheritdoc}

Parameters

$height