Fix return types
This commit is contained in:
@@ -38,13 +38,13 @@ enum MDTranscriptionStatus implements MDValueEnumInterface, JsonSerializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 @@ enum MDTranscriptionStatus implements MDValueEnumInterface, JsonSerializable {
|
||||
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"),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user