public static function create(array $tokens) {
        HashMap::assert($tokens, 'tokens');

        if (empty($tokens['FROM']) && empty($tokens['INSERT']) && empty($tokens['UPDATE'])) return Exceptions::InvalidTypeException('array', 'tokens', null);

        $operation = SqlOperation::create($tokens);
        if ($operation === SqlOperations::INSERT) return $tokens['INSERT'][1]['no_quotes']['parts'][0];
        if ($operation === SqlOperations::UPDATE) return $tokens['UPDATE'][0]['no_quotes']['parts'][0];
        return $tokens['FROM'][0]['no_quotes']['parts'][0];
    }
public static function create(array $tokens) {
        HashMap::assert($tokens, 'tokens');

        if (empty($tokens['FROM']) && empty($tokens['INSERT']) && empty($tokens['UPDATE'])) return Exceptions::InvalidTypeException('array', 'tokens', null);

        $operation = SqlOperation::create($tokens);
        if ($operation === SqlOperations::INSERT) return $tokens['INSERT'][1]['no_quotes']['parts'][0];
        if ($operation === SqlOperations::UPDATE) return $tokens['UPDATE'][0]['no_quotes']['parts'][0];
        return $tokens['FROM'][0]['no_quotes']['parts'][0];
    }
public static function create ( array $ tokens ) { HashMap :: assert ( $ tokens , 'tokens' ) ; if ( empty ( $ tokens [ 'FROM' ] ) && empty ( $ tokens [ 'INSERT' ] ) && empty ( $ tokens [ 'UPDATE' ] ) ) return Exceptions :: InvalidTypeException ( 'array' , 'tokens' , null ) ; $ operation = SqlOperation :: create ( $ tokens ) ; if ( $ operation === SqlOperations :: INSERT ) return $ tokens [ 'INSERT' ] [ 1 ] [ 'no_quotes' ] [ 'parts' ] [ 0 ] ; if ( $ operation === SqlOperations :: UPDATE ) return $ tokens [ 'UPDATE' ] [ 0 ] [ 'no_quotes' ] [ 'parts' ] [ 0 ] ; return $ tokens [ 'FROM' ] [ 0 ] [ 'no_quotes' ] [ 'parts' ] [ 0 ] ; }
Returns the table name

@param  array  $tokens
@return string
Returns the table name