• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/requests/message/status.php
  • Класс: BitrixSaleDeliveryRequestsMessageStatus
  • Вызов: Status::__construct
public function __construct(string $message, string $semantic)
{
	$this->message = $message;
	if (!in_array($semantic, [self::SEMANTIC_SUCCESS, self::SEMANTIC_PROCESS, self::SEMANTIC_ERROR]))
	{
		throw new SystemException(sprintf('Unexpected semantic: %s', $semantic));
	}

	$this->semantic = $semantic;
}