app/library/Navigation/*: fixing some phpdoc comments and add proper types to arguments.
This commit is contained in:
parent
751befc156
commit
6756c5c5b4
2 changed files with 10 additions and 6 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue