src/Writer.php
private function createTextNodeWithTypeAttribute(\DOMDocument $dom, \DOMNode $node, $value, $type = 'int')
    {
        $text = $dom->createTextNode($value);
        $attr = $dom->createAttribute('type');
        $attr->value = $type;

        $node->appendChild($text);
        $node->appendChild($attr);
    }
private function createTextNodeWithTypeAttribute(\DOMDocument $dom, \DOMNode $node, $value, $type = 'int')
    {
        $text = $dom->createTextNode($value);
        $attr = $dom->createAttribute('type');
        $attr->value = $type;

        $node->appendChild($text);
        $node->appendChild($attr);
    }
private function createTextNodeWithTypeAttribute ( \ DOMDocument $ dom , \ DOMNode $ node , $ value , $ type = 'int' ) { $ text = $ dom -> createTextNode ( $ value ) ; $ attr = $ dom -> createAttribute ( 'type' ) ; $ attr -> value = $ type ; $ node -> appendChild ( $ text ) ; $ node -> appendChild ( $ attr ) ; }
Add a value and an associated type attribute to a DOMNode.

@param DOMNode $node
@param mixed   $value
@param string  $type

@return void
Add a value and an associated type attribute to a DOMNode .