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

@param string $name Stat name.
@return mixed Single stat if `$name` supplied, else all stats for this
`Collection`.
489391
public function stats($name = null) {
		if ($name) {
			return isset($this->_stats[$name]) ? $this->_stats[$name] : null;
		}
		return $this->_stats;
	}
934560
public function get($name)
    {
        if (isset($this->_loaded[$name])) {
            return $this->_loaded[$name];
        }

        return null;
    }
719983
public function getAggregation($name)
    {
        if ($this->aggregations && $this->aggregations->has($name)) {
            return $this->aggregations->get($name);
        } else {
            return null;
        }
    }
145210
public function getParam($name)
    {
        if ( ! is_string($name) || ! isset($this->data[$name])) {
            return null;
        }

        return $this->data[$name];
    }
323753
public function param($name)
    {
        $params = $this->params();
        if (isset($params[$name])) {
            return $params[$name];
        } else {
            return null;
        }
    }
196681
protected function stat($time, $name)
    {
        $stats = $this->get('stats', ['interval' => $time], (string) $time);

        return array_get($stats, 'response.result.objs.0.'.$name);
    }
1100391
public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
        if (array_key_exists($name, $_POST)) {
            return $_POST[$name];
        }
        return null;
    }
298029
public static function get($name)
    {
        static::isOn(true);

        $item = static::reach($name);

        if (($item['lifetime'] < time() && $item['lifetime'] > 0)) {
            static::remove($name);

            exception(SessionKeyNotFoundException::class, $name);
        } else {
            return $item['object'];
        }
    }
1031727
public function getParam($name)
        {
            $name = (string) $name;

            if (!array_key_exists($name, $this->_params)) {
                return null;
            }

            return $this->_params[$name];
        }
478081
private function getStatValue($name)
    {
        if (isset($this->_extra[self::ENTRY_STATS][$name])) {
            return $this->_extra[self::ENTRY_STATS][$name];
        }

        return 0;
    }
1260507
public function getIndexByName($name)
    {
        return isset($this->indexes[$name]) ? $this->indexes[$name] : null;
    }
106288
public static function get($name)
    {
        $name = ltrim($name, '\\');
        if (!$data = self::getInternal($name)) {
            return null;
        }

        return $data;
    }
827334
public function findByName($name)
    {
        return $this->filter(function (Contract $stat) use ($name) {
            return $stat->getSkill()->getName() === $name;
        })->first();
    }
459649
public function getResult($name)
    {
        if (!empty($this->results[$name])) {
            return $this->results[$name];
        }

        return null;
    }
962498
private function getOldAttribute($name)
    {
        if ($this->hasOldAttribute($name)) {
            $collection = $this->getOldAttributes();
            return $collection[$name];
        } else {
            // Error
        }
    }
357638
public function getFacetCount($name)
	{
		$count = $this->resultset->getFacetSet()->getFacet($name)->getValue();
		return $count;
	}
1229217
public function getGet($name){

		//check if null param supplied and return the while GET array
		if($name === null){

			//return the whole array
			return $this->getInputData;

		}

		//check for named paramter
		elseif ($this->KeyExists($name, $this->getInputData)) {
			
			//return the value of this key
			return htmlentities($this->getInputData[$name], ENT_QUOTES);

		}

		//this key does not exists, return bool false
		else{

			//return bool false
			return false;

		}

	}