4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator
17 public function __construct(RecursiveIterator $iterator, $callback)
19 $this->iterator = $iterator;
20 $this->callback = $callback;
21 parent::__construct($iterator, $callback);
24 public function hasChildren()
26 return $this->iterator->hasChildren();
29 public function getChildren()
31 return new static($this->iterator->getChildren(), $this->callback);