PortableInfobox/services/Parser/Nodes/NodeData.php
2016-04-01 11:07:30 +00:00

17 lines
342 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeData extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
$this->data = [
'label' => $this->getInnerValue( $this->xmlNode->{self::LABEL_TAG_NAME} ),
'value' => $this->getValueWithDefault( $this->xmlNode )
];
}
return $this->data;
}
}