<?php  namespace App\Traits;  trait EnumToArray { 	public static function names(): array 	{ 		return array_column(self::cases(), 'name'); 	}  	public static function values(): array 	{ 		return array_column(self::cases(), 'value'); 	}  	public static function array(): array 	{ 		return array_combine(self::values(), self::names()); 	}  	public static function findByValue(mixed $value): string 	{ 		return self::array()[$value]; 	}  	public static function arrayWithValues(): array 	{ 		return array_map(function ($value) { 			return [ 				'name' => self::from($value)->getLabel(), 				'value' => $value, 			]; 		}, self::values()); 	}  	public function getLabel(): string{} }