Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
EchoNewsletterUnsubscribedPresentationModel | |
0.00% |
0 / 10 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
getIconType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPrimaryLink | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
getHeaderMessage | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Newsletter\Notifications; |
4 | |
5 | class EchoNewsletterUnsubscribedPresentationModel 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-unsubscribed' ) |
15 | ->params( $this->getNewsletterName() ) |
16 | ]; |
17 | } |
18 | |
19 | public function getHeaderMessage() { |
20 | [ $agentFormattedName, $agentGenderName ] = $this->getAgentForOutput(); |
21 | $msg = $this->msg( 'newsletter-notification-unsubscribed' ); |
22 | $msg->params( $this->getNewsletterName() ); |
23 | return $msg; |
24 | } |
25 | |
26 | } |