Add function to check if a process type has a dedicated data type

representing it
This commit is contained in:
2022-10-16 16:41:55 +02:00
parent b6dcffdea4
commit b4611a6e22
2 changed files with 18 additions and 1 deletions

2
l18n

Submodule l18n updated: d2638c6f91...e55a8ca121

View File

@ -118,4 +118,21 @@ enum MDProcessType implements MDValueEnumInterface, JsonSerializable {
return $this->name;
}
/**
* Determines if there is a dedicated data type for the present process type in md.
*
* @return boolean
*/
public function hasOwnProcessType():bool {
return match ($this) {
self::exhibition => true,
self::appointment => true,
self::loan_incoming => true,
self::loan_outgoing => true,
default => false,
};
}
}