public function apply(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void
    {
        if ($this->hasValue($node)) {
            $this->addElement($document, $rootElement, $node);
        }
    }
public function apply(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void
    {
        if ($this->hasValue($node)) {
            $this->addElement($document, $rootElement, $node);
        }
    }
public function apply ( \ DomDocument $ document , \ DOMElement $ rootElement , NodeInterface $ node ) : void { if ( $ this -> hasValue ( $ node ) ) { $ this -> addElement ( $ document , $ rootElement , $ node ) ; } }
adds the accurate DomElement content according to the node's property

@param \DomDocument $document
@param \DOMElement $rootElement
@param NodeInterface $node
adds the accurate DomElement content according to the node s property