Translate extension for MediaWiki
Loading...
Searching...
No Matches
MalformedBundle.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\MessageBundleTranslation;
5
6
use Exception;
7
use MessageSpecifier;
8
use Throwable;
9
15
class
MalformedBundle
extends
Exception implements MessageSpecifier {
17
private
$key;
19
private
$params;
20
21
public
function
__construct(
22
string
$key,
23
array $params = [],
24
?Throwable $previous =
null
25
) {
26
parent::__construct( $key, 0, $previous );
27
$this->key = $key;
28
$this->params = $params;
29
}
30
32
public
function
getKey
() {
33
return
$this->key;
34
}
35
37
public
function
getParams
() {
38
return
$this->params;
39
}
40
}
MediaWiki\Extension\Translate\MessageBundleTranslation\MalformedBundle
Definition
MalformedBundle.php:15
MediaWiki\Extension\Translate\MessageBundleTranslation\MalformedBundle\getKey
getKey()
@inheritDoc
Definition
MalformedBundle.php:32
MediaWiki\Extension\Translate\MessageBundleTranslation\MalformedBundle\getParams
getParams()
@inheritDoc
Definition
MalformedBundle.php:37
src
MessageBundleTranslation
MalformedBundle.php
Generated by
1.10.0