-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
588cb21
commit 1368277
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Javaabu\Helpers\Enums; | ||
|
||
|
||
enum PublishStatuses: string implements IsEnum | ||
{ | ||
use NativeEnumsTrait; | ||
|
||
const DRAFT = 'draft'; | ||
const PENDING = 'pending'; | ||
const PUBLISHED = 'published'; | ||
const REJECTED = 'rejected'; | ||
|
||
public static function labels(): array | ||
{ | ||
return [ | ||
self::DRAFT->value => __("Draft"), | ||
self::PENDING->value => __("Pending"), | ||
self::PUBLISHED->value => __("Published"), | ||
self::REJECTED->value => __("Rejected"), | ||
]; | ||
} | ||
} |