3 namespace MediaWiki\Mail
;
5 use MediaWiki\User\UserIdentity
;
11 interface UserEmailContact
{
14 * Get the identity of the user this contact belongs to.
16 * @return UserIdentity
18 public function getUser(): UserIdentity
;
21 * Get user email address an empty string if unknown.
25 public function getEmail(): string;
28 * Get user real name or an empty string if unknown.
32 public function getRealName(): string;
35 * Whether user email was confirmed.
39 public function isEmailConfirmed(): bool;