original_string: public function update(Customer &$customer)
      {
          $data = $customer->exportData();
          $endpoint = '/admin/customers/'.$customer->id.'.json';
          $response = $this->request(
              $endpoint, 'PUT', array(
              'customer' => $data
              )
          );
          $customer->setData($response['customer']);
      }
code: public function update(Customer &$customer)
      {
          $data = $customer->exportData();
          $endpoint = '/admin/customers/'.$customer->id.'.json';
          $response = $this->request(
              $endpoint, 'PUT', array(
              'customer' => $data
              )
          );
          $customer->setData($response['customer']);
      }
code_tokens: public function update ( Customer & $ customer ) { $ data = $ customer -> exportData ( ) ; $ endpoint = '/admin/customers/' . $ customer -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'customer' => $ data ) ) ; $ customer -> setData ( $ response [ 'customer' ] ) ; }
docstring: Update a customer
  
  @link   https://help.shopify.com/api/reference/customer#update
  @param  Customer $customer
  @return void
docstring_tokens: Update a customer