public function SassCommentNode::__construct in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassCommentNode.php \SassCommentNode::__construct()
* SassCommentNode constructor. *
Parameters
object source token: * @return CommentNode
Overrides SassNode::__construct
File
- phamlp/
sass/ 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];
}