Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / mocks / search / MockSearchResult.php
blob0ff1ceca6bdacd7f431730b816c315763d6475c0
1 <?php
3 class MockSearchResult extends RevisionSearchResult {
4 /** @var bool */
5 private $isMissingRevision = false;
6 /** @var bool */
7 private $isBrokenTitle = false;
8 /** @var string */
9 private $interwikiPrefix = '';
11 public function isMissingRevision() {
12 return $this->isMissingRevision;
15 public function setMissingRevision( $isMissingRevision ) {
16 $this->isMissingRevision = $isMissingRevision;
17 return $this;
20 public function isBrokenTitle() {
21 return $this->isBrokenTitle;
24 public function setBrokenTitle( $isBrokenTitle ) {
25 $this->isBrokenTitle = $isBrokenTitle;
26 return $this;
29 public function getInterwikiPrefix() {
30 return $this->interwikiPrefix;
33 public function setInterwikiPrefix( $interwikiPrefix ) {
34 $this->interwikiPrefix = $interwikiPrefix;
35 return $this;