diff --git a/lib/Enum/FromNameEnum.php b/lib/Enum/FromNameEnum.php new file mode 100644 index 0000000..1cccdd7 --- /dev/null +++ b/lib/Enum/FromNameEnum.php @@ -0,0 +1,14 @@ +name ){ + return $status->value; + } + } + throw new \ValueError("$name is not a valid value for enum " . self::class ); + } +} \ No newline at end of file diff --git a/lib/Enum/MemberPermissionLevel.php b/lib/Enum/MemberPermissionLevel.php new file mode 100644 index 0000000..f61e99c --- /dev/null +++ b/lib/Enum/MemberPermissionLevel.php @@ -0,0 +1,10 @@ +