original_string: public function fetch($type = parent::FETCH_TYPE_NUM)
      {
          if ($type === static::FETCH_TYPE_NUM) {
              return $this->_statement->fetch(PDO::FETCH_NUM);
          }
          if ($type === static::FETCH_TYPE_ASSOC) {
              return $this->_statement->fetch(PDO::FETCH_ASSOC);
          }
          if ($type === static::FETCH_TYPE_OBJ) {
              return $this->_statement->fetch(PDO::FETCH_OBJ);
          }
  
          return $this->_statement->fetch($type);
      }
code: public function fetch($type = parent::FETCH_TYPE_NUM)
      {
          if ($type === static::FETCH_TYPE_NUM) {
              return $this->_statement->fetch(PDO::FETCH_NUM);
          }
          if ($type === static::FETCH_TYPE_ASSOC) {
              return $this->_statement->fetch(PDO::FETCH_ASSOC);
          }
          if ($type === static::FETCH_TYPE_OBJ) {
              return $this->_statement->fetch(PDO::FETCH_OBJ);
          }
  
          return $this->_statement->fetch($type);
      }
code_tokens: public function fetch ( $ type = parent :: FETCH_TYPE_NUM ) { if ( $ type === static :: FETCH_TYPE_NUM ) { return $ this -> _statement -> fetch ( PDO :: FETCH_NUM ) ; } if ( $ type === static :: FETCH_TYPE_ASSOC ) { return $ this -> _statement -> fetch ( PDO :: FETCH_ASSOC ) ; } if ( $ type === static :: FETCH_TYPE_OBJ ) { return $ this -> _statement -> fetch ( PDO :: FETCH_OBJ ) ; } return $ this -> _statement -> fetch ( $ type ) ; }
docstring: Returns the next row for the result set after executing this statement.
  Rows can be fetched to contain columns as names or positions. If no
  rows are left in result set, this method will return false
  
  ### Example:
  
  ```
  $statement = $connection->prepare('SELECT id, title from articles');
  $statement->execute();
  print_r($statement->fetch('assoc')); // will show ['id' => 1, 'title' => 'a title']
  ```
  
  @param string $type 'num' for positional columns, assoc for named columns
  @return array|false Result array containing columns and values or false if no results
  are left
docstring_tokens: Returns the next row for the result set after executing this statement . Rows can be fetched to contain columns as names or positions . If no rows are left in result set this method will return false