private function isEventSupported(Event $event): bool
    {
        $supported = false;

        foreach ($this->getSupportedEventTypes() as $supportedEventType) {
            if (\is_a($event, $supportedEventType)) {
                $supported = true;

                break;
            }
        }

        return $supported;
    }
private function isEventSupported(Event $event): bool
    {
        $supported = false;

        foreach ($this->getSupportedEventTypes() as $supportedEventType) {
            if (\is_a($event, $supportedEventType)) {
                $supported = true;

                break;
            }
        }

        return $supported;
    }
private function isEventSupported ( Event $ event ) : bool { $ supported = false ; foreach ( $ this -> getSupportedEventTypes ( ) as $ supportedEventType ) { if ( \ is_a ( $ event , $ supportedEventType ) ) { $ supported = true ; break ; } } return $ supported ; }
Is event supported.

@param Event $event

@return bool
Is event supported .