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\Hooks; |
4 | |
5 | use MediaWiki\Extension\AbuseFilter\VariableGenerator\RCVariableGenerator; |
6 | use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder; |
7 | use MediaWiki\User\User; |
8 | use RecentChange; |
9 | |
10 | interface AbuseFilterGenerateVarsForRecentChangeHook { |
11 | /** |
12 | * Hook runner for the `AbuseFilterGenerateVarsForRecentChange` hook |
13 | * |
14 | * Hook that allows extensions to generate variables from a RecentChange row with a non-standard model. |
15 | * The hooks `AbuseFilterGenerate(Title|User|Generic)Hook` should be used for computing single variables |
16 | * in standard RC rows. |
17 | * |
18 | * @param RCVariableGenerator $generator |
19 | * @param RecentChange $rc |
20 | * @param VariableHolder $vars |
21 | * @param User $contextUser |
22 | * @return bool|void True or no return value to continue or false to abort |
23 | */ |
24 | public function onAbuseFilterGenerateVarsForRecentChange( |
25 | RCVariableGenerator $generator, |
26 | RecentChange $rc, |
27 | VariableHolder $vars, |
28 | User $contextUser |
29 | ); |
30 | } |