. * * ========================= * * This file contains the PluginInterface * * @category API * @package DmarcSrg * @author Aleksey Andreev (liuch) * @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 */ namespace Liuch\DmarcSrg\Plugins; interface PluginInterface { /** * Returns the name of the plugin. Used when displaying errors * * @return string Any string that identifies the plugin */ public function name(): string; /** * Associates events with handler method names and returns them as an array * * For example: return [ 'event1name' => 'method1', 'event2name' => 'method2' ]; * * @return array */ public function subscribedEvents(): array; }