Debian Codegraph @

includes/user/TempUser/SerialProvider.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\User\TempUser;
4
5 /**
6 * Interface for serial providers for temporary users.
7 *
8 * @since 1.39
9 */
10 interface SerialProvider {
11 /**
12 * Acquire an integer such that it is unlikely to be used again, and return it.
13 * @param int $year The current year, as calculated by the caller (or 0 if the
14 * year is not being used).
15 * @return int
16 */
17 public function acquireIndex( int $year = 0 ): int;
18 }