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

        foreach ((array) $key as $k) {
            if (isset($this->params[$k])) {
                return $this->params[$k];
            }
        }

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

        foreach ((array) $key as $k) {
            if (isset($this->params[$k])) {
                return $this->params[$k];
            }
        }

        return $default;
    }
public function getParam ( $ key = null , $ default = null ) { if ( ! isset ( $ key ) ) { return $ this -> params ; } foreach ( ( array ) $ key as $ k ) { if ( isset ( $ this -> params [ $ k ] ) ) { return $ this -> params [ $ k ] ; } } return $ default ; }
Returns a single parameter value
@param string|array|null $key
@param mixed $default
@return mixed
Returns a single parameter value