protected function checkServiceEventMethodName($serviceEvent, $eventMethodName)
    {
        if (false === in_array($eventMethodName, self::$servicesChecked[$serviceEvent])) {
            $eventClassReflection = ReflectionService::get()->getClassReflection($serviceEvent);
            self::$servicesChecked[$serviceEvent][] = $eventMethodName;

            if (false === $eventClassReflection->hasMethod($eventMethodName)) {
                throw new MethodNotFoundException(
                    'The service event "' . $serviceEvent . '" does not have a method called "' . $eventMethodName . '".',
                    1456509926
                );
            }
        }
    }
protected function checkServiceEventMethodName($serviceEvent, $eventMethodName)
    {
        if (false === in_array($eventMethodName, self::$servicesChecked[$serviceEvent])) {
            $eventClassReflection = ReflectionService::get()->getClassReflection($serviceEvent);
            self::$servicesChecked[$serviceEvent][] = $eventMethodName;

            if (false === $eventClassReflection->hasMethod($eventMethodName)) {
                throw new MethodNotFoundException(
                    'The service event "' . $serviceEvent . '" does not have a method called "' . $eventMethodName . '".',
                    1456509926
                );
            }
        }
    }
protected function checkServiceEventMethodName ( $ serviceEvent , $ eventMethodName ) { if ( false === in_array ( $ eventMethodName , self :: $ servicesChecked [ $ serviceEvent ] ) ) { $ eventClassReflection = ReflectionService :: get ( ) -> getClassReflection ( $ serviceEvent ) ; self :: $ servicesChecked [ $ serviceEvent ] [ ] = $ eventMethodName ; if ( false === $ eventClassReflection -> hasMethod ( $ eventMethodName ) ) { throw new MethodNotFoundException ( 'The service event "' . $ serviceEvent . '" does not have a method called "' . $ eventMethodName . '".' , 1456509926 ) ; } } }
Will check if the given method exists in the service event.

@param string $serviceEvent    The class name of the service event.
@param string $eventMethodName Name of the method called in the service.
@throws MethodNotFoundException
Will check if the given method exists in the service event .