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 getCollection( ): iterable|null

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

            
getGenerator() public method

public getGenerator( ): Generator

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

            
isCollected() public method

public isCollected( ): boolean

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

            
setCollection() public method

public setCollection( iterable $collection ): void
$collection iterable

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