wiki.techinc.nl/includes/search/RevisionSearchResult.php
David Causse bf9a7cad61 Hard deprecate new SearchResult() and introduce RevisionSearchResult
Transitional step for the transformation of SearchResult into an
abstract base class:
- RevisionSearchResult is introduced to behave like SearchResult
- methods are currently shared between  RevisionSearchResult and
  SearchResult in the RevisionSearchResultTrait

Bug: T228626
Change-Id: I13d132de50f6c66086b7f9055d036f2e76667b27
2019-08-27 08:27:28 -07:00

18 lines
411 B
PHP

<?php
/**
* SearchResult class based on the Revision information.
* This class is suited for search engines that do not store a specialized version of the searched
* content.
*/
class RevisionSearchResult extends SearchResult {
use RevisionSearchResultTrait;
/**
* @param Title|null $title
*/
public function __construct( $title ) {
$this->mTitle = $title;
$this->initFromTitle( $title );
}
}