0 follower

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

InheritanceYiisoft\Data\Cycle\Reader\Cache\CachedCount

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Countable|null $collection )
$collection Countable|null

                public function __construct(private ?Countable $collection)
{
}

            
getCount() public method

public integer getCount ( )

                public function getCount(): int
{
    return $this->count ?? $this->cacheCount();
}