Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\AbuseFilter\Consequences\Consequence; |
4 | |
5 | /** |
6 | * Interface for consequences that can abort an action hook with an error message |
7 | */ |
8 | interface HookAborterConsequence { |
9 | /** |
10 | * Return a message specifier that will be used to fail the hook |
11 | * @return array First element is the key, then the parameters |
12 | */ |
13 | public function getMessage(): array; |
14 | } |