Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
IncidentReportEmailStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getEmailContents | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\ReportIncident; |
4 | |
5 | use MediaWiki\Status\Status; |
6 | |
7 | class IncidentReportEmailStatus extends Status { |
8 | public array $emailContents = []; |
9 | |
10 | /** |
11 | * Gets the contents of the email that was sent using |
12 | * IEmailer::send. Will be the empty array if no |
13 | * attempt at sending an email was made (in the case |
14 | * of the configuration values used for sending an |
15 | * email being invalid). |
16 | * |
17 | * @return array |
18 | */ |
19 | public function getEmailContents(): array { |
20 | return $this->emailContents; |
21 | } |
22 | } |