NETBien.backend/app/Enums/SimCardStatus.php
juan.zapata af8749abcd WIP (#1)
Co-authored-by: Juan Felipe Zapata Moreno <zapata_pipe@hotmail.com>
Reviewed-on: #1
2025-11-10 22:45:59 +00:00

29 lines
509 B
PHP

<?php
namespace App\Enums;
enum SimCardStatus: string
{
case AVAILABLE = 'available';
case ASSIGNED = 'assigned';
/**
* Get all possible values
*/
public static function values(): array
{
return array_column(self::cases(), 'value');
}
/**
* Get a human-readable label
*/
public function label(): string
{
return match($this) {
self::AVAILABLE => 'Disponible',
self::ASSIGNED => 'Asignada',
};
}
}