mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
32 lines
673 B
PHP
32 lines
673 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums;
|
|
|
|
enum IncidentStatusEnum: string
|
|
{
|
|
case Investigating = 'investigating';
|
|
case Identified = 'identified';
|
|
case Monitoring = 'monitoring';
|
|
case Resolved = 'resolved';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Investigating => 'Investigating',
|
|
self::Identified => 'Identified',
|
|
self::Monitoring => 'Monitoring',
|
|
self::Resolved => 'Resolved',
|
|
};
|
|
}
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public static function values(): array
|
|
{
|
|
return array_column(self::cases(), 'value');
|
|
}
|
|
}
|