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

representing it
This commit is contained in:
Joshua Ramon Enslin 2022-10-16 16:41:55 +02:00
parent b6dcffdea4
commit b4611a6e22
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 18 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit d2638c6f91395dc32c8b65ca68a3ae7bcac3b3e0
Subproject commit e55a8ca121a91aa50a2cc7fdade1e97a588ce114

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,
};
}
}