X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmail%2FMailAddress.php;h=1686bbb0480b14b48f3d610c82b4947493251c72;hb=a88aff710b197533e388943306d7af5f9706f1be;hp=6817908860f4cdff7b071f7d8c147a5a35b7da58;hpb=6b0d5a7b4ecd33833eb9d6e5582395b5b39e7037;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/mail/MailAddress.php b/includes/mail/MailAddress.php index 6817908860..1686bbb048 100644 --- a/includes/mail/MailAddress.php +++ b/includes/mail/MailAddress.php @@ -30,6 +30,21 @@ * header format when requested. */ class MailAddress { + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $realName; + + /** + * @var string + */ + public $address; + /** * @param string $address String with an email address, or a User object * @param string $name Human-readable name if a string address is given @@ -38,7 +53,7 @@ class MailAddress { function __construct( $address, $name = null, $realName = null ) { if ( is_object( $address ) && $address instanceof User ) { // Old calling format, now deprecated - wfDeprecated( __METHOD__ . ' with a User object' , '1.24' ); + wfDeprecated( __METHOD__ . ' with a User object', '1.24' ); $this->address = $address->getEmail(); $this->name = $address->getName(); $this->realName = $address->getRealName();