From 1729f43ffb55db54b6d67e6cd487a03c3c8af868 Mon Sep 17 00:00:00 2001 From: ALIN <=> Date: Wed, 16 Apr 2025 18:49:27 +0300 Subject: [PATCH] upgraded to native enums --- src/Enums/Gender.php | 19 +++++++++++++++++++ src/Enums/Genders.php | 16 ---------------- src/Enums/Title.php | 10 ++++++++++ src/Enums/Titles.php | 12 ------------ 4 files changed, 29 insertions(+), 28 deletions(-) create mode 100644 src/Enums/Gender.php delete mode 100644 src/Enums/Genders.php create mode 100644 src/Enums/Title.php delete mode 100644 src/Enums/Titles.php diff --git a/src/Enums/Gender.php b/src/Enums/Gender.php new file mode 100644 index 0000000..fe42263 --- /dev/null +++ b/src/Enums/Gender.php @@ -0,0 +1,19 @@ + 'female', + self::Male => 'male', + }; + } +} diff --git a/src/Enums/Genders.php b/src/Enums/Genders.php deleted file mode 100644 index 3198df2..0000000 --- a/src/Enums/Genders.php +++ /dev/null @@ -1,16 +0,0 @@ - 'female', - self::Male => 'male', - ]; -} diff --git a/src/Enums/Title.php b/src/Enums/Title.php new file mode 100644 index 0000000..35d6f03 --- /dev/null +++ b/src/Enums/Title.php @@ -0,0 +1,10 @@ +