0 follower

Final Class Yiisoft\Data\Cycle\Reader\Cache\CachedCollection

InheritanceYiisoft\Data\Cycle\Reader\Cache\CachedCollection

Method Details

Hide inherited methods

getCollection() public method

public iterable|null getCollection ( )

                public function getCollection(): ?iterable
{
    return $this->collection;
}

            
getGenerator() public method

public Generator getGenerator ( )

                public function getGenerator(): \Generator
{
    if ($this->collection !== null) {
        yield from $this->collection;
    }
}

            
isCollected() public method

public boolean isCollected ( )

                public function isCollected(): bool
{
    return $this->collection !== null;
}

            
setCollection() public method

public void setCollection ( iterable $collection )
$collection iterable

                public function setCollection(iterable $collection): void
{
    $this->collection = $collection;
}