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
3namespace MediaWiki\Extension\AbuseFilter\Hooks;
4
5use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
6use RecentChange;
7
8interface AbuseFilterGenerateGenericVarsHook {
9    /**
10     * Hook runner for the `AbuseFilter-generateGenericVars` hook
11     *
12     * Allows altering generic variables, i.e. independent from page and user
13     *
14     * @param VariableHolder $vars
15     * @param ?RecentChange $rc If the variables should be generated for an RC entry,
16     *     this is the entry. Null if it's for the current action being filtered.
17     * @return bool|void True or no return value to continue or false to abort
18     */
19    public function onAbuseFilter_generateGenericVars(
20        VariableHolder $vars,
21        ?RecentChange $rc
22    );
23}