public static function values($withEmpty = false) {
        $list = [];

        $values = EnumHelper::values(static::typeName());
        foreach ($values as $key) {
            $value = Inflector::humanize($key, true);
            $list[$key] = static::t($value);
        }

        return ($withEmpty ? ['' => static::emptyValue()] : []) + $list;
    }
public static function values($withEmpty = false) {
        $list = [];

        $values = EnumHelper::values(static::typeName());
        foreach ($values as $key) {
            $value = Inflector::humanize($key, true);
            $list[$key] = static::t($value);
        }

        return ($withEmpty ? ['' => static::emptyValue()] : []) + $list;
    }
public static function values ( $ withEmpty = false ) { $ list = [ ] ; $ values = EnumHelper :: values ( static :: typeName ( ) ) ; foreach ( $ values as $ key ) { $ value = Inflector :: humanize ( $ key , true ) ; $ list [ $ key ] = static :: t ( $ value ) ; } return ( $ withEmpty ? [ '' => static :: emptyValue ( ) ] : [ ] ) + $ list ; }
Get values of the enum type
@param bool $withEmpty with empty value at first
@return array values of the enum type
Get values of the enum type