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 | * @var string |
34 | * |
35 | * Check that a user name is valid for batch processes, login and account |
36 | * creation. This does not allow auto-created temporary user patterns. |
37 | */ |
38 | public const RIGOR_CREATABLE = 'creatable'; |
39 | |
40 | /** |
41 | * @var string |
42 | * |
43 | * Check that a user name is valid for batch processes and login |
44 | */ |
45 | public const RIGOR_USABLE = 'usable'; |
46 | |
47 | /** |
48 | * @var string |
49 | * |
50 | * Check that a user name is valid for batch processes |
51 | */ |
52 | public const RIGOR_VALID = 'valid'; |
53 | |
54 | /** |
55 | * @var string |
56 | * |
57 | * No validation at all |
58 | */ |
59 | public const RIGOR_NONE = 'none'; |
60 | |
61 | } |