Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LazyIterator.php

class LazyIterator

@author Jérémy Derussé <jeremy@derusse.com>

@internal

Hierarchy

  • class \Symfony\Component\Finder\Iterator\LazyIterator implements \Symfony\Component\Finder\Iterator\IteratorAggregate

Expanded class hierarchy of LazyIterator

1 file declares its use of LazyIterator
Finder.php in vendor/symfony/finder/Finder.php

File

vendor/symfony/finder/Iterator/LazyIterator.php, line 19

Namespace

Symfony\Component\Finder\Iterator
View source
class LazyIterator implements \IteratorAggregate {
    private \Closure $iteratorFactory;
    public function __construct(callable $iteratorFactory) {
        $this->iteratorFactory = $iteratorFactory(...);
    }
    public function getIterator() : \Traversable {
        yield from ($this->iteratorFactory)();
    }

}

Members

Title Sort descending Modifiers Object type Summary
LazyIterator::$iteratorFactory private property
LazyIterator::getIterator public function
LazyIterator::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal