X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserIdentity.php;h=ac9bbec3f1fea3dc59fde5fc8c46c9e8043a7667;hb=ba69994b3a7c554db64d8e6389cc1d225035f603;hp=57a0408d7cad4fdce7402f6d7e6d6e4098c929fd;hpb=236488d398046838059f758b0915341648b64c7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserIdentity.php b/includes/user/UserIdentity.php index 57a0408d7c..ac9bbec3f1 100644 --- a/includes/user/UserIdentity.php +++ b/includes/user/UserIdentity.php @@ -45,7 +45,21 @@ interface UserIdentity { */ public function getName(); - // TODO: in the future, we should also provide access to the actor ID here. + /** + * @since 1.31 + * + * @return int The user's actor ID. May be 0 if no actor ID is set. + */ + public function getActorId(); + // 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 ); + }