Skip to content

Commit

Permalink
Merge pull request #1712 from fmasa/fix/return-types
Browse files Browse the repository at this point in the history
Added return type
  • Loading branch information
troosan authored Sep 30, 2019
2 parents 8fbd060 + 8f4f4dc commit dfa0b5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PhpWord/Element/AbstractElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ abstract class AbstractElement
/**
* A reference to the parent
*
* @var \PhpOffice\PhpWord\Element\AbstractElement
* @var AbstractElement|null
*/
private $parent;

Expand Down Expand Up @@ -335,6 +335,11 @@ public function setCommentRangeEnd(Comment $value)
$this->commentRangeEnd->setEndElement($this);
}

/**
* Get parent element
*
* @return AbstractElement|null
*/
public function getParent()
{
return $this->parent;
Expand Down

0 comments on commit dfa0b5f

Please sign in to comment.