Final Class Yiisoft\Data\Cycle\Reader\Cache\CachedCollection
| Inheritance | Yiisoft\Data\Cycle\Reader\Cache\CachedCollection |
|---|
Public Methods
Method Details
| public iterable|null getCollection ( ) |
public function getCollection(): ?iterable
{
return $this->collection;
}
| public Generator getGenerator ( ) |
public function getGenerator(): \Generator
{
if ($this->collection !== null) {
yield from $this->collection;
}
}
| public boolean isCollected ( ) |
public function isCollected(): bool
{
return $this->collection !== null;
}
| public void setCollection ( iterable $collection ) | ||
| $collection | iterable | |
public function setCollection(iterable $collection): void
{
$this->collection = $collection;
}
Signup or Login in order to comment.