public static function create($values = null) {
        if ($values === null) {
            $values = array_values(static::constants());
        }

        return EnumHelper::create(static::typeName(), $values);
    }
public static function create($values = null) {
        if ($values === null) {
            $values = array_values(static::constants());
        }

        return EnumHelper::create(static::typeName(), $values);
    }
public static function create ( $ values = null ) { if ( $ values === null ) { $ values = array_values ( static :: constants ( ) ) ; } return EnumHelper :: create ( static :: typeName ( ) , $ values ) ; }
Create the enum type

@param string[]|null $values values of the enum type, it will try to use class constants if null
@return int number of rows affected by the execution.
Create the enum type