original_string: public function first()
      {
          foreach ($this as $result) {
              if ($this->_statement && !$this->_useBuffering) {
                  $this->_statement->closeCursor();
              }
  
              return $result;
          }
      }
code: public function first()
      {
          foreach ($this as $result) {
              if ($this->_statement && !$this->_useBuffering) {
                  $this->_statement->closeCursor();
              }
  
              return $result;
          }
      }
code_tokens: public function first ( ) { foreach ( $ this as $ result ) { if ( $ this -> _statement && ! $ this -> _useBuffering ) { $ this -> _statement -> closeCursor ( ) ; } return $ result ; } }
docstring: Get the first record from a result set.
  
  This method will also close the underlying statement cursor.
  
  @return array|object
docstring_tokens: Get the first record from a result set .