Add function to check if a process type has a dedicated data type
representing it
This commit is contained in:
2
l18n
2
l18n
Submodule l18n updated: d2638c6f91...e55a8ca121
@ -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,
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user