mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
- Update docu
This commit is contained in:
parent
856b81ff0c
commit
4cba6ac94d
@ -33,7 +33,6 @@ abstract class RecursiveFilterIterator extends FilterIterator implements Recursi
|
||||
*/
|
||||
function __construct(RecursiveIterator $it)
|
||||
{
|
||||
$this->ref = new ReflectionClass($this);
|
||||
parent::__construct($it);
|
||||
}
|
||||
|
||||
@ -44,10 +43,16 @@ abstract class RecursiveFilterIterator extends FilterIterator implements Recursi
|
||||
return $this->getInnerIterator()->hasChildren();
|
||||
}
|
||||
|
||||
/** @return the ParentIterator for the current elements children
|
||||
/** @return an iterator for the current elements children
|
||||
*
|
||||
* @note the returned iterator will be of the same class as $this
|
||||
*/
|
||||
function getChildren()
|
||||
{
|
||||
if (empty($this->ref))
|
||||
{
|
||||
$this->ref = new ReflectionClass($this);
|
||||
}
|
||||
return $this->ref->newInstance($this->getInnerIterator()->getChildren());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user