original_string: public function fetchAll($sort = null)
      {
          $select = $this->getSelect();
          $select = $this->setSortOrder($select, $sort);
  
          $resultSet = $this->fetchResult($select);
  
          return $resultSet;
      }
code: public function fetchAll($sort = null)
      {
          $select = $this->getSelect();
          $select = $this->setSortOrder($select, $sort);
  
          $resultSet = $this->fetchResult($select);
  
          return $resultSet;
      }
code_tokens: public function fetchAll ( $ sort = null ) { $ select = $ this -> getSelect ( ) ; $ select = $ this -> setSortOrder ( $ select , $ sort ) ; $ resultSet = $ this -> fetchResult ( $ select ) ; return $ resultSet ; }
docstring: Fetches all rows from database table.
  
  @param null|string $sort
  @return HydratingResultSet|\Zend\Db\ResultSet\ResultSet|Paginator
docstring_tokens: Fetches all rows from database table .