/**
  * Создать правило по его короткому имени
  *
  * @param string|array $shortName if array then [ruleName => RuleDescription]
  * @return Rule
  */
 public static function createByShortName($shortName, $ruleDescription = null)
 {
     $className = RuleAliasMapping::getClassNameByAlias($shortName);
     $rule = new $className();
     if ($rule instanceof IConfiguredRule) {
         $rule->setConfig($ruleDescription);
     }
     return $rule;
 }
 /**
  * @param Rule $rule
  * @return mixed
  */
 public function visit(Rule $rule)
 {
     return RuleAliasMapping::getAliasByClassName($rule->getFullName());
 }