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

19 lines
320 B
PHP
Raw Normal View History

<?php
namespace PortableInfobox\Parser\Nodes;
class NodeHeader extends Node {
2021-09-10 04:02:19 +00:00
/*
* @return array
*/
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;
}
}