TypeValue
class TypeValue extends Value (View source)
Properties
protected string | $variable | The name of the LESS variable. |
from Value |
protected | $fontFamily | The font family. |
|
protected | $fontSize | The font size. |
|
protected | $color | The font color. |
|
protected | $lineHeight | The line height. |
|
protected | $letterSpacing | The letter spacing. |
|
protected | $fontStyle | The font style. |
|
protected | $fontWeight | The font weight. |
|
protected | $textDecoration | The text decoration. |
|
protected | $textTransform | The text transform. |
Methods
Get the CSS representation of this value.
Get the LESS representation of this variable and associated values.
Set the font family.
Set the font style.
Set the font weight.
Set the text decoration.
Set the text transform.
Get the font family.
Get the font size.
Get the font weight.
Get the font color.
Get the text decoration.
Get the text transform.
Get the font style.
Get the letter spacing.
Get the line height.
Details
in
Value at line 19
__construct(string $variable = '')
Initialize the instance.
in
Value at line 29
string
getVariable()
Get the name of the LESS variable.
string
toStyleString()
Get the CSS representation of this value.
array
toLessVariablesArray()
Get the LESS representation of this variable and associated values.
$this
setFontFamily(string $fontFamily)
Set the font family.
$this
setFontStyle(mixed $fontStyle)
Set the font style.
$this
setFontSize(SizeValue $fontSize)
Set the font size.
$this
setColor(ColorValue $color)
Set the font color.
$this
setFontWeight(string $fontWeight)
Set the font weight.
$this
setTextDecoration(string $textDecoration)
Set the text decoration.
$this
setTextTransform(string $textTransform)
Set the text transform.
$this
setLineHeight(SizeValue $lineHeight)
Set the line height.
$this
setLetterSpacing(SizeValue $letterSpacing)
Set the letter spacing.
getFontFamily()
Get the font family.
getFontSize()
Get the font size.
getFontWeight()
Get the font weight.
getColor()
Get the font color.
getTextDecoration()
Get the text decoration.
getTextTransform()
Get the text transform.
getFontStyle()
Get the font style.
getLetterSpacing()
Get the letter spacing.
getLineHeight()
Get the line height.