• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Reaction.php
  • Класс: BitrixImV2MessageReaction
  • Вызов: Reaction::__construct
public function __construct(string $reaction)
{
	if (!in_array($reaction, self::ALLOWED_REACTION, true))
	{
		throw new ArgumentException('This reaction not found', '$reaction');
	}

	$this->reaction = $reaction;
}