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
18 lines
411 B
PHP
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 );
|
|
}
|
|
}
|