protected function extractQueryParameters(array $params)
    {
        $availableParams = ['extract-archive'];
        $query = [];

        foreach ($params as $key => $value) {
            if (in_array($key, $availableParams)) {
                $query[$key] = $value;
            }
        }

        return $query;
    }
protected function extractQueryParameters(array $params)
    {
        $availableParams = ['extract-archive'];
        $query = [];

        foreach ($params as $key => $value) {
            if (in_array($key, $availableParams)) {
                $query[$key] = $value;
            }
        }

        return $query;
    }
protected function extractQueryParameters ( array $ params ) { $ availableParams = [ 'extract-archive' ] ; $ query = [ ] ; foreach ( $ params as $ key => $ value ) { if ( in_array ( $ key , $ availableParams ) ) { $ query [ $ key ] = $ value ; } } return $ query ; }
Parses upload parameters and assigns them to appropriate query parameters.

@param array $params

@return array
Parses upload parameters and assigns them to appropriate query parameters .