• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/timeline/timelinemarktype.php
  • Класс: Bitrix\Crm\Timeline\TimelineMarkType
  • Вызов: TimelineMarkType::getMarkTypeByPhaseSemantics
static function getMarkTypeByPhaseSemantics(string $phaseSemantics): int
{
	if ($phaseSemantics === PhaseSemantics::SUCCESS)
	{
		return static::SUCCESS;
	}
	if (PhaseSemantics::isLost($phaseSemantics))
	{
		return static::FAILED;
	}

	return static::UNDEFINED;
}