PortableInfobox/includes/services/Parser/Nodes/NodeHeader.php

17 lines
294 B
PHP
Raw Normal View History

<?php
namespace PortableInfobox\Parser\Nodes;
class NodeHeader extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
2019-02-02 22:34:48 +00:00
$this->data = [
'value' => $this->getInnerValue( $this->xmlNode ),
'item-name' => $this->getItemName()
];
}
return $this->data;
}
}