Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
MWOAuthToken | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
addVerifyCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getVerifyCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
addAccessKey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getAccessKey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\OAuth\Backend; |
4 | |
5 | use MediaWiki\Extension\OAuth\Lib\OAuthToken; |
6 | |
7 | #[\AllowDynamicProperties] |
8 | class MWOAuthToken extends OAuthToken { |
9 | /** @var string|null Keep the verification code here */ |
10 | protected $code; |
11 | /** @var string|null Token to find grant in oauth_accepted_consumer */ |
12 | protected $accessTokenKey; |
13 | |
14 | public function addVerifyCode( $code ) { |
15 | $this->code = $code; |
16 | } |
17 | |
18 | public function getVerifyCode() { |
19 | return $this->code; |
20 | } |
21 | |
22 | public function addAccessKey( $key ) { |
23 | $this->accessTokenKey = $key; |
24 | } |
25 | |
26 | public function getAccessKey() { |
27 | return $this->accessTokenKey; |
28 | } |
29 | } |