17 if (!Loader::includeModule(
'disk'))
25 $typeId = $file->getDiskFile()?->getTypeFile() ?? 0;
26 $fileMap[(int)$typeId] = (
int)$typeId;
29 $typeCount =
count($fileMap);
33 && isset($fileMap[TypeFile::IMAGE])
34 && isset($fileMap[TypeFile::VIDEO])
37 $this->type = self::MEDIA_TYPE;
44 $this->type = self::MULTI_TYPE;
49 $diskFileType = array_shift($fileMap);
51 $this->type = $this->getFileType($diskFileType) ?? self::UNKNOWN_TYPE;