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;
6
7interface AbuseFilterComputeVariableHook {
8    /**
9     * Hook runner for the `AbuseFilter-computeVariable` hook
10     *
11     * Like AbuseFilter-interceptVariable but called if the requested method wasn't found.
12     * Return false to indicate that the method is known to the hook and was computed successfully.
13     *
14     * @param string $method Method to generate the variable
15     * @param VariableHolder $vars
16     * @param array $parameters Parameters with data to compute the value
17     * @param ?string &$result Result of the computation
18     * @return bool|void True or no return value to continue or false to abort
19     */
20    public function onAbuseFilter_computeVariable(
21        string $method,
22        VariableHolder $vars,
23        array $parameters,
24        ?string &$result
25    );
26}