PHPHtmlParser\Dom\AbstractNode::nextSibling PHP Method

nextSibling() public method

Attempts to get the next sibling.
public nextSibling ( ) : AbstractNode
return AbstractNode
    public function nextSibling()
    {
        if (is_null($this->parent)) {
            throw new ParentNotFoundException('Parent is not set for this node.');
        }
        return $this->parent->nextChild($this->id);
    }