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 __construct( Countable|null $collection ): mixed
$collection Countable|null

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

            
getCount() public method

public getCount( ): integer

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