Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
FakeReadableTtmServer | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
query | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
isLocalSuggestion | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
expandLocation | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\TtmServer; |
5 | |
6 | use TTMServer; |
7 | |
8 | /** |
9 | * NO-OP readable version of TTMServer when it is disabled. |
10 | * @ingroup TTMServer |
11 | */ |
12 | class FakeReadableTtmServer extends TTMServer implements ReadableTtmServer { |
13 | public function query( string $sourceLanguage, string $targetLanguage, string $text ): array { |
14 | return []; |
15 | } |
16 | |
17 | public function isLocalSuggestion( array $suggestion ): bool { |
18 | return false; |
19 | } |
20 | |
21 | public function expandLocation( array $suggestion ): string { |
22 | return ''; |
23 | } |
24 | } |