Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
UnsupportedTranslationAid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getData | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\TranslatorInterface\Aid; |
5 | |
6 | use MediaWiki\Extension\Translate\TranslatorInterface\TranslationHelperException; |
7 | |
8 | /** |
9 | * Dummy translation aid that always errors |
10 | * @author Harry Burt |
11 | * @license GPL-2.0-or-later |
12 | * @since 2013-03-29 |
13 | * @ingroup TranslationAids |
14 | * @phan-file-suppress PhanPluginNeverReturnMethod |
15 | */ |
16 | class UnsupportedTranslationAid extends TranslationAid { |
17 | public function getData(): array { |
18 | throw new TranslationHelperException( 'This translation aid is disabled' ); |
19 | } |
20 | } |