Files
ai-web/app/Enums/EntityStatus.php
jiangdong.cheng aa16c9f8c2
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
init
2026-02-11 17:28:36 +08:00

20 lines
330 B
PHP

<?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;
}
}