public static function values($typeName)
    {
        $db = static::getDb();

        return $db->createCommand(
            'SELECT unnest(enum_range(NULL::' . $db->quoteColumnName($typeName) . '))'
        )->queryColumn();
    }
public static function values($typeName)
    {
        $db = static::getDb();

        return $db->createCommand(
            'SELECT unnest(enum_range(NULL::' . $db->quoteColumnName($typeName) . '))'
        )->queryColumn();
    }
public static function values ( $ typeName ) { $ db = static :: getDb ( ) ; return $ db -> createCommand ( 'SELECT unnest(enum_range(NULL::' . $ db -> quoteColumnName ( $ typeName ) . '))' ) -> queryColumn ( ) ; }
Get values of an enum type

@param string $typeName name of the enum type
@return array values of the enum type
Get values of an enum type