File "DepthRangeFilterIterator.php"

Full Path: /home/warrior1/public_html/plugins/mailpoet/vendor-prefixed/symfony/finder/Iterator/DepthRangeFilterIterator.php
File size: 559 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Symfony\Component\Finder\Iterator;
if (!defined('ABSPATH')) exit;
class DepthRangeFilterIterator extends \FilterIterator
{
 private $minDepth = 0;
 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);
 }
 #[\ReturnTypeWillChange]
 public function accept()
 {
 return $this->getInnerIterator()->getDepth() >= $this->minDepth;
 }
}