| 1 | <?php |
| 2 | |
| 3 | use MediaWiki\Title\Title; |
| 4 | |
| 5 | /** |
| 6 | * SearchResult class based on the revision information. |
| 7 | * This class is suited for search engines that do not store a specialized version of the searched |
| 8 | * content. |
| 9 | */ |
| 10 | class RevisionSearchResult extends SearchResult { |
| 11 | use RevisionSearchResultTrait; |
| 12 | |
| 13 | /** |
| 14 | * @param Title|null $title |
| 15 | */ |
| 16 | public function __construct( $title ) { |
| 17 | $this->mTitle = $title; |
| 18 | $this->initFromTitle( $title ); |
| 19 | } |
| 20 | } |