SassPropertyNode::getNamespace PHP Method

getNamespace() public method

Returns the namespace for this node
public getNamespace ( ) : string
return string the namespace for this node
    public function getNamespace()
    {
        $namespace = array();
        $parent = $this->parent;
        do {
            if ($parent instanceof SassPropertyNode) {
                $namespace[] = $parent->name;
            }
            $parent = $parent->parent;
        } while (is_object($parent));
        return join('-', array_reverse($namespace));
    }