Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
EchoNewsletterPublisherRemovedPresentationModel | |
0.00% |
0 / 11 |
|
0.00% |
0 / 3 |
12 | |
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 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Newsletter\Notifications; |
4 | |
5 | class EchoNewsletterPublisherRemovedPresentationModel extends BaseNewsletterPresentationModel { |
6 | |
7 | public function getIconType() { |
8 | return 'site'; |
9 | } |
10 | |
11 | public function getPrimaryLink() { |
12 | return [ |
13 | 'url' => $this->getNewsletterUrl(), |
14 | 'label' => $this->msg( 'newsletter-notification-link-text-del-publisher' )->text() |
15 | ]; |
16 | } |
17 | |
18 | public function getHeaderMessage() { |
19 | [ $agentFormattedName, $agentGenderName ] = $this->getAgentForOutput(); |
20 | $msg = $this->msg( 'notification-header-newsletter-delpublisher' ); |
21 | $msg->params( $this->getNewsletterName() ); |
22 | $msg->params( $this->getViewingUserForGender() ); |
23 | $msg->params( $agentGenderName ); |
24 | return $msg; |
25 | } |
26 | } |