mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-11 00:00:51 +00:00
19 lines
403 B
PHP
19 lines
403 B
PHP
<?php
|
|
|
|
namespace PortableInfobox\Parser\Nodes;
|
|
|
|
class NodeTitle extends Node {
|
|
public function getData() {
|
|
if ( !isset( $this->data ) ) {
|
|
$title = $this->getValueWithDefault( $this->xmlNode );
|
|
$this->data = [
|
|
'value' => $title,
|
|
'source' => $this->getXmlAttribute( $this->xmlNode, self::DATA_SRC_ATTR_NAME ),
|
|
'item-name' => $this->getItemName()
|
|
];
|
|
}
|
|
|
|
return $this->data;
|
|
}
|
|
}
|