1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\EventDispatcher;
6
7interface EventSubscriberInterface
8{
9    /**
10     * Returns the events to which this class has subscribed.
11     *
12     * Return format:
13     *     array(
14     *         array('event' => 'the-event-name', 'method' => 'onEventName', 'class' => 'some-class', 'format' => 'json'),
15     *         array(...),
16     *     )
17     *
18     * The class may be omitted if the class wants to subscribe to events of all classes.
19     * Same goes for the format key.
20     *
21     * @return array
22     *
23     * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
24     */
25    public static function getSubscribedEvents();
26}
27