original_string: public function replace(array $documents)
      {
          $this->clearAdd();
          $this->clearRemove();
  
          $this->remove($this->getSaved());
          $this->add($documents);
      }
code: public function replace(array $documents)
      {
          $this->clearAdd();
          $this->clearRemove();
  
          $this->remove($this->getSaved());
          $this->add($documents);
      }
code_tokens: public function replace ( array $ documents ) { $ this -> clearAdd ( ) ; $ this -> clearRemove ( ) ; $ this -> remove ( $ this -> getSaved ( ) ) ; $ this -> add ( $ documents ) ; }
docstring: Replace all documents.
  
  @param array $documents An array of documents.
  
  @api
docstring_tokens: Replace all documents .