Gets the query parameter.

@param string $name    The name of parameter
@param mixed  $default The default value

@return mixed Returns the parameter value if parameter exists,
$default otherwise
17140
public function getQueryParam($name, $default = null)
    {
        if (isset($this->queryParams[$name])) {
            return $this->queryParams[$name];
        }

        return $default;
    }
1047248
public function getPost($name, $default = null)
    {
        return isset($this->posts[$name]) ? $this->posts[$name] : $default;
    }
1133384
public function get($name, $default = null)
        {
            if (Arrays::exists($name, $this->data)) {
                return $this->data[$name];
            }

            return $default;
        }
1225022
public function get(string $name, $default = null)
    {
        $key = strtolower($name);
        if (!array_key_exists($key, $this->headers)) {
            return $default;
        }

        return $this->headers[$key]->getValuesAsString();
    }
139733
public function get($name, $default = null)
    {
        $result = $default;
        if (array_key_exists($name, $this->_data)) {
            $result = $this->_data[$name];
        }
        return $result;
    }
1179916
public function get(string $name, $default = null)
    {
        return ($this->exists($name)) ? $this->map[$name] : $default;
    }
679601
public function getParameter($key, $default = null) {
        $parameter = array_get($this->parameters, $key, $default);

        if ($parameter === null) {
            return $default;
        }

        return $parameter;
    }
1006920
public function get(string $name, $default = null)
    {
        return $this->has($name) ? $this->values[$name] : $default;
    }
937646
public function getQuery($name, $default = null)
    {
        return isset($this->gets[$name]) ? $this->gets[$name] : $default;
    }
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
642210
public function getVar($name, $default = null)
    {
        if (array_key_exists($name, $this->vars)) {
            return $this->vars[$name];
        }

        return $default;
    }
320876
public function getParam($name, $default = null)
    {
        if (is_array($name)) {
            return TreeTools::getByPath($this->components[self::QUERY], $name, $default);
        }
        if (isset($this->components[self::QUERY][$name])) {
            return $this->components[self::QUERY][$name];
        }

        return $default;
    }
326885
public function get($name, $default = null)
    {
        if (isset($this->body[$name])) {
            return $this->body[$name];
        }

        return $default;
    }
217843
public function query(string $key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->getQueryParams();
        }
        return $this->getQueryParams()[$key] ?? $default;
    }
410961
public function getServerParam($name, $default = null)
    {
        $params = $this->getServerParams();
        if (!isset($params[$name])) {
            return $default;
        }
        return $params[$name];
    }
358156
public function get($name, $default = null)
    {
        return isset($this->filters[$name]) ? $this->filters[$name] : $default;
    }
1256634
public function getValue($name, $default = null)
    {
        return isset($this->data[$name]) ? $this->data[$name] : $default;
    }