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

View File

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