<?php  namespace App\Enums;  enum DeliveryType: int { 	case GLS = 1;  	case UPS = 2;  	public static function toArray(): array 	{ 		$array = [];  		foreach (self::cases() as $case) { 			$array[$case->value] = $case->name; 		}  		return $array; 	} }