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

        $operation = SqlOperation::create($tokens);
        $firstKey  = $operation === SqlOperations::DELETE || $operation === SqlOperations::SELECT ? 'FROM' : strtoupper($operation);

        $tokens[$firstKey][$operation === SqlOperations::INSERT ? 1 : 0]['no_quotes']['parts'][0] = $newTable;

        return $tokens;
    }
public static function replace(array $tokens, $newTable) {
        HashMap::assert($tokens, 'tokens');

        $operation = SqlOperation::create($tokens);
        $firstKey  = $operation === SqlOperations::DELETE || $operation === SqlOperations::SELECT ? 'FROM' : strtoupper($operation);

        $tokens[$firstKey][$operation === SqlOperations::INSERT ? 1 : 0]['no_quotes']['parts'][0] = $newTable;

        return $tokens;
    }
public static function replace ( array $ tokens , $ newTable ) { HashMap :: assert ( $ tokens , 'tokens' ) ; $ operation = SqlOperation :: create ( $ tokens ) ; $ firstKey = $ operation === SqlOperations :: DELETE || $ operation === SqlOperations :: SELECT ? 'FROM' : strtoupper ( $ operation ) ; $ tokens [ $ firstKey ] [ $ operation === SqlOperations :: INSERT ? 1 : 0 ] [ 'no_quotes' ] [ 'parts' ] [ 0 ] = $ newTable ; return $ tokens ; }
replaces the table in the tokens array with the given table

@param  array $tokens
@param  array $newTable
@return array
replaces the table in the tokens array with the given table