GetService('ModelReflection'); if (!$oModelReflection->IsValidClass($sClassName)) { throw new FormBlockIOException("Class ".json_encode($sClassName)." is not valid"); } $this->sClassName = $sClassName; } public function __toString(): string { return $this->sClassName; } public function jsonSerialize(): mixed { return $this->sClassName; } public static function IsCompatible(string $sOtherFormatClass): bool { return is_a($sOtherFormatClass, ClassIOFormat::class, true) || is_a($sOtherFormatClass, RawFormat::class, true); } }