enum Status
{
case PAID;
case Cancelled;
public static function get(): array
{
return [
self::PAID->value,
self::Cancelled->value
]
}
Status::get();
The enum case is not dynamic. If we need to update the enum value, we need to update the Status enum, so why can't we do that?