mediawiki-extensions-AbuseF.../includes/Watcher/Watcher.php
Daimona Eaytoy c368575af0 Create a base interface for watchers
This will ease adding new watchers, for instance to send Echo
notifications (see T179495 and T100892).

For now, this is just boilerplate, and converting EmergencyWatcher to
the new interface.

Change-Id: I18d62aba53471202b709cdb19033b1729c5c25b4
2020-11-20 23:34:20 +01:00

15 lines
360 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter\Watcher;
/**
* Classes inheriting this interface can be used to execute some actions after all filter have been checked.
*/
interface Watcher {
/**
* @param string[] $filters The filters that matched the action
* @param string $group
*/
public function run( array $filters, string $group ) : void;
}