$arguments */ public function emit( string $eventName, array $arguments = [], ?callable $continueCallBack = null ): void; /** * Returns the list of listeners for an event. * * The list is returned as an array, and the list of events are sorted by * their priority. * * @return callable[] */ public function listeners(string $eventName): array; /** * Removes a specific listener from an event. * * If the listener could not be found, this method will return false. If it * was removed it will return true. * @psalm-suppress PossiblyUnusedReturnValue */ public function removeListener(string $eventName, callable $listener): bool; }