5use InvalidArgumentException;
28 parent::__construct(
false, $hasMoreResults );
29 $this->results = array_map(
static function ( $result ) {
32 } elseif ( $result instanceof
Title ) {
35 throw new InvalidArgumentException(
'$results must contain Title or SearchResult' );
38 $this->totalHits = $totalHits;
43 return $this->totalHits;
49class_alias( FauxSearchResultSet::class,
'FauxSearchResultSet' );