You are here

public function SassReturnNode::__construct in Sassy 7.3

SassReturnNode constructor.

Parameters

object source token:

Return value

SassReturnNode

Overrides SassNode::__construct

File

phpsass/tree/SassReturnNode.php, line 34

Class

SassReturnNode
SassReturnNode class. Represents a Return. @package PHamlP @subpackage Sass.tree

Code

public function __construct($token) {
  parent::__construct($token);
  preg_match(self::MATCH, $token->source, $matches);
  if (empty($matches)) {
    return new SassBoolean('false');
  }
  $this->statement = $matches[self::STATEMENT];
}