24 $this->results = array_map(
static function ( $result ) {
27 } elseif ( $result instanceof
Title ) {
30 throw new InvalidArgumentException(
'$results must contain Title or SearchResult' );
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.
bool $hasMoreResults
True when there are more pages of search results available.
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.