original_string: protected function getFields()/*# : bool */
      {
          if (null === $this->cols) {
              $result = $this->statement->result_metadata();
              if (false === $result) {
                  return false;
              }
  
              $this->cols = [];
  
              // set column name
              foreach ($result->fetch_fields() as $col) {
                  $this->cols[] = $col->name;
              }
          }
          return true;
      }
code: protected function getFields()/*# : bool */
      {
          if (null === $this->cols) {
              $result = $this->statement->result_metadata();
              if (false === $result) {
                  return false;
              }
  
              $this->cols = [];
  
              // set column name
              foreach ($result->fetch_fields() as $col) {
                  $this->cols[] = $col->name;
              }
          }
          return true;
      }
code_tokens: protected function getFields ( ) /*# : bool */ { if ( null === $ this -> cols ) { $ result = $ this -> statement -> result_metadata ( ) ; if ( false === $ result ) { return false ; } $ this -> cols = [ ] ; // set column name foreach ( $ result -> fetch_fields ( ) as $ col ) { $ this -> cols [ ] = $ col -> name ; } } return true ; }
docstring: Get fields first
  
  @return bool
  @access protected
docstring_tokens: Get fields first