• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Link/Task/TaskItem.php
  • Класс: BitrixImV2LinkTaskTaskItem
  • Вызов: TaskItem::getEntity
public function getEntity(): RestEntity
{
	if (isset($this->entity))
	{
		return $this->entity;
	}

	if ($this->getEntityId() !== null)
	{
		$entity = BitrixImV2EntityTaskTaskItem::getById($this->getEntityId());
		if (isset($entity))
		{
			$this->entity = $entity;
		}
	}

	return $this->entity;
}