class BasicValue extends Value (View source)

Properties

protected string $variable

The name of the LESS variable.

from  Value
protected mixed $value

The CSS value.

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
setValue(mixed $value)

Set the CSS value.

mixed
getValue()

Get the CSS value.

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 setValue(mixed $value)

Set the CSS value.

Parameters

mixed $value

Return Value

$this

mixed getValue()

Get the CSS value.

Return Value

mixed