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
|
|
@ -29,7 +29,8 @@ class Container
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $child
|
* @param $child
|
||||||
* @return Node
|
* @return Container
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function addChild($child)
|
public function addChild($child)
|
||||||
{
|
{
|
||||||
|
|
@ -69,7 +70,8 @@ class Container
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $children
|
* @param $children
|
||||||
* @return Node
|
* @return Container
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function addChildren($children)
|
public function addChildren($children)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -56,22 +56,24 @@ class Node extends Container
|
||||||
protected $_visible = true;
|
protected $_visible = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Node
|
* Parent container. Null if no parent exists.
|
||||||
|
*
|
||||||
|
* @var Container|null
|
||||||
*/
|
*/
|
||||||
protected $_parent = null;
|
protected $_parent = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $parent
|
* @param Container $parent
|
||||||
* @return Node
|
* @return Node
|
||||||
*/
|
*/
|
||||||
public function setParent($parent)
|
public function setParent(Container $parent)
|
||||||
{
|
{
|
||||||
$this->_parent = $parent;
|
$this->_parent = $parent;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Node
|
* @return Container|null
|
||||||
*/
|
*/
|
||||||
public function getParent()
|
public function getParent()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue