/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Collection
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Collection/Collection.php (2609B)
buffered());
}
/**
* Unserializes the passed string and rebuilds the Collection instance
*
* @param string $collection The serialized collection
* @return void
*/
public function unserialize($collection): void
{
$this->__construct(unserialize($collection));
}
/**
* {@inheritDoc}
*
* @return int
*/
public function count(): int
{
$traversable = $this->optimizeUnwrap();
if (is_array($traversable)) {
return count($traversable);
}
return iterator_count($traversable);
}
/**
* {@inheritDoc}
*
* @return int
*/
public function countKeys(): int
{
return count($this->toArray());
}
/**
* Returns an array that can be used to describe the internal state of this
* object.
*
* @return array
*/
public function __debugInfo(): array
{
return [
'count' => $this->count(),
];
}
}