PHPHtmlParser\Dom\AbstractNode::previousSibling PHP Метод

previousSibling() публичный Метод

Attempts to get the previous sibling
public previousSibling ( ) : AbstractNode
Результат AbstractNode
    public function previousSibling()
    {
        if (is_null($this->parent)) {
            throw new ParentNotFoundException('Parent is not set for this node.');
        }
        return $this->parent->previousChild($this->id);
    }