Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
ScoreDisabledException | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getBox | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
isTracked | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getStatsdKey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Score; |
4 | |
5 | use MediaWiki\Html\Html; |
6 | |
7 | class ScoreDisabledException extends ScoreException { |
8 | public function __construct() { |
9 | parent::__construct( 'score-exec-disabled' ); |
10 | } |
11 | |
12 | /** @inheritDoc */ |
13 | protected function getBox( string $content ): string { |
14 | return Html::rawElement( |
15 | 'div', |
16 | [ 'class' => 'mw-ext-score-disabled' ], |
17 | $content |
18 | ); |
19 | } |
20 | |
21 | /** @inheritDoc */ |
22 | public function isTracked() { |
23 | return false; |
24 | } |
25 | |
26 | /** @inheritDoc */ |
27 | public function getStatsdKey() { |
28 | return false; |
29 | } |
30 | } |