MediaWiki  master
FauxSearchResult.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
11 
12  public function __construct(
13  Title $title,
14  RevisionRecord $revision = null,
15  File $image = null,
16  $text = ''
17  ) {
18  $this->mTitle = $title;
19  $this->mRevision = $revision ? new Revision( $revision ) : null;
20  $this->mImage = $image;
21  $this->mText = $text;
22  }
23 
24 }
__construct(Title $title, RevisionRecord $revision=null, File $image=null, $text='')
A manually constructed search result, for use with FauxSearchResultSet.
Page revision base class.
trait RevisionSearchResultTrait
Transitional trait used to share the methods between SearchResult and RevisionSearchResult.
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition: File.php:61