class SizeValue extends Value (View source)

Properties

protected string $variable

The name of the LESS variable.

from  Value
protected mixed $size

The numeric amount of the size.

protected string $unit

The unit of the size.

Methods

__construct(string $variable = '')

Initialize the instance.

from  Value
string
getVariable()

Get the name of the LESS variable.

from  Value
string
toStyleString()

Get the CSS representation of this value.

array
toLessVariablesArray()

Get the LESS representation of this variable and associated values.

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

string
getUnits() deprecated

No description

bool
hasSize()

Does this value has the numeric amount of the size?

Details

__construct(string $variable = '')

Initialize the instance.

Parameters

string $variable

the name of the LESS variable

string getVariable()

Get the name of the LESS variable.

Return Value

string

string toStyleString()

Get the CSS representation of this value.

Return Value

string

See also

Value::toStyleString

array toLessVariablesArray()

Get the LESS representation of this variable and associated values.

Return Value

array

See also

Value::toLessVariablesArray

$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

string getUnits() deprecated

deprecated Use getUnit()

No description

Return Value

string

See also

SizeValue::getUnit

bool hasSize()

Does this value has the numeric amount of the size?

Return Value

bool