You are here

public function SassLiteral::__construct in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassLiteral.php \SassLiteral::__construct()

class constructor

Parameters

string value of the literal type:

Return value

SassLiteral

4 methods override SassLiteral::__construct()
SassBoolean::__construct in phpsass/script/literals/SassBoolean.php
SassBoolean constructor
SassColour::__construct in phpsass/script/literals/SassColour.php
Constructs an RGB or HSL color object, optionally with an alpha channel. RGB values must be between 0 and 255. Saturation and lightness values must be between 0 and 100. The alpha value must be between 0 and 1. The colour can be specified as: + a…
SassNumber::__construct in phpsass/script/literals/SassNumber.php
class constructor. Sets the value and units of the number.
SassString::__construct in phpsass/script/literals/SassString.php
class constructor

File

phpsass/script/literals/SassLiteral.php, line 43

Class

SassLiteral
SassLiteral class. Base class for all Sass literals. Sass data types are extended from this class and these override the operation methods to provide the appropriate semantics. @package PHamlP @subpackage Sass.script.literals

Code

public function __construct($value = null, $context) {
  $this->value = $value;
  $this->context = $context;
}