MediaWiki master
UserIdentity.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\User;
8
10
24interface UserIdentity extends WikiAwareEntity {
25
32 public function getId( $wikiId = self::LOCAL ): int;
33
39 public function getName(): string;
40
47 public function equals( ?UserIdentity $user ): bool;
48
59 public function isRegistered(): bool;
60}
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)