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 | * @section LICENSE |
4 | * This file is part of Wikimedia Slim application library |
5 | * |
6 | * Wikimedia Slim application library is free software: you can |
7 | * redistribute it and/or modify it under the terms of the GNU General Public |
8 | * License as published by the Free Software Foundation, either version 3 of |
9 | * the License, or (at your option) any later version. |
10 | * |
11 | * Wikimedia Slim application library is distributed in the hope that it |
12 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
13 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU General Public License along |
17 | * with Wikimedia Grants Review application. If not, see |
18 | * <http://www.gnu.org/licenses/>. |
19 | * |
20 | * @file |
21 | * @copyright © 2015 Bryan Davis, Wikimedia Foundation and contributors. |
22 | */ |
23 | |
24 | namespace Wikimedia\Slimapp\Auth; |
25 | |
26 | /** |
27 | * Basic user information. |
28 | * |
29 | * Implementations must be serializable. |
30 | * |
31 | * @copyright © 2015 Bryan Davis, Wikimedia Foundation and contributors. |
32 | */ |
33 | interface UserData { |
34 | |
35 | /** |
36 | * Get user's unique numeric id. |
37 | * @return int |
38 | */ |
39 | public function getId(); |
40 | |
41 | /** |
42 | * Get user's password. |
43 | * @return string |
44 | */ |
45 | public function getPassword(); |
46 | |
47 | /** |
48 | * Is this user blocked from logging into the application? |
49 | * @return bool True if user should not be allowed to log in to the |
50 | * application, false otherwise |
51 | */ |
52 | public function isBlocked(); |
53 | } |