Skip to content

Commit

Permalink
Create PublishStatuses.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Lithalroden committed Mar 20, 2024
1 parent 588cb21 commit 1368277
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Enums/PublishStatuses.php
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"),
];
}
}

0 comments on commit 1368277

Please sign in to comment.