lithium\data\Collection::stats PHP Method

stats() public method

Gets the stat or stats associated with this Collection.
public stats ( string $name = null ) : mixed
$name string Stat name.
return mixed Single stat if `$name` supplied, else all stats for this `Collection`.
    public function stats($name = null)
    {
        if ($name) {
            return isset($this->_stats[$name]) ? $this->_stats[$name] : null;
        }
        return $this->_stats;
    }