protected function readParagraphItem(Paragraph $oParagraph, \DOMElement $oNodeParent)
{
if ($this->oXMLReader->elementExists('text:line-break', $oNodeParent)) {
$oParagraph->createBreak();
} else {
$oTextRun = $oParagraph->createTextRun();
if ($oNodeParent->hasAttribute('text:style-name')) {
$keyStyle = $oNodeParent->getAttribute('text:style-name');
if (isset($this->arrayStyles[$keyStyle])) {
$oTextRun->setFont($this->arrayStyles[$keyStyle]['font']);
}
}
if ($oTextRunLink = $this->oXMLReader->getElement('text:a', $oNodeParent)) {
$oTextRun->setText($oTextRunLink->nodeValue);
if ($oTextRunLink->hasAttribute('xlink:href')) {
$oTextRun->getHyperlink()->setUrl($oTextRunLink->getAttribute('xlink:href'));
}
} else {
$oTextRun->setText($oNodeParent->nodeValue);
}
}
}