Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
AbuseFilterWarningsException | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
getMessages | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace FileImporter\Exceptions; |
4 | |
5 | use Wikimedia\Message\MessageSpecifier; |
6 | |
7 | /** |
8 | * @license GPL-2.0-or-later |
9 | */ |
10 | class AbuseFilterWarningsException extends LocalizedImportException { |
11 | |
12 | /** @var MessageSpecifier[] */ |
13 | protected array $messages; |
14 | |
15 | /** |
16 | * @param MessageSpecifier[] $messages |
17 | */ |
18 | public function __construct( array $messages ) { |
19 | $this->messages = $messages; |
20 | parent::__construct( 'fileimporter-warningabusefilter' ); |
21 | } |
22 | |
23 | /** |
24 | * @return MessageSpecifier[] |
25 | */ |
26 | public function getMessages(): array { |
27 | return $this->messages; |
28 | } |
29 | |
30 | } |