public function SassCommentNode::__construct in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassCommentNode.php \SassCommentNode::__construct()
SassCommentNode constructor.
Parameters
object source token:
Return value
CommentNode
Overrides SassNode::__construct
File
- phpsass/
tree/ SassCommentNode.php, line 30
Class
- SassCommentNode
- SassCommentNode class. Represents a CSS comment. @package PHamlP @subpackage Sass.tree
Code
public function __construct($token) {
parent::__construct($token);
preg_match(self::MATCH, $token->source, $matches);
$this->value = $matches[self::COMMENT];
}