23 parent::__construct(
false, $hasMoreResults );
24 $this->results = array_map(
static function ( $result ) {
27 } elseif ( $result instanceof
Title ) {
30 throw new InvalidArgumentException(
'$results must contain Title or SearchResult' );
33 $this->totalHits = $totalHits;
38 return $this->totalHits;
A manually constructed search result set.
__construct(array $results, $totalHits=null)
getTotalHits()
Some search modes return a total hit count for the query in the entire article database....
A manually constructed search result, for use with FauxSearchResultSet.
SearchResult[] $results
Cache of results - serialization of the result iterator as an array.
NOTE: this class is being refactored into an abstract base class.
Represents a title within MediaWiki.