1<?php
2
3namespace MediaWiki\User\Hook;
4
5use UserArrayFromResult;
6use Wikimedia\Rdbms\IResultWrapper;
7
8/**
9 * @stable to implement
10 * @ingroup Hooks
11 */
12interface UserArrayFromResultHook {
13	/**
14	 * This hook is called when creating an UserArray object from a database result.
15	 *
16	 * @since 1.35
17	 *
18	 * @param UserArrayFromResult|null &$userArray Set this to an object to override the default
19	 * @param IResultWrapper $res Database result used to create the object
20	 * @return bool|void True or no return value to continue or false to abort
21	 */
22	public function onUserArrayFromResult( &$userArray, $res );
23}
24