protected function applyValue(&$data, &$node)
    {
        $data['@value'] = $this->getBooleanAsString($data['@value']);

        if(is_array($data['@value']))
        {
            $this->processGenerate(key($data['@value']), $data['@value']);
        }
        else
        {
            $node->appendChild($this->getDomDocument()->createTextNode($data['@value']));
        }

        unset($data['@value']);
    }
protected function applyValue(&$data, &$node)
    {
        $data['@value'] = $this->getBooleanAsString($data['@value']);

        if(is_array($data['@value']))
        {
            $this->processGenerate(key($data['@value']), $data['@value']);
        }
        else
        {
            $node->appendChild($this->getDomDocument()->createTextNode($data['@value']));
        }

        unset($data['@value']);
    }
protected function applyValue ( & $ data , & $ node ) { $ data [ '@value' ] = $ this -> getBooleanAsString ( $ data [ '@value' ] ) ; if ( is_array ( $ data [ '@value' ] ) ) { $ this -> processGenerate ( key ( $ data [ '@value' ] ) , $ data [ '@value' ] ) ; } else { $ node -> appendChild ( $ this -> getDomDocument ( ) -> createTextNode ( $ data [ '@value' ] ) ) ; } unset ( $ data [ '@value' ] ) ; }
Adding element value

@param array       $data
@param \DOMElement $node

@return void
Adding element value