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\SecurePoll\Hooks;
4
5use MediaWiki\Extension\SecurePoll\User\LocalAuth;
6use MediaWiki\User\User;
7
8// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
9// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
10/**
11 * This is a hook handler interface, see docs/Hooks.md in core.
12 * Use the hook name "SecurePoll_GetUserParams" to register handlers implementing this interface.
13 *
14 * @stable to implement
15 * @ingroup Hooks
16 */
17interface SecurePoll_GetUserParamsHook {
18    /**
19     * This hook is called when voter parameters for a local User object are collected.
20     *
21     * @since 1.38
22     *
23     * @param LocalAuth $localAuth
24     * @param User $user
25     * @param array &$params
26     * @return bool|void True or no return value to continue or false to abort
27     */
28    public function onSecurePoll_GetUserParams(
29        LocalAuth $localAuth,
30        User $user,
31        array &$params
32    );
33}