PortableInfobox/includes/services/Parser/Nodes/NodeHeader.php
2021-09-09 22:02:19 -06:00

19 lines
320 B
PHP

<?php
namespace PortableInfobox\Parser\Nodes;
class NodeHeader extends Node {
/*
* @return array
*/
public function getData() {
if ( !isset( $this->data ) ) {
$this->data = [
'value' => $this->getInnerValue( $this->xmlNode ),
'item-name' => $this->getItemName()
];
}
return $this->data;
}
}