You are here

public function ResultSet::setResultCount in Search API 8

Sets the result count of the search.

Parameters

int $result_count: The number of search results, in total.

Return value

$this

Overrides ResultSetInterface::setResultCount

File

src/Query/ResultSet.php, line 82

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function setResultCount($result_count) {
  $this->resultCount = $result_count;
  return $this;
}