MediaWiki master
UserIdentity.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\User;
22
24
38interface UserIdentity extends WikiAwareEntity {
39
47 public function getId( $wikiId = self::LOCAL ): int;
48
54 public function getName(): string;
55
62 public function equals( ?UserIdentity $user ): bool;
63
74 public function isRegistered(): bool;
75}
Marker interface for entities aware of the wiki they belong to.
Interface for objects representing user identity.
isRegistered()
This must be equivalent to getId() != 0 and is provided for code readability.
equals(?UserIdentity $user)
getId( $wikiId=self::LOCAL)