| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Deferred\UserEditCountInfo; |
| 6 | |
| 7 | /** |
| 8 | * This is a hook handler interface, see docs/Hooks.md. |
| 9 | * Use the hook name "UserEditCountUpdate" to register handlers implementing this interface. |
| 10 | * |
| 11 | * @stable to implement |
| 12 | * @since 1.38 |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface UserEditCountUpdateHook { |
| 16 | /** |
| 17 | * This is called from a deferred update on edit or move and provides |
| 18 | * collected user edit count information. |
| 19 | * |
| 20 | * @param UserEditCountInfo[] $infos |
| 21 | * @return void |
| 22 | */ |
| 23 | public function onUserEditCountUpdate( $infos ): void; |
| 24 | } |