protected function checkServiceEvent($serviceEvent)
    {
        if (false === isset(self::$servicesChecked[$serviceEvent])) {
            self::$servicesChecked[$serviceEvent] = [];

            if (false === in_array(ServiceEventInterface::class, class_implements($serviceEvent))) {
                throw new WrongInheritanceException(
                    'Trying to run services with a wrong event: "' . $serviceEvent . '". Service events must extend "' . ServiceEventInterface::class . '".',
                    1456409155
                );
            }
        }
    }
protected function checkServiceEvent($serviceEvent)
    {
        if (false === isset(self::$servicesChecked[$serviceEvent])) {
            self::$servicesChecked[$serviceEvent] = [];

            if (false === in_array(ServiceEventInterface::class, class_implements($serviceEvent))) {
                throw new WrongInheritanceException(
                    'Trying to run services with a wrong event: "' . $serviceEvent . '". Service events must extend "' . ServiceEventInterface::class . '".',
                    1456409155
                );
            }
        }
    }
protected function checkServiceEvent ( $ serviceEvent ) { if ( false === isset ( self :: $ servicesChecked [ $ serviceEvent ] ) ) { self :: $ servicesChecked [ $ serviceEvent ] = [ ] ; if ( false === in_array ( ServiceEventInterface :: class , class_implements ( $ serviceEvent ) ) ) { throw new WrongInheritanceException ( 'Trying to run services with a wrong event: "' . $ serviceEvent . '". Service events must extend "' . ServiceEventInterface :: class . '".' , 1456409155 ) ; } } }
Will check if the class of the service event is correct and implements
the correct interface.

@param string $serviceEvent The class name of the service event.
@throws WrongInheritanceException
Will check if the class of the service event is correct and implements the correct interface .