Skip to content

Commit dfa0b5f

Browse files
authored
Merge pull request #1712 from fmasa/fix/return-types
Added return type
2 parents 8fbd060 + 8f4f4dc commit dfa0b5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PhpWord/Element/AbstractElement.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ abstract class AbstractElement
9696
/**
9797
* A reference to the parent
9898
*
99-
* @var \PhpOffice\PhpWord\Element\AbstractElement
99+
* @var AbstractElement|null
100100
*/
101101
private $parent;
102102

@@ -335,6 +335,11 @@ public function setCommentRangeEnd(Comment $value)
335335
$this->commentRangeEnd->setEndElement($this);
336336
}
337337

338+
/**
339+
* Get parent element
340+
*
341+
* @return AbstractElement|null
342+
*/
338343
public function getParent()
339344
{
340345
return $this->parent;

0 commit comments

Comments
 (0)