getWikiId() ); $this->userIdentity = $userIdentity; } public function toString(): string { return $this->userIdentity->getName(); } public function getType(): int { return Block::TYPE_USER; } public function getSpecificity() { return 1; } public function getLogPage(): PageReference { return $this->getUserPage(); } public function getUserPage(): PageReference { return new PageReferenceValue( NS_USER, $this->userIdentity->getName(), $this->wikiId ); } public function getUserIdentity(): UserIdentity { return $this->userIdentity; } public function validateForCreation(): StatusValue { if ( !$this->userIdentity->isRegistered() ) { return StatusValue::newFatal( 'nosuchusershort', wfEscapeWikiText( $this->userIdentity->getName() ) ); } return StatusValue::newGood(); } protected function getLegacyUnion() { return $this->getUserIdentity(); } }