• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/driver.php
  • Класс: BitrixRpaDriver
  • Вызов: Driver::getType
public function getType(int $typeId): ?Type
{
	if(isset($this->types[$typeId]))
	{
		return $this->types[$typeId];
	}

	$type = $this->getFactory()->getTypeDataClass()::getById($typeId)->fetchObject();
	if($type)
	{
		$this->types[$typeId] = $type;
		return $type;
	}

	return null;
}