Archived
1
0
Fork 0

app/library/Navigation/*: fixing some phpdoc comments and add proper types to arguments.

This commit is contained in:
Henrik Hautakoski 2018-09-18 00:32:24 +02:00
parent 751befc156
commit 6756c5c5b4
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA
2 changed files with 10 additions and 6 deletions

View file

@ -56,22 +56,24 @@ class Node extends Container
protected $_visible = true;
/**
* @var Node
* Parent container. Null if no parent exists.
*
* @var Container|null
*/
protected $_parent = null;
/**
* @param $parent
* @param Container $parent
* @return Node
*/
public function setParent($parent)
public function setParent(Container $parent)
{
$this->_parent = $parent;
return $this;
}
/**
* @return Node
* @return Container|null
*/
public function getParent()
{