The funky iteration here was at best annoying. Switch it over to an iterator based approach with appropriate BC code to simulate the old iteration style. Depends-On: I19a8d6621a130811871dec9335038797627d9448 Change-Id: I9fccda15dd58a0dc35771d3b5cd7a6e8b02514a0
32 lines
714 B
PHP
32 lines
714 B
PHP
<?php
|
|
|
|
class MockSearchResult extends SearchResult {
|
|
private $isMissingRevision = false;
|
|
private $isBrokenTitle = false;
|
|
|
|
public function isMissingRevision() {
|
|
return $this->isMissingRevision;
|
|
}
|
|
public function setMissingRevision( $isMissingRevision ) {
|
|
$this->isMissingRevision = $isMissingRevision;
|
|
return $this;
|
|
}
|
|
|
|
public function isBrokenTitle() {
|
|
return $this->isBrokenTitle;
|
|
}
|
|
|
|
public function setBrokenTitle( $isBrokenTitle ) {
|
|
$this->isBrokenTitle = $isBrokenTitle;
|
|
return $this;
|
|
}
|
|
|
|
public function getInterwikiPrefix() {
|
|
return $this->interwikiPrefix;
|
|
}
|
|
|
|
public function setInterwikiPrefix( $interwikiPrefix ) {
|
|
$this->interwikiPrefix = $interwikiPrefix;
|
|
return $this;
|
|
}
|
|
}
|