src/Template/XMLTemplate.php
protected final function appendTo(
       SimpleXMLElement $parent,
       SimpleXMLElement $child): SimpleXMLElement
   {
       $dom = dom_import_simplexml($parent);
       $dom->appendChild(
           $dom->ownerDocument->importNode(dom_import_simplexml($child),
           true));
       return $parent;
   }
protected final function appendTo(
       SimpleXMLElement $parent,
       SimpleXMLElement $child): SimpleXMLElement
   {
       $dom = dom_import_simplexml($parent);
       $dom->appendChild(
           $dom->ownerDocument->importNode(dom_import_simplexml($child),
           true));
       return $parent;
   }
protected final function appendTo ( SimpleXMLElement $ parent , SimpleXMLElement $ child ) : SimpleXMLElement { $ dom = dom_import_simplexml ( $ parent ) ; $ dom -> appendChild ( $ dom -> ownerDocument -> importNode ( dom_import_simplexml ( $ child ) , true ) ) ; return $ parent ; }
Append a SimpleXmlElement

@param SimpleXMLElement $parent parent node
@param SimpleXMLElement $child child node
@return SimpleXMLElement parent
Append a SimpleXmlElement