24 private $invalidPageTitleRename;
29 $this->invalidPageTitleRename = $e;
32 public function getOldTitle(): Title {
36 public function getNewTitle(): ?Title {
40 public function getOldTalkpage(): ?Title {
41 return $this->oldTalkpage;
44 public function getNewTalkpage(): ?Title {
45 return $this->newTalkpage;
48 public function hasTalkpage():
bool {
49 return $this->oldTalkpage !==
null;
52 public function getRenameErrorCode():
int {
53 return $this->invalidPageTitleRename ?
54 $this->invalidPageTitleRename->getCode() : PageTitleRenamer::NO_ERROR;
57 public function setTalkpage( Title $oldTalkpage, ?Title $newTalkpage ):
void {
58 $this->oldTalkpage = $oldTalkpage;
59 $this->newTalkpage = $newTalkpage;