Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
ScopeEntity | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
jsonSerialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\OAuth\Entity; |
4 | |
5 | use League\OAuth2\Server\Entities\ScopeEntityInterface; |
6 | use League\OAuth2\Server\Entities\Traits\EntityTrait; |
7 | |
8 | class ScopeEntity implements ScopeEntityInterface { |
9 | use EntityTrait; |
10 | |
11 | /** |
12 | * Create generic scope entity |
13 | * |
14 | * @param string $identifier |
15 | */ |
16 | public function __construct( $identifier ) { |
17 | $this->identifier = $identifier; |
18 | } |
19 | |
20 | /** |
21 | * @return string |
22 | */ |
23 | public function jsonSerialize(): string { |
24 | return $this->getIdentifier(); |
25 | } |
26 | } |