Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor6 committed Oct 2, 2024
1 parent b283546 commit 7ff467b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
7 changes: 1 addition & 6 deletions src/Enum/DayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Answear\OverseasBundle\Enum;

enum DayType: int implements \JsonSerializable
enum DayType: int
{
case WorkingDay = 1;
case Monday = 7;
Expand All @@ -16,11 +16,6 @@ enum DayType: int implements \JsonSerializable
case Saturday2 = 12;
case Sunday = 3;

public function jsonSerialize(): int
{
return $this->value;
}

public function getOrdinal(): int
{
return match ($this) {
Expand Down
7 changes: 1 addition & 6 deletions src/Enum/EnvironmentEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@

namespace Answear\OverseasBundle\Enum;

enum EnvironmentEnum: string implements \JsonSerializable
enum EnvironmentEnum: string
{
case Prod = 'prod';
case Test = 'test';

public function jsonSerialize(): string
{
return $this->value;
}

/**
* @return string[]
*/
Expand Down
7 changes: 1 addition & 6 deletions src/Enum/StatusResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@

namespace Answear\OverseasBundle\Enum;

enum StatusResult: int implements \JsonSerializable
enum StatusResult: int
{
case Ok = 0;
case Error = 1;
case ValidationFailed = 2;

public function jsonSerialize(): int
{
return $this->value;
}
}

0 comments on commit 7ff467b

Please sign in to comment.