original_string: protected function elasticToModel()
      {
          $items = array();
  
          foreach ($this->response['hits']['hits'] as $hit) {
              $items[] = $this->instance->newFromElasticResults($hit);
          }
  
          return $items;
      }
code: protected function elasticToModel()
      {
          $items = array();
  
          foreach ($this->response['hits']['hits'] as $hit) {
              $items[] = $this->instance->newFromElasticResults($hit);
          }
  
          return $items;
      }
code_tokens: protected function elasticToModel ( ) { $ items = array ( ) ; foreach ( $ this -> response [ 'hits' ] [ 'hits' ] as $ hit ) { $ items [ ] = $ this -> instance -> newFromElasticResults ( $ hit ) ; } return $ items ; }
docstring: Builds a list of models from Elasticsearch
  results.
  
  @return array
docstring_tokens: Builds a list of models from Elasticsearch results .