mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 12:35:31 +00:00
e2a0a2273e
# Conflicts: # extensions/wikia/PortableInfobox/services/Parser/Nodes/Node.php # extensions/wikia/PortableInfobox/services/Parser/Nodes/NodeData.php # extensions/wikia/PortableInfobox/tests/ParserNodesTest.php
17 lines
345 B
PHP
17 lines
345 B
PHP
<?php
|
|
namespace Wikia\PortableInfobox\Parser\Nodes;
|
|
|
|
class NodeData extends Node {
|
|
|
|
public function getData() {
|
|
if ( !isset( $this->data ) ) {
|
|
$this->data = [
|
|
'label' => $this->getValueWithData( $this->xmlNode->{self::LABEL_TAG_NAME} ),
|
|
'value' => $this->getValueWithDefault( $this->xmlNode )
|
|
];
|
|
}
|
|
|
|
return $this->data;
|
|
}
|
|
}
|