original_string: public function setTotalsTitle($field, $title = 'Total: %s row%s')
      {
          $this->totals_title_field = $field;
          $this->totals_title = $title;
  
          return $this;
      }
code: public function setTotalsTitle($field, $title = 'Total: %s row%s')
      {
          $this->totals_title_field = $field;
          $this->totals_title = $title;
  
          return $this;
      }
code_tokens: public function setTotalsTitle ( $ field , $ title = 'Total: %s row%s' ) { $ this -> totals_title_field = $ field ; $ this -> totals_title = $ title ; return $ this ; }
docstring: Sets totals title field and text.
  
  @param string $field
  @param string $title
  
  @return $this
docstring_tokens: Sets totals title field and text .