original_string: public function all()
      {
          $documents = array_merge($this->getSaved(), $this->getAdd());
  
          foreach ($this->getRemove() as $document) {
              if (false !== $key = array_search($document, $documents)) {
                  unset($documents[$key]);
              }
          }
  
          return array_values($documents);
      }
code: public function all()
      {
          $documents = array_merge($this->getSaved(), $this->getAdd());
  
          foreach ($this->getRemove() as $document) {
              if (false !== $key = array_search($document, $documents)) {
                  unset($documents[$key]);
              }
          }
  
          return array_values($documents);
      }
code_tokens: public function all ( ) { $ documents = array_merge ( $ this -> getSaved ( ) , $ this -> getAdd ( ) ) ; foreach ( $ this -> getRemove ( ) as $ document ) { if ( false !== $ key = array_search ( $ document , $ documents ) ) { unset ( $ documents [ $ key ] ) ; } } return array_values ( $ documents ) ; }
docstring: Returns the saved + add - removed elements.
  
  @api
docstring_tokens: Returns the saved + add - removed elements .