Merge pull request #1712 from fmasa/fix/return-types

Added return type
This commit is contained in:
troosan 2019-09-30 21:38:38 +02:00 committed by GitHub
commit dfa0b5f8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;