Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
AddImageLogFormatter | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
getMessageKey | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\NewcomerTasks\AddImage; |
4 | |
5 | use LogFormatter; |
6 | |
7 | class AddImageLogFormatter extends LogFormatter { |
8 | |
9 | /** @inheritDoc */ |
10 | protected function getMessageKey() { |
11 | $accepted = $this->entry->getParameters()['accepted']; |
12 | return $accepted |
13 | ? 'logentry-growthexperiments-addimage-accepted' |
14 | : 'logentry-growthexperiments-addimage-rejected'; |
15 | } |
16 | |
17 | } |