init
This commit is contained in:
19
app/Enums/EntityStatus.php
Normal file
19
app/Enums/EntityStatus.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum EntityStatus: string
|
||||
{
|
||||
case Draft = 'draft';
|
||||
case Review = 'review';
|
||||
case Published = 'published';
|
||||
case Stale = 'stale';
|
||||
case Archived = 'archived';
|
||||
|
||||
public function isPublicVisible(): bool
|
||||
{
|
||||
return $this === self::Published;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user