PortableInfobox/services/Parser/Nodes/NodePair.php
2015-04-28 09:00:26 +02:00

13 lines
321 B
PHP

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