original_string: public function update($productId, ProductImage &$productImage)
      {
          $data = $productImage->exportData();
          $endpoint = '/admin/products/'.$productId.'/images/'.$productImage->id.'.json';
          $response = $this->request(
              $endpoint, 'PUT', array(
              'image' => $data
              )
          );
          $productImage->setData($response['image']);
      }
code: public function update($productId, ProductImage &$productImage)
      {
          $data = $productImage->exportData();
          $endpoint = '/admin/products/'.$productId.'/images/'.$productImage->id.'.json';
          $response = $this->request(
              $endpoint, 'PUT', array(
              'image' => $data
              )
          );
          $productImage->setData($response['image']);
      }
code_tokens: public function update ( $ productId , ProductImage & $ productImage ) { $ data = $ productImage -> exportData ( ) ; $ endpoint = '/admin/products/' . $ productId . '/images/' . $ productImage -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'image' => $ data ) ) ; $ productImage -> setData ( $ response [ 'image' ] ) ; }
docstring: Modify an existing product image
  
  @link   https://help.shopify.com/api/reference/product_image#update
  @param  integer      $productId
  @param  ProductImage $productImage
  @return void
docstring_tokens: Modify an existing product image