- Модуль: crmmobile
- Путь к файлу: ~/bitrix/modules/crmmobile/lib/Dto/Category.php
- Класс: BitrixCrmMobileDtoCategory
- Вызов: Category::getCasts
public function getCasts(): array
{
return [
'id' => Type::int(),
'name' => Type::string(),
'editable' => Type::bool(),
'isDefault' => Type::bool(),
'sort' => Type::int(),
'categoriesSupported' => Type::bool(),
'categoriesEnabled' => Type::bool(),
'stagesEnabled' => Type::bool(),
'tunnelsEnabled' => Type::bool(),
'counter' => Type::int(),
'access' => Type::string(),
'tunnels' => Type::collection(Tunnel::class),
'processStages' => Type::collection(Stage::class),
'successStages' => Type::collection(Stage::class),
'failedStages' => Type::collection(Stage::class),
'documentFields' => Type::collection(DocumentField::class),
];
}