/** * Constructor * * @param string $value The comment value * @param boolean $silent */ public function __construct($value, $silent = false, $index = 0, ILess_FileInfo $currentFileInfo = null) { parent::__construct($value); $this->silent = (bool) $silent; $this->index = $index; $this->currentFileInfo = $currentFileInfo; }
/** * Constructor * * @param string $quotedString Whole string with quotes * @param string $string The string without quotes * @param boolean $escaped Is the string escaped? * @param integer $index Current index * @param ILess_FileInfo $currentFileInfo The current file info */ public function __construct($quotedString, $string, $escaped = false, $index = 0, ILess_FileInfo $currentFileInfo = null) { parent::__construct($string ? $string : ''); $this->escaped = $escaped; $this->quote = $quotedString[0]; $this->index = $index; $this->currentFileInfo = $currentFileInfo; }
/** * Constructor * * @param string $value The string */ public function __construct($value = null) { if ($value == ' ') { $value = ' '; } else { $value = trim($value); } parent::__construct($value); }
/** * Constructor * * @param string $name The name * @param array|string $value The value * @param integer $index The index * @param array $currentFileInfo Current file info */ public function __construct($name, $value, $index = 0, ILess_FileInfo $currentFileInfo = null) { $this->name = $name; if (is_array($value)) { $ruleset = new ILess_Node_Ruleset(array(), $value); $ruleset->allowImports = true; $this->rules = array($ruleset); } else { if ($value && !$value instanceof ILess_Node) { throw new InvalidArgumentException('Invalid value given. It should be an instance of ILess_Node'); } parent::__construct($value); } $this->index = $index; $this->currentFileInfo = $currentFileInfo; }
/** * Constructor * * @param string|ILess_Node $key * @param string $operator * @param string|ILess_Node $value */ public function __construct($key, $operator, $value) { $this->key = $key; $this->operator = $operator; parent::__construct($value); }
/** * Constructor * * @param array $value */ public function __construct(array $value) { parent::__construct($value); }
/** * Constructor * * @param string $key * @param string|ILess_INode $value */ public function __construct($key, $value) { parent::__construct($value); $this->key = $key; }
/** * Constructor * * @param ILess_Node $value */ public function __construct(ILess_Node $value) { parent::__construct($value); }
/** * Constructor * * @param ILess_Node $value * @param ILess_FileInfo $currentFileInfo */ public function __construct(ILess_Node $value, ILess_FileInfo $currentFileInfo = null) { parent::__construct($value); $this->currentFileInfo = $currentFileInfo; }