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 | namespace MediaWiki\Extension\OATHAuth; |
4 | |
5 | use JsonSerializable; |
6 | use stdClass; |
7 | |
8 | interface IAuthKey extends JsonSerializable { |
9 | |
10 | /** |
11 | * @return int|null the ID of this key in the oathauth_devices table, or null if this key has not been saved yet |
12 | */ |
13 | public function getId(): ?int; |
14 | |
15 | /** |
16 | * @param array|stdClass $data |
17 | * @param OATHUser $user |
18 | * @return bool |
19 | */ |
20 | public function verify( $data, OATHUser $user ); |
21 | } |