value); } public function badgeVariant(): string { return match ($this) { self::ACTIVE => 'success', self::INACTIVE => 'danger', }; } public function isActive(): bool { return $this == self::ACTIVE; } }