Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\User\TempUser;
4
5/**
6 * Interface for serial providers for temporary users.
7 *
8 * @since 1.39
9 */
10interface 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}