summaryrefslogtreecommitdiff
blob: a6d337d5979df7c870c56b87b8b7009fb8bd1056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\SystemUsers;

use User;

/**
 * FuzzyBot - the misunderstood workhorse.
 *
 * @author Niklas Laxström
 * @license GPL-2.0-or-later
 * @since 2012-01-02
 */
class FuzzyBot {
	public static function getUser(): User {
		return User::newSystemUser( self::getName(), [ 'steal' => true ] );
	}

	public static function getName(): string {
		global $wgTranslateFuzzyBotName;

		return $wgTranslateFuzzyBotName;
	}
}