Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
RevisionSearchResult
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3use 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 */
10class 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}