FluentDOM\Node\ChildNode\Implementation::remove PHP Method

remove() public method

Removes a node from its parent, returns the node
public remove ( )
    public function remove()
    {
        /** @var \DOMNode|Implementation $this */
        if ($this->parentNode instanceof \DOMNode) {
            $this->parentNode->removeChild($this);
        }
        return $this;
    }