public function getFunctionType($eventHandlerName)
    {
        $eventHandler = $this->eventHandlers->get($eventHandlerName);
        if (!$eventHandler) return null;
        return $eventHandler->functionType;
    }