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 | |
3 | /** |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License along |
15 | * with this program; if not, write to the Free Software Foundation, Inc., |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | * http://www.gnu.org/copyleft/gpl.html |
18 | * |
19 | * @file |
20 | * @author DannyS712 |
21 | */ |
22 | |
23 | namespace MediaWiki\User; |
24 | |
25 | /** |
26 | * Shared interface for rigor levels when dealing with User methods |
27 | * |
28 | * @since 1.36 |
29 | */ |
30 | interface UserRigorOptions { |
31 | |
32 | /** |
33 | * Check that a user name is valid for batch processes, login and account |
34 | * creation. This does not allow auto-created temporary user patterns. |
35 | */ |
36 | public const RIGOR_CREATABLE = 'creatable'; |
37 | |
38 | /** |
39 | * Check that a user name is valid for batch processes and login |
40 | */ |
41 | public const RIGOR_USABLE = 'usable'; |
42 | |
43 | /** |
44 | * Check that a user name is valid for batch processes |
45 | */ |
46 | public const RIGOR_VALID = 'valid'; |
47 | |
48 | /** |
49 | * No validation at all |
50 | */ |
51 | public const RIGOR_NONE = 'none'; |
52 | |
53 | } |