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