aboutsummaryrefslogtreecommitdiffstats
path: root/includes/user/TempUser/SerialMapping.php
blob: 455b7551795b38887fd405938b0093c7397df24c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace MediaWiki\User\TempUser;

/**
 * Interface for integer to string mappings for temporary user autocreation
 *
 * @since 1.39
 */
interface SerialMapping {
	/**
	 * @param int $index
	 * @return string The serial ID. This should consist of title characters
	 *   but should not be a single asterisk.
	 */
	public function getSerialIdForIndex( int $index ): string;
}