public function getLimitationTypesByModuleFunction($module, $function)
{
if (empty($this->settings['policyMap'][$module][$function])) {
return array();
}
$types = array();
try {
foreach (array_keys($this->settings['policyMap'][$module][$function]) as $identifier) {
$types[$identifier] = $this->limitationService->getLimitationType($identifier);
}
} catch (LimitationNotFoundException $e) {
throw new BadStateException("{$module}/{$function}", "policyMap configuration is referring to non existing identifier: {$identifier}", $e);
}
return $types;
}