original_string: public function total($model = null)
      {
          $params = $this->params($model);
  
          if (isset($params['pageCount'])) {
              return $params['pageCount'];
          }
  
          return 0;
      }
code: public function total($model = null)
      {
          $params = $this->params($model);
  
          if (isset($params['pageCount'])) {
              return $params['pageCount'];
          }
  
          return 0;
      }
code_tokens: public function total ( $ model = null ) { $ params = $ this -> params ( $ model ) ; if ( isset ( $ params [ 'pageCount' ] ) ) { return $ params [ 'pageCount' ] ; } return 0 ; }
docstring: Gets the total number of pages in the recordset for the given model.
  
  @param string|null $model Optional model name. Uses the default if none is specified.
  @return int The total pages for the recordset.
docstring_tokens: Gets the total number of pages in the recordset for the given model .