SizeValue
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.
$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