Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
InvalidSenseClaims
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 asApiMessage
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Wikibase\Lexeme\MediaWiki\Api\Error;
4
5use MediaWiki\Api\ApiMessage;
6use MediaWiki\Message\Message;
7
8/**
9 * @license GPL-2.0-or-later
10 */
11class 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}