Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Core\Event;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11/**
12 * Contract for modular event subscribers in Domain-Driven Design (DDD).
13 *
14 * @package App\Core\Event
15 */
16interface EventSubscriberInterface
17{
18    /**
19     * Returns an array of event names and their corresponding listener callables.
20     *
21     * @return array<class-string, callable|string> Event class name to listener method mapping.
22     */
23    public function getSubscribedEvents(): array;
24}