• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/Dto/Caster/ObjectCaster.php
  • Класс: BitrixMobileDtoCasterObjectCaster
  • Вызов: ObjectCaster::__construct
public function __construct(string $type, bool $isCollection = false)
{
	$isDto = class_exists($type) && is_subclass_of($type, Dto::class);

	if (!$isDto)
	{
		throw new InvalidDtoException('Nested structures must extend Dto');
	}

	parent::__construct($isCollection);

	$this->type = $type;
}