Fix return types

This commit is contained in:
jrenslin committed 2025-07-13 02:34:58 +02:00
1 parent f06f7e8670
commit 924388e4b9
2 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -38,13 +38,13 @@ public static function fromString(string $input):MDTranscriptionStatus {
}
/**
* Returns a value of this type based on an integer.
* Returns a value of this status based on an integer.
*
* @param integer $input Input to get a value from.
*
* @return MDMeasurementType
* @return MDTranscriptionStatus
*/
public static function fromInt(int $input):MDMeasurementType {
public static function fromInt(int $input):MDTranscriptionStatus {
return match($input) {
1 => self::incomplete,
@@ -88,7 +88,7 @@ public function toInt():int {
self::rough_draft => 3,
self::quality_control_failed => 4,
self::quality_control_passed => 5,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
# default => throw new MDpageParameterNotFromListException("Unknown transcription type"),
};
}