getWikiId() */ public function getUserId( $wikiId = self::LOCAL ) : int; /** * @since 1.31 * * @return string The user's logical name. May be an IPv4 or IPv6 address for anonymous users. */ public function getName() : string; /** * @since 1.31 * * @param string|false $wikiId The wiki ID expected by the caller. * Use self::LOCAL for the local wiki. * * @return int The user's actor ID. May be 0 if no actor ID is set. * * @note This will trigger a deprecation warning when $wikiId mismatches $this->getWikiId(). * In the future, it will throw PreconditionException. */ public function getActorId( $wikiId = self::LOCAL ) : int; // TODO: we may want to (optionally?) provide a global ID, see CentralIdLookup. /** * @since 1.32 * * @param UserIdentity $user * @return bool */ public function equals( UserIdentity $user ) : bool; /** * @since 1.34 * * @return bool True if user is registered on this wiki, i.e., has a user ID. False if user is * anonymous or has no local account (which can happen when importing). This must be * equivalent to getId() != 0 and is provided for code readability. */ public function isRegistered() : bool; }