public function getQueryParam($name, $defaultValue = null)
    {
        $params = $this->getQueryParams();

        return $params[$name] ?? $defaultValue;
    }
public function getQueryParam($name, $defaultValue = null)
    {
        $params = $this->getQueryParams();

        return $params[$name] ?? $defaultValue;
    }
public function getQueryParam ( $ name , $ defaultValue = null ) { $ params = $ this -> getQueryParams ( ) ; return $ params [ $ name ] ?? $ defaultValue ; }
Returns the named GET parameter value.
If the GET parameter does not exist, the second parameter passed to this method will be returned.
@param string $name the GET parameter name.
@param mixed $defaultValue the default parameter value if the GET parameter does not exist.
@return mixed the GET parameter value
@see getParsedBodyParam()
Returns the named GET parameter value . If the GET parameter does not exist the second parameter passed to this method will be returned .