Added return type

This commit is contained in:
František Maša 2019-09-02 18:13:10 +02:00
parent 8fbd060148
commit 8f4f4dcd48
1 changed files with 6 additions and 1 deletions

View File

@ -96,7 +96,7 @@ abstract class AbstractElement
/**
* A reference to the parent
*
* @var \PhpOffice\PhpWord\Element\AbstractElement
* @var AbstractElement|null
*/
private $parent;
@ -335,6 +335,11 @@ abstract class AbstractElement
$this->commentRangeEnd->setEndElement($this);
}
/**
* Get parent element
*
* @return AbstractElement|null
*/
public function getParent()
{
return $this->parent;