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