initial rest api for react.js
This commit is contained in:
@@ -36,6 +36,10 @@ enum ReportTodoEnum: int {
|
||||
}
|
||||
|
||||
public function tryFromName(string $name): ?ReportTodoEnum
|
||||
{
|
||||
return self::tryFromNameStatic($name);
|
||||
}
|
||||
public static function tryFromNameStatic(string $name): ?ReportTodoEnum
|
||||
{
|
||||
$name = strtoupper($name);
|
||||
foreach (self::cases() as $v) {
|
||||
|
||||
Reference in New Issue
Block a user