original_string: public function getParams()
      {
          //exit early if no types are set
          if (empty($this->types)) {
              return $this->params;
          }
  
          $params = [];
          $num_params = count($this->params);
          for ($i = 0; $i < $num_params; $i++) {
              $value = $this->params[$i];
              $column = $this->param_columns[$i];
  
              if (isset($this->types[$column])) {
                  $params[] = $this->connection->convertToDatabaseValue($value, $this->types[$column]);
                  continue;
              }
              $params[] = $value;
          }
  
          return $params;
      }
code: public function getParams()
      {
          //exit early if no types are set
          if (empty($this->types)) {
              return $this->params;
          }
  
          $params = [];
          $num_params = count($this->params);
          for ($i = 0; $i < $num_params; $i++) {
              $value = $this->params[$i];
              $column = $this->param_columns[$i];
  
              if (isset($this->types[$column])) {
                  $params[] = $this->connection->convertToDatabaseValue($value, $this->types[$column]);
                  continue;
              }
              $params[] = $value;
          }
  
          return $params;
      }
code_tokens: public function getParams ( ) { //exit early if no types are set if ( empty ( $ this -> types ) ) { return $ this -> params ; } $ params = [ ] ; $ num_params = count ( $ this -> params ) ; for ( $ i = 0 ; $ i < $ num_params ; $ i ++ ) { $ value = $ this -> params [ $ i ] ; $ column = $ this -> param_columns [ $ i ] ; if ( isset ( $ this -> types [ $ column ] ) ) { $ params [ ] = $ this -> connection -> convertToDatabaseValue ( $ value , $ this -> types [ $ column ] ) ; continue ; } $ params [ ] = $ value ; } return $ params ; }
docstring: Get the parameters to be used in the prepared query, converted
  to the correct database type.
  
  @return array The parameters
docstring_tokens: Get the parameters to be used in the prepared query converted to the correct database type .