class SizeValue extends Value (View source)

Properties

protected mixed $size

The numeric amount of the size.

protected string $unit

The unit of the size.

Methods

__construct(mixed $size, string $unit)

SizeValue constructor.

$this
setSize(mixed $size)

Set the numeric amount of the size.

$this
setUnit(string $unit)

Set the unit of the size.

mixed
getSize()

Get the numeric amount of the size.

string
getUnit()

Get the unit of the size.

jsonSerialize()

No description

Details

__construct(mixed $size, string $unit)

SizeValue constructor.

Parameters

mixed $size
string $unit

$this setSize(mixed $size)

Set the numeric amount of the size.

Parameters

mixed $size

Return Value

$this

$this setUnit(string $unit)

Set the unit of the size.

Parameters

string $unit

Return Value

$this

mixed getSize()

Get the numeric amount of the size.

Return Value

mixed

string getUnit()

Get the unit of the size.

Return Value

string

jsonSerialize()

No description