FluentDOM\Node\ChildNode\Implementation::after PHP Метод

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

Insert nodes after a node.
public after ( DOMNode | DOMNodeList $nodes )
$nodes DOMNode | DOMNodeList
    public function after($nodes)
    {
        /** @var \DOMNode|Implementation $this */
        if ($this->parentNode instanceof \DOMElement && ($nodes = MutationMacro::expand($this->ownerDocument, $nodes))) {
            if ($this->nextSibling instanceof \DOMNode) {
                $this->parentNode->insertBefore($nodes, $this->nextSibling);
            } else {
                $this->parentNode->appendChild($nodes);
            }
        }
    }