Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 00b6560

Browse files
committed
Merge pull request zendframework#490 from holtkamp/patch-1
Added more specific return documentation for Zend_Navigation Pages
2 parents 1f5691e + e84e6d2 commit 00b6560

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/Zend/Navigation/Container.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class Zend_Navigation_Container implements RecursiveIterator, Countable
3434
/**
3535
* Contains sub pages
3636
*
37-
* @var array
37+
* @var Zend_Navigation_Page[]
3838
*/
3939
protected $_pages = array();
4040

@@ -143,7 +143,7 @@ public function addPage($page)
143143
/**
144144
* Adds several pages at once
145145
*
146-
* @param array|Zend_Config|Zend_Navigation_Container $pages pages to add
146+
* @param Zend_Navigation_Page[]|Zend_Config|Zend_Navigation_Container $pages pages to add
147147
* @return Zend_Navigation_Container fluent interface,
148148
* returns self
149149
* @throws Zend_Navigation_Exception if $pages is not
@@ -178,7 +178,7 @@ public function addPages($pages)
178178
/**
179179
* Sets pages this container should have, removing existing pages
180180
*
181-
* @param array $pages pages to set
181+
* @param Zend_Navigation_Page[] $pages pages to set
182182
* @return Zend_Navigation_Container fluent interface, returns self
183183
*/
184184
public function setPages(array $pages)
@@ -190,7 +190,7 @@ public function setPages(array $pages)
190190
/**
191191
* Returns pages in the container
192192
*
193-
* @return array array of Zend_Navigation_Page instances
193+
* @return Zend_Navigation_Page[] array of Zend_Navigation_Page instances
194194
*/
195195
public function getPages()
196196
{
@@ -359,7 +359,7 @@ public function findOneBy($property, $value, $useRegex = false)
359359
* @param mixed $value value to match property against
360360
* @param bool $useRegex [optional] if true PHP's preg_match is used.
361361
* Default is false.
362-
* @return array array containing only Zend_Navigation_Page
362+
* @return Zend_Navigation_Page[] array containing only Zend_Navigation_Page
363363
* instances
364364
*/
365365
public function findAllBy($property, $value, $useRegex = false)
@@ -484,7 +484,7 @@ public function __call($method, $arguments)
484484
/**
485485
* Returns an array representation of all pages in container
486486
*
487-
* @return array
487+
* @return Zend_Navigation_Page[]
488488
*/
489489
public function toArray()
490490
{

0 commit comments

Comments
 (0)