2022-02-28 03:05:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MediaWiki\User\TempUser;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface for serial providers for temporary users.
|
|
|
|
|
*
|
|
|
|
|
* @since 1.39
|
|
|
|
|
*/
|
|
|
|
|
interface SerialProvider {
|
|
|
|
|
/**
|
|
|
|
|
* Acquire an integer such that it is unlikely to be used again, and return it.
|
2023-12-20 11:22:13 +00:00
|
|
|
* @param int $year The current year, as calculated by the caller (or 0 if the
|
|
|
|
|
* year is not being used).
|
2022-02-28 03:05:58 +00:00
|
|
|
* @return int
|
|
|
|
|
*/
|
2023-12-20 11:22:13 +00:00
|
|
|
public function acquireIndex( int $year = 0 ): int;
|
2022-02-28 03:05:58 +00:00
|
|
|
}
|