Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
LexemeTermLanguageCanNotBeEmpty | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
asApiMessage | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Wikibase\Lexeme\MediaWiki\Api\Error; |
4 | |
5 | /** |
6 | * @license GPL-2.0-or-later |
7 | */ |
8 | class LexemeTermLanguageCanNotBeEmpty implements ApiError { |
9 | |
10 | /** @inheritDoc */ |
11 | public function asApiMessage( $parameterName, array $path ) { |
12 | $message = new \Message( |
13 | 'apierror-wikibaselexeme-lexeme-term-language-cannot-be-empty', |
14 | [] |
15 | ); |
16 | return new \ApiMessage( |
17 | $message, |
18 | 'unprocessable-request', |
19 | [ |
20 | 'parameterName' => $parameterName, |
21 | 'fieldPath' => $path, |
22 | ] |
23 | ); |
24 | } |
25 | |
26 | } |