db backup prior to drupal security update
[yaffs-website] / vendor / symfony / polyfill-php54 / Resources / stubs / RecursiveCallbackFilterIterator.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator
13 {
14     private $iterator;
15     private $callback;
16
17     public function __construct(RecursiveIterator $iterator, $callback)
18     {
19         $this->iterator = $iterator;
20         $this->callback = $callback;
21         parent::__construct($iterator, $callback);
22     }
23
24     public function hasChildren()
25     {
26         return $this->iterator->hasChildren();
27     }
28
29     public function getChildren()
30     {
31         return new static($this->iterator->getChildren(), $this->callback);
32     }
33 }