public static getRuleType ( string $name ) : string | ||
$name | string | metric's name |
Результат | string |
public static function getRuleType($name)
{
if (!isset(self::$ruleTypeMap[$name])) {
throw new ApiErrorException(400, ErrorMessage::ERR_INVALID_VALUE, 'Unexpected ruleType value');
}
return self::$ruleTypeMap[$name];
}