public function getInput($key = null, $default = null) {
        if ($key === null) {
            return $this->env['INPUT'];
        }
        return isset($this->env['INPUT'][$key]) ? $this->env['INPUT'][$key] : $default;
    }
public function getInput($key = null, $default = null) {
        if ($key === null) {
            return $this->env['INPUT'];
        }
        return isset($this->env['INPUT'][$key]) ? $this->env['INPUT'][$key] : $default;
    }
public function getInput ( $ key = null , $ default = null ) { if ( $ key === null ) { return $ this -> env [ 'INPUT' ] ; } return isset ( $ this -> env [ 'INPUT' ] [ $ key ] ) ? $ this -> env [ 'INPUT' ] [ $ key ] : $ default ; }
Get an item from the input array.

@param string|null $key Either a string key or null to get the entire array.
@param mixed|null $default The default to return if {@link $key} is not found.
@return string|array|null Returns the query string value or the input array itself.
Get an item from the input array .