Update git submodules
[mediawiki.git] / includes / auth / CreationReasonAuthenticationRequest.php
blob606b13ef2bda28f767677a1f3790f71eaa5297c3
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 public $required = self::OPTIONAL;
16 /**
17 * @inheritDoc
18 * @stable to override
20 public function getFieldInfo() {
21 return [
22 'reason' => [
23 'type' => 'string',
24 'label' => wfMessage( 'createacct-reason' ),
25 'help' => wfMessage( 'createacct-reason-help' ),