Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / mail / UserEmailContact.php
blobfc012819f652b8b53f4ec9d8e055234cde39fccb
1 <?php
3 namespace MediaWiki\Mail;
5 use MediaWiki\User\UserIdentity;
7 /**
8 * @since 1.36
9 * @ingroup Mail
11 interface UserEmailContact {
13 /**
14 * Get the identity of the user this contact belongs to.
16 * @return UserIdentity
18 public function getUser(): UserIdentity;
20 /**
21 * Get user email address an empty string if unknown.
23 * @return string
25 public function getEmail(): string;
27 /**
28 * Get user real name or an empty string if unknown.
30 * @return string
32 public function getRealName(): string;
34 /**
35 * Whether user email was confirmed.
37 * @return bool
39 public function isEmailConfirmed(): bool;