original_string: public function store()
      {
          if ($this->id !== null) {
              $method = 'PUT';
              $path = '/' . $this->id;
          } else {
              $method = 'POST';
              $path = '';
          }
          $response = $this->request($method, $path, [], json_encode($this->data));
          $treatedContent = $response->getTreatedContent();
  
          $this->id = $treatedContent['_id'];
          $this->version = $treatedContent['_version'];
          $this->dirty = false;
      }
code: public function store()
      {
          if ($this->id !== null) {
              $method = 'PUT';
              $path = '/' . $this->id;
          } else {
              $method = 'POST';
              $path = '';
          }
          $response = $this->request($method, $path, [], json_encode($this->data));
          $treatedContent = $response->getTreatedContent();
  
          $this->id = $treatedContent['_id'];
          $this->version = $treatedContent['_version'];
          $this->dirty = false;
      }
code_tokens: public function store ( ) { if ( $ this -> id !== null ) { $ method = 'PUT' ; $ path = '/' . $ this -> id ; } else { $ method = 'POST' ; $ path = '' ; } $ response = $ this -> request ( $ method , $ path , [ ] , json_encode ( $ this -> data ) ) ; $ treatedContent = $ response -> getTreatedContent ( ) ; $ this -> id = $ treatedContent [ '_id' ] ; $ this -> version = $ treatedContent [ '_version' ] ; $ this -> dirty = false ; }
docstring: Stores this document. If ID is given, PUT will be used; else POST
  
  @throws ElasticSearchException
  @return void
docstring_tokens: Stores this document . If ID is given PUT will be used ; else POST