SassMixinNode::__construct PHP Method

__construct() public method

SassMixinDefinitionNode constructor.
public __construct ( object $token ) : SassMixinNode
$token object source token
return SassMixinNode
    public function __construct($token)
    {
        parent::__construct($token);
        preg_match(self::MATCH, $token->source, $matches);
        if (!isset($matches[self::NAME])) {
            throw new SassMixinNodeException('Invalid mixin invocation: ($token->source)', $this);
        }
        $this->name = $matches[self::NAME];
        if (isset($matches[self::ARGS]) && strlen($matches[self::ARGS])) {
            $this->args = $matches[self::ARGS];
        }
    }