PHP 8.2.31
Preview: LazyIterator.php Size: 750 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/finder/Iterator/LazyIterator.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace RectorPrefix202411\Symfony\Component\Finder\Iterator;

/**
 * @author Jérémy Derussé <jeremy@derusse.com>
 *
 * @internal
 */
class LazyIterator implements \IteratorAggregate
{
    /**
     * @var \Closure
     */
    private $iteratorFactory;
    public function __construct(callable $iteratorFactory)
    {
        $this->iteratorFactory = \Closure::fromCallable($iteratorFactory);
    }
    public function getIterator() : \Traversable
    {
        yield from ($this->iteratorFactory)();
    }
}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
1.54 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.43 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.39 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.34 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.42 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.12 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.40 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
750 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.17 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.43 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
4.29 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.39 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
5.12 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
4.65 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).