trigger_type; $class = self::getTriggerClass($triggerType); return new $class($trigger, $journal); } /** * Returns a map with triggertypes, mapped to the class representing that type */ protected static function getTriggerTypes() { if( !self::$triggerTypes ) { self::$triggerTypes = Domain::getRuleTriggers(); } return self::$triggerTypes; } }