Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / auth / CreationReasonAuthenticationRequest.php
blob2bed1c33f222ea0d82b771772b36a3e5600636f5
1 <?php
3 namespace MediaWiki\Auth;
5 /**
6 * Authentication request for the reason given for account creation.
7 * Used in logs and for notification.
8 * @stable to extend
9 */
10 class CreationReasonAuthenticationRequest extends AuthenticationRequest {
11 /** @var string Account creation reason (only used when creating for someone else) */
12 public $reason;
14 /** @inheritDoc */
15 public $required = self::OPTIONAL;
17 /**
18 * @inheritDoc
19 * @stable to override
21 public function getFieldInfo() {
22 return [
23 'reason' => [
24 'type' => 'string',
25 'label' => wfMessage( 'createacct-reason' ),
26 'help' => wfMessage( 'createacct-reason-help' ),