original_string: public function toQueryString()
      {
          $queryString = '';
          $inString = false;
          $parameterIndex = 0;
          $length = strlen($this->statement);
  
          for ($i=0; $i < $length; $i++) {
              $char = $this->statement{$i};
              if ($char === '\'') {
                  if ($inString && $this->statement{max(0, $i-1)} === '\\') {
                      $inString = true;
                  } else {
                      $inString = !$inString;
                  }
                  $queryString .= $char;
              } elseif ($char === '?' && !$inString) {
                  $parameterIndex ++;
                  $queryString .= $this->parametersMap[$parameterIndex];
              } else {
                  $queryString .= $char;
              }
          }
  
          return $queryString;
      }
code: public function toQueryString()
      {
          $queryString = '';
          $inString = false;
          $parameterIndex = 0;
          $length = strlen($this->statement);
  
          for ($i=0; $i < $length; $i++) {
              $char = $this->statement{$i};
              if ($char === '\'') {
                  if ($inString && $this->statement{max(0, $i-1)} === '\\') {
                      $inString = true;
                  } else {
                      $inString = !$inString;
                  }
                  $queryString .= $char;
              } elseif ($char === '?' && !$inString) {
                  $parameterIndex ++;
                  $queryString .= $this->parametersMap[$parameterIndex];
              } else {
                  $queryString .= $char;
              }
          }
  
          return $queryString;
      }
code_tokens: public function toQueryString ( ) { $ queryString = '' ; $ inString = false ; $ parameterIndex = 0 ; $ length = strlen ( $ this -> statement ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ char = $ this -> statement { $ i } ; if ( $ char === '\'' ) { if ( $ inString && $ this -> statement { max ( 0 , $ i - 1 ) } === '\\' ) { $ inString = true ; } else { $ inString = ! $ inString ; } $ queryString .= $ char ; } elseif ( $ char === '?' && ! $ inString ) { $ parameterIndex ++ ; $ queryString .= $ this -> parametersMap [ $ parameterIndex ] ; } else { $ queryString .= $ char ; } } return $ queryString ; }
docstring: Returns the query statement.
  
  @return string the query statement, not null
docstring_tokens: Returns the query statement .