3 use MediaWiki\Title\Title
;
6 * A ISearchResultSet wrapper for TitleMatcher
8 class SearchNearMatchResultSet
extends SearchResultSet
{
10 * @param Title|null $match Title if matched, else null
12 public function __construct( $match ) {
13 if ( $match === null ) {
16 $this->results
= [ SearchResult
::newFromTitle( $match, $this ) ];
20 public function numRows() {
21 return $this->results ?
1 : 0;