public static function create($typeName, $values)
    {
        $db = static::getDb();
        $quotedValues = array_map([$db, 'quoteValue'], $values);

        return static::getDb()->createCommand(
            'CREATE TYPE ' . $db->quoteColumnName($typeName)
            . ' AS ENUM (' . implode(',', $quotedValues) . ')'
        )->execute();
    }