You are here

public function SassImportNode::__construct in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassImportNode.php \SassImportNode::__construct()

SassImportNode.

Parameters

object source token:

Return value

SassImportNode

Overrides SassNode::__construct

File

phpsass/tree/SassImportNode.php, line 34

Class

SassImportNode
SassImportNode class. Represents a CSS Import. @package PHamlP @subpackage Sass.tree

Code

public function __construct($token) {
  parent::__construct($token);
  preg_match(self::MATCH, $token->source, $matches);
  foreach (explode(',', $matches[self::FILES]) as $file) {
    $this->files[] = trim($file);
  }
}