25 parent::__construct(
false, $hasMoreResults );
26 $this->results = array_map(
static function ( $result ) {
29 } elseif ( $result instanceof
Title ) {
32 throw new InvalidArgumentException(
'$results must contain Title or SearchResult' );
35 $this->totalHits = $totalHits;
40 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.