Skip to content

Commit

Permalink
feat: add "Adjusted" (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Feb 21, 2024
1 parent 53d7920 commit ab6200e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Enums/FaceItStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* @method static static MANUAL_RESULT()
* @method static static SCHEDULING()
* @method static static SCHEDULED()
* @method static static PAUSED()
* @method static static JOIN()
* @method static static CREATED()
* @method static static ADJUSTMENT()
*/
final class FaceItStatus extends Enum implements LocalizedEnum
{
Expand All @@ -39,6 +43,8 @@ final class FaceItStatus extends Enum implements LocalizedEnum

const CREATED = 9;

const ADJUSTMENT = 10;

public static function coerce(mixed $enumKeyOrValue): ?static
{
$enumKeyOrValue = match (Str::lower($enumKeyOrValue)) {
Expand All @@ -51,6 +57,7 @@ public static function coerce(mixed $enumKeyOrValue): ?static
'paused' => self::PAUSED,
'join' => self::JOIN,
'created' => self::CREATED,
'adjustment' => self::ADJUSTMENT,
default => $enumKeyOrValue
};

Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/enums.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@
FaceItStatus::PAUSED => 'Paused',
FaceItStatus::JOIN => 'Join',
FaceItStatus::CREATED => 'Created',
FaceItStatus::ADJUSTMENT => 'Adjusted',
],
];

0 comments on commit ab6200e

Please sign in to comment.