FOF30\Download\Download::getParam PHP Method

getParam() private method

Used to decode the $params array
private getParam ( string $key, mixed $default = null ) : mixed
$key string The parameter key you want to retrieve the value for
$default mixed The default value, if none is specified
return mixed The value for this parameter key
    private function getParam($key, $default = null)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        } else {
            return $default;
        }
    }