PortableInfobox/services/Parser/Nodes/NodeData.php
2015-05-19 11:20:44 -07:00

17 lines
385 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeData extends Node {
public function getData() {
return [
'label' => $this->getExternalParser()->parseRecursive(
\Wikia\PortableInfobox\Helpers\SimpleXmlUtil::getInstance()->getInnerXML(
$this->xmlNode->{self::LABEL_TAG_NAME}
)
),
'value' => $this->getValueWithDefault( $this->xmlNode )
];
}
}