Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
PageTriageMarkAsReviewedPresentationModel | |
0.00% |
0 / 5 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
getIconType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getSecondaryLinks | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getHeaderMessage | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\PageTriage\Notifications; |
4 | |
5 | class PageTriageMarkAsReviewedPresentationModel extends PageTriagePresentationModel { |
6 | |
7 | /** |
8 | * @inheritDoc |
9 | */ |
10 | public function getIconType() { |
11 | return 'reviewed'; |
12 | } |
13 | |
14 | /** |
15 | * @inheritDoc |
16 | */ |
17 | public function getSecondaryLinks() { |
18 | return [ $this->getAgentLink() ]; |
19 | } |
20 | |
21 | /** |
22 | * @inheritDoc |
23 | */ |
24 | public function getHeaderMessage() { |
25 | $msg = parent::getHeaderMessage(); |
26 | |
27 | // parent adds agent & gender, this adds title as 3rd param |
28 | $msg->params( $this->getTruncatedTitleText( $this->event->getTitle(), true ) ); |
29 | |
30 | return $msg; |
31 | } |
32 | } |