Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| ClaimEntity | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getValue | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\OAuth\Entity; |
| 4 | |
| 5 | class ClaimEntity { |
| 6 | |
| 7 | public function __construct( |
| 8 | protected string $name, |
| 9 | protected mixed $value |
| 10 | ) { |
| 11 | } |
| 12 | |
| 13 | public function getName(): string { |
| 14 | return $this->name; |
| 15 | } |
| 16 | |
| 17 | public function getValue(): mixed { |
| 18 | return $this->value; |
| 19 | } |
| 20 | |
| 21 | } |