1<?php
2
3namespace Elastica\ResultSet;
4
5use Elastica\Query;
6use Elastica\Response;
7use Elastica\ResultSet;
8
9interface BuilderInterface
10{
11    /**
12     * Builds a ResultSet given a specific response and query.
13     *
14     * @param Response $response
15     * @param Query    $query
16     *
17     * @return ResultSet
18     */
19    public function buildResultSet(Response $response, Query $query): ResultSet;
20}
21