lib/Elastica/ResultSet/DefaultBuilder.php
public function buildResultSet(Response $response, Query $query): ResultSet
    {
        $results = $this->buildResults($response);
        $resultSet = new ResultSet($response, $query, $results);

        return $resultSet;
    }
public function buildResultSet(Response $response, Query $query): ResultSet
    {
        $results = $this->buildResults($response);
        $resultSet = new ResultSet($response, $query, $results);

        return $resultSet;
    }
public function buildResultSet ( Response $ response , Query $ query ) : ResultSet { $ results = $ this -> buildResults ( $ response ) ; $ resultSet = new ResultSet ( $ response , $ query , $ results ) ; return $ resultSet ; }
Builds a ResultSet for a given Response.

@param Response $response
@param Query    $query

@return ResultSet
Builds a ResultSet for a given Response .