AlgoliaSearch\IndexBrowser::__construct PHP Method

__construct() public method

IndexBrowser constructor.
public __construct ( Index $index, string $query, array | null $params = null, integer | null $cursor = null )
$index Index
$query string
$params array | null
$cursor integer | null
    public function __construct(Index $index, $query, $params = null, $cursor = null)
    {
        $this->index = $index;
        $this->query = $query;
        $this->params = $params;
        $this->position = 0;
        $this->doQuery($cursor);
    }