Add function to check if a process type has a dedicated data type
representing it
This commit is contained in:
parent
b6dcffdea4
commit
b4611a6e22
2
l18n
2
l18n
|
@ -1 +1 @@
|
||||||
Subproject commit d2638c6f91395dc32c8b65ca68a3ae7bcac3b3e0
|
Subproject commit e55a8ca121a91aa50a2cc7fdade1e97a588ce114
|
|
@ -118,4 +118,21 @@ enum MDProcessType implements MDValueEnumInterface, JsonSerializable {
|
||||||
return $this->name;
|
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,
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user