Gets the stat or stats associated with this `Collection`.

Parameters

  • string $name Stat name.

Returns

mixed Single stat if `$name` supplied, else all stats for this `Collection`.

Source

						public function stats($name = null) {
		if ($name) {
			return isset($this->_stats[$name]) ? $this->_stats[$name] : null;
		}
		return $this->_stats;
	}