MediaWiki master
MediaWiki\User\TempUser\SerialProvider Interface Reference

Interface for serial providers for temporary users. More...

Inherited by MediaWiki\User\TempUser\DBSerialProvider.

Public Member Functions

 acquireIndex (int $year=0)
 Acquire an integer such that it is unlikely to be used again, and return it.
 

Detailed Description

Interface for serial providers for temporary users.

Since
1.39

Definition at line 10 of file SerialProvider.php.

Member Function Documentation

◆ acquireIndex()

MediaWiki\User\TempUser\SerialProvider::acquireIndex ( int $year = 0)

Acquire an integer such that it is unlikely to be used again, and return it.

Parameters
int$yearThe current year, as calculated by the caller (or 0 if the year is not being used).
Returns
int

Implemented in MediaWiki\User\TempUser\DBSerialProvider.


The documentation for this interface was generated from the following file: