class NumberVariable implements VariableInterface (View source)

Properties

protected string $name
protected string|null $unit
protected string|float $number

Methods

float|string
getNumber()

No description

void
setNumber(float|string $number)

No description

string|null
getUnit()

No description

void
setUnit(string $unit)

No description

string
getName()

No description

__construct(string $name, $number, $unit = null)

No description

getValue()

No description

jsonSerialize()

No description

Details

float|string getNumber()

No description

Return Value

float|string

void setNumber(float|string $number)

No description

Parameters

float|string $number

Return Value

void

string|null getUnit()

No description

Return Value

string|null

void setUnit(string $unit)

No description

Parameters

string $unit

Return Value

void

string getName()

No description

Return Value

string

__construct(string $name, $number, $unit = null)

No description

Parameters

string $name
$number
$unit

getValue()

No description

jsonSerialize()

No description