<?php  namespace App\Enums;  use App\Traits\EnumToArray;  enum ButtonType: int { 	use EnumToArray;  	case Primary = 1;  	case Secondary = 2;  	case Success = 3;  	case Danger = 4;  	public static function getButtonColors(): array 	{ 		return [ 			self::Primary->value => 'blue', 			self::Secondary->value => 'gray', 			self::Success->value => 'green', 			self::Danger->value => 'red', 		]; 	}  	public static function getColor(int $value): string 	{ 		return self::getButtonColors()[$value]; 	} }