. */ namespace SP\Core\Events; /** * Interface EventReceiver */ interface EventReceiver { /** * Update from sources * * @param string $eventType event's type * @param Event $event event's source object */ public function update(string $eventType, Event $event): void; /** * Return the events handled by this receiver * * @return array */ public function getEvents(): array; /** * Return the events handled by this receiver in string format * * @return string|null */ public function getEventsString(): ?string; }