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

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

        return $default;
    }
public function getParam ( $ name , $ default = null ) { if ( isset ( $ this -> params [ $ name ] ) ) { return $ this -> params [ $ name ] ; } return $ default ; }
Gets parameter.

If the parameter does not exist, the $default value will be returned.

@param string $name    The parameter name
@param mixed  $default Optional; the default value

@return mixed The parameter value if present, $default otherwise
Gets parameter .