Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| BoardElection2025PresentationModel | |
0.00% |
0 / 7 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| getIconType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPrimaryLink | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| getHeaderMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getBodyMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\WikimediaMessages\Notifications; |
| 4 | |
| 5 | use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel; |
| 6 | |
| 7 | class BoardElection2025PresentationModel extends EchoEventPresentationModel { |
| 8 | |
| 9 | /** |
| 10 | * @inheritDoc |
| 11 | */ |
| 12 | public function getIconType() { |
| 13 | return 'boardelection'; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * @inheritDoc |
| 18 | */ |
| 19 | public function getPrimaryLink() { |
| 20 | return [ |
| 21 | // @phpcs:ignore Generic.Files.LineLength.TooLong |
| 22 | 'url' => 'https://meta.wikimedia.org/wiki/Special:MyLanguage/Wikimedia_Foundation_elections/2025/Voter_eligibility_guidelines', |
| 23 | 'label' => $this->msg( 'wikimedia-boardelection-notification-action' )->text() |
| 24 | ]; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * @inheritDoc |
| 29 | */ |
| 30 | public function getHeaderMessage() { |
| 31 | return $this->msg( 'wikimedia-boardelection2025-notification-header' ); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * @inheritDoc |
| 36 | */ |
| 37 | public function getBodyMessage() { |
| 38 | return $this->msg( 'wikimedia-boardelection2025-notification-body' ); |
| 39 | } |
| 40 | |
| 41 | } |