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']);
    }
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']);
    }
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' ] ) ; }
Modify an existing product image

@link   https://help.shopify.com/api/reference/product_image#update
@param  integer      $productId
@param  ProductImage $productImage
@return void
Modify an existing product image