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 | use MediaWiki\User\UserIdentity; |
6 | |
7 | /** |
8 | * Interface for consequences which can be reverted |
9 | */ |
10 | interface ReversibleConsequence { |
11 | |
12 | /** |
13 | * @param UserIdentity $performer |
14 | * @param string $reason |
15 | * @return bool Whether the revert was successful |
16 | */ |
17 | public function revert( UserIdentity $performer, string $reason ): bool; |
18 | |
19 | } |