Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
InvalidSenseClaims | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
asApiMessage | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Wikibase\Lexeme\MediaWiki\Api\Error; |
4 | |
5 | use MediaWiki\Api\ApiMessage; |
6 | use MediaWiki\Message\Message; |
7 | |
8 | /** |
9 | * @license GPL-2.0-or-later |
10 | */ |
11 | class InvalidSenseClaims implements ApiError { |
12 | |
13 | public function asApiMessage( $parameterName, array $path ) { |
14 | return new ApiMessage( new Message( |
15 | 'apierror-wikibaselexeme-invalid-sense-claims', |
16 | [ $parameterName, implode( '/', $path ) ] |
17 | ), 'bad-request' ); |
18 | } |
19 | |
20 | } |