PortableInfobox/services/Parser/Nodes/NodeHeader.php

18 lines
376 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
use Wikia\PortableInfobox\Helpers\SimpleXmlUtil;
class NodeHeader extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
$this->data = [ 'value' => $this->getExternalParser()->parseRecursive(
SimpleXmlUtil::getInstance()->getInnerXML( $this->xmlNode )
) ];
}
return $this->data;
}
}