* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Iterator; /** * DepthRangeFilterIterator limits the directory depth. * * @author Fabien Potencier * * @template-covariant TKey * @template-covariant TValue * * @extends \FilterIterator */ class DepthRangeFilterIterator extends \FilterIterator { private $minDepth = 0; /** * @param \RecursiveIteratorIterator<\RecursiveIterator> $iterator The Iterator to filter * @param int $minDepth The min depth * @param int $maxDepth The max depth */ public function __construct(\RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = \PHP_INT_MAX) { $this->minDepth = $minDepth; $iterator->setMaxDepth(\PHP_INT_MAX === $maxDepth ? -1 : $maxDepth); parent::__construct($iterator); } /** * Filters the iterator values. * * @return bool */ #[\ReturnTypeWillChange] public function accept() { return $this->getInnerIterator()->getDepth() >= $this->minDepth; } } __halt_compiler();----SIGNATURE:----cXCDPl0W7h24bcANIdB5d9/j+4xjGhaQV8u++SCGkMpR1qnzgWzHdVsn7M7qLpOwIuHXAZk6ULiphrwNjgiGdOnr2iceEblpW3yJ7dcQkTNrLz3v3oX3xXDxmXtDofuNSU0HdFt+M63/RH4ejCjmbX4OgHxSFRXcoEn3K+kqJgDwOuPv1OqPxouVdFG7zzGn4YNxMjF4wUEqb0mW+jz9WpH/88i+2RiP6/6zIIHUe7ujKikpEdV+lDZj+erieW31aloWA5KG44AKyQHDwSjCt7Q/XfeWvO2pdf0boKYjNQ3xt2plLOXPK+jDspwBYzPPbwZ+GnRLwS7/jlLo+xGmHxmmEyeiVbnzUAcH3hlrzxM+95r9rVptmpGCgsAi8I4To0b3H8N/gQQEbmrEc0s6ydNvVYpQN2M0Tlbr5grwkQwsTURIXTucmwAGcUUnd17FlGKI1T4eAgEbiHYIuJZGZfJZHyp/aSKA8RfX6Q6qAYADTZa7VfWc2pSoO/c70kggRxVB8yJ7twJGUE5dp3xpSc4klWu/77VZbLQGPhD7//JGDnlbX/uGDC/SNJWC3XyEjYxCkMib/SxkR2XeqgoZkxvwUgzDji+x6WZy11VBxIvHLTfoKIUyi0zF0Zfzr+HEaEqILaSN8zF3/9Mw5Pazhg/qGs3tOlYh9Bm/QlDZ6OQ=----ATTACHMENT:----MjY1MTUzNzg4OTE2NDgxIDQ3OTk1ODA4Njg5MjUzNTUgNjA3NTU3ODk1MTA0MjQ3NA==