public function getKeyParam($name, $default = null, $optional = false)
    {
        $value = $this->getIntParam($name, $default, $optional);
        if ($value !== null) {
            if ($value <= 0) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
public function getKeyParam($name, $default = null, $optional = false)
    {
        $value = $this->getIntParam($name, $default, $optional);
        if ($value !== null) {
            if ($value <= 0) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
public function getKeyParam ( $ name , $ default = null , $ optional = false ) { $ value = $ this -> getIntParam ( $ name , $ default , $ optional ) ; if ( $ value !== null ) { if ( $ value <= 0 ) { throw new InvalidParameterException ( "Parameter '{$name}' is invalid" ) ; } } return $ value ; }
Returns the value of the specified parameter as an integer value.
The parameter has to be greater than 0, else an InvalidParameterException is thrown.

@param string $name
@param null   $default
@param bool   $optional
@return int
@throws InvalidParameterException
Returns the value of the specified parameter as an integer value . The parameter has to be greater than 0 else an InvalidParameterException is thrown .