public function parents(): array
    {
        if (!$this->_parent) {
            return array();
        }
        $nodes = $this->_parent->parents();
        $nodes[] = $this->_parent;
        return array_reverse($nodes);
    }
public function parents(): array
    {
        if (!$this->_parent) {
            return array();
        }
        $nodes = $this->_parent->parents();
        $nodes[] = $this->_parent;
        return array_reverse($nodes);
    }
public function parents ( ) : array { if ( ! $ this -> _parent ) { return array ( ) ; } $ nodes = $ this -> _parent -> parents ( ) ; $ nodes [ ] = $ this -> _parent ; return array_reverse ( $ nodes ) ; }
Get chain of parent nodes from this node's parent to the root node.

@return PolicyNode[]
Get chain of parent nodes from this node s parent to the root node .