Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MalformedBundle.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageBundleTranslation;
5
6use Exception;
7use MessageSpecifier;
8use Throwable;
9
15class 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}