original_string: public function create(SmartCollection &$smartCollection)
      {
          $data = $smartCollection->exportData();
          $endpoint = '/admin/smart_collections.json';
          $response = $this->request(
              $endpoint, 'POST', array(
              'smart_collection' => $data
              )
          );
          $smartCollection->setData($response['smart_collection']);
      }
code: public function create(SmartCollection &$smartCollection)
      {
          $data = $smartCollection->exportData();
          $endpoint = '/admin/smart_collections.json';
          $response = $this->request(
              $endpoint, 'POST', array(
              'smart_collection' => $data
              )
          );
          $smartCollection->setData($response['smart_collection']);
      }
code_tokens: public function create ( SmartCollection & $ smartCollection ) { $ data = $ smartCollection -> exportData ( ) ; $ endpoint = '/admin/smart_collections.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'smart_collection' => $ data ) ) ; $ smartCollection -> setData ( $ response [ 'smart_collection' ] ) ; }
docstring: Create a new smart collection
  
  @link   https://help.shopify.com/api/reference/smartcollection#create
  @param  SmartCollection $smartCollection
  @return void
docstring_tokens: Create a new smart collection