Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPetrasek committed Feb 28, 2024
1 parent 85033ad commit 7c0d983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/User/AccountStatus.php → src/User/AccountState.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Utils\User;


enum AccountStatus :int
enum AccountState :int
{
case REGISTRATION_INCOMPLETE = 1;
case ACTIVE = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
namespace Utils\User\NaturalPerson;


enum Gender :int
enum Sex :int
{
case MAN = 1;
case MALE = 1;
case FEMALE = 2;

static function fromString ($string) : ?self
{
switch ($string)
{
case 'man':
return Gender::MAN;
case 'male':
return Sex::MALE;
break;
case 'female':
return Gender::FEMALE;
return Sex::FEMALE;
break;

default:
Expand Down

0 comments on commit 7c0d983

Please sign in to comment.