public static function toSelectArray(): array
    {
        $array = static::toArray();
        $selectArray = [];

        foreach ($array as $key => $value) {
            $selectArray[$value] = static::getDescription($value);
        }

        return $selectArray;
    }
public static function toSelectArray(): array
    {
        $array = static::toArray();
        $selectArray = [];

        foreach ($array as $key => $value) {
            $selectArray[$value] = static::getDescription($value);
        }

        return $selectArray;
    }
public static function toSelectArray ( ) : array { $ array = static :: toArray ( ) ; $ selectArray = [ ] ; foreach ( $ array as $ key => $ value ) { $ selectArray [ $ value ] = static :: getDescription ( $ value ) ; } return $ selectArray ; }
Get the enum as an array formatted for a select.
value => description

@return array
Get the enum as an array formatted for a select . value = > description