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