Skip to content

Commit

Permalink
Merge pull request zendframework#490 from holtkamp/patch-1
Browse files Browse the repository at this point in the history
Added more specific return documentation for Zend_Navigation Pages
  • Loading branch information
froschdesign committed Jan 14, 2015
2 parents 1f5691e + e84e6d2 commit 00b6560
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions library/Zend/Navigation/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class Zend_Navigation_Container implements RecursiveIterator, Countable
/**
* Contains sub pages
*
* @var array
* @var Zend_Navigation_Page[]
*/
protected $_pages = array();

Expand Down Expand Up @@ -143,7 +143,7 @@ public function addPage($page)
/**
* Adds several pages at once
*
* @param array|Zend_Config|Zend_Navigation_Container $pages pages to add
* @param Zend_Navigation_Page[]|Zend_Config|Zend_Navigation_Container $pages pages to add
* @return Zend_Navigation_Container fluent interface,
* returns self
* @throws Zend_Navigation_Exception if $pages is not
Expand Down Expand Up @@ -178,7 +178,7 @@ public function addPages($pages)
/**
* Sets pages this container should have, removing existing pages
*
* @param array $pages pages to set
* @param Zend_Navigation_Page[] $pages pages to set
* @return Zend_Navigation_Container fluent interface, returns self
*/
public function setPages(array $pages)
Expand All @@ -190,7 +190,7 @@ public function setPages(array $pages)
/**
* Returns pages in the container
*
* @return array array of Zend_Navigation_Page instances
* @return Zend_Navigation_Page[] array of Zend_Navigation_Page instances
*/
public function getPages()
{
Expand Down Expand Up @@ -359,7 +359,7 @@ public function findOneBy($property, $value, $useRegex = false)
* @param mixed $value value to match property against
* @param bool $useRegex [optional] if true PHP's preg_match is used.
* Default is false.
* @return array array containing only Zend_Navigation_Page
* @return Zend_Navigation_Page[] array containing only Zend_Navigation_Page
* instances
*/
public function findAllBy($property, $value, $useRegex = false)
Expand Down Expand Up @@ -484,7 +484,7 @@ public function __call($method, $arguments)
/**
* Returns an array representation of all pages in container
*
* @return array
* @return Zend_Navigation_Page[]
*/
public function toArray()
{
Expand Down

0 comments on commit 00b6560

Please sign in to comment.