Get param from router

@param string $name
@param mixed  $value

@return mixed|null
195092
public function param(string $name, $value = null)
    {
        if ($value === null) {
            return $this->params[$name] ?? null;
        }

        return $this->params[$name] = $value;
    }
160220
static public function getRoute($name) {
        $route_by_name = isset(self::$_stored_names[$name]) ?
            self::$_stored_names[$name] :
            null;
        
        if (!is_null($route_by_name) && isset(self::$_stored_routes[$route_by_name])) {
            return self::$_stored_routes[$route_by_name];
        }

        return null;
    }
268558
protected function getValueArray($name, $value = null)
    {
        // Looks for the values in "old"
        if (!$this->oldInputIsEmpty()) {
            if (is_null($this->session->getOldInput($name))) { // we have old input, but none for this name
                return [];
            } else {
                return $this->session->getOldInput($name);
            }
        }
        // Looks for the values in the Request
        if (isset($this->request) and $this->request->input($name)) {
            return $this->request->input($name);
        }
        // Returns the default value
        return empty($value) ? [] : $value;
    }
1132898
public function addGetParameter($name, $value)
    {
        if (!$this->hasGetPostParamValue($name, true))
        {
            $this->getParams[$name] = $value;
            return true;
        }
        else
        {
            return false;
        }
    }
744868
public function input(string $name, $value = null)
    {
        if ($value !== null) {
            !$this->all && $this->inputs();

            Arrays::set($this->input, $name, $value);
            $this->cache = [];

            return $value;
        }

        if (isset($this->input[$name])) {
            return $this->input[$name];
        }

        if (\array_key_exists($name, $this->cache)) {
            return $this->cache[$name];
        }

        if ($this->all) {
            $found = Arrays::get($this->input, $name);
        } else {
            if ($this->serverRequest->getMethod() !== 'GET') {
                $found = $this->request($name);
            }

            $found = $found ?? $this->query($name);
        }

        return $this->cache[$name] = $found;
    }
134278
public function get($name)
    {
        return isset($this->routes[$name]) ? $this->routes[$name] : null;
    }
100774
public function setParam($name, $value)
	{
		if (null === $this->params)
		{
			$this->params = $this->loadParams();
		}

		$this->params->set($name, $value);

		return $this;
	}
40249
public function headerLine($name, $value)
    {
        if (stripos($name, 'X-') !== false) {
            return null;
        }

        return parent::headerLine($name, $value);
    }
586983
public function bindParams($name, $value=null) {
        
        if (is_array($name)) {
            foreach ($name as $k=>$v) {
                $this->binds[':'.$k]  =   $v;
            }
        } elseif ($value) {
            $this->binds[':'.$name] = $value;
        }
        
        return $this;
    }
677630
public function getRequestParameter($name, $raw = false)
    {
        $value = null;

        $value = $this->getPostParameter($name, $raw);
        if (!isset($value)) {
            $value = $this->getGetParameter($name, $raw);
        }

        return $value;
    }
323753
public function param($name)
    {
        $params = $this->params();
        if (isset($params[$name])) {
            return $params[$name];
        } else {
            return null;
        }
    }
808763
protected function getDefaultValue($name, $value = null)
    {
        if ($value !== null)
            return $value;

        if ($this->model && $this->model->has($name))
            return $this->model->get($name);

        return $value;
    }
1239426
public function getDrupalParameter($name)
    {
        return isset($this->drupalParameters[$name]) ? $this->drupalParameters[$name] : null;
    }
1322415
private static function getReferParams($name)
    {
        static $params = null;

        if (is_null($params)) {
            if (isset($_SERVER['HTTP_REFERER'])) {
                $args = parse_url($_SERVER['HTTP_REFERER']);
                parse_str($args['query'], $params);
            }
        }
        return isset($params[$name]) ? $params[$name] : null;
    }
1032533
public function getRouteByAlias($name)
    {
        $aliases = $this->getAliases();

        return isset($aliases[$name]) ? $aliases[$name] : NULL;
    }
887329
public function getParam($name)
    {
        $name = strtoupper($name);
        if (isset($_SERVER[$name])) {
            return $_SERVER[$name];
        }
        return null;
    }
1326705
public function getParam ($name)
		{
			if (isset( $this->_params[ $name ] ))
				return $this->_params[ $name ];
			else
				return null;
		}