• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/mfa/otp.php
  • Класс: BitrixSecurityMfaOtp
  • Вызов: Otp::setType
public function setType($type)
{
	if (!in_array($type, static::$availableTypes))
		throw new ArgumentOutOfRangeException('type', static::$availableTypes);

	$this->algorithmClass = static::$typeMap[$type];
	$this->type = $type;

	return $this;
}