original_string: public function toCsv()
      {
          $csv = '';
  
          foreach ($this->toArray() as $csvRow) {
              if (is_array($csvRow)) {
                  $data = implode($this->_csvDelimiter, $csvRow);
              } else {
                  $data = $csvRow;
              }
  
              $csv .= $data . $this->_csvLineDelimiter;
          }
  
          return rtrim($csv, $this->_csvLineDelimiter);
      }
code: public function toCsv()
      {
          $csv = '';
  
          foreach ($this->toArray() as $csvRow) {
              if (is_array($csvRow)) {
                  $data = implode($this->_csvDelimiter, $csvRow);
              } else {
                  $data = $csvRow;
              }
  
              $csv .= $data . $this->_csvLineDelimiter;
          }
  
          return rtrim($csv, $this->_csvLineDelimiter);
      }
code_tokens: public function toCsv ( ) { $ csv = '' ; foreach ( $ this -> toArray ( ) as $ csvRow ) { if ( is_array ( $ csvRow ) ) { $ data = implode ( $ this -> _csvDelimiter , $ csvRow ) ; } else { $ data = $ csvRow ; } $ csv .= $ data . $ this -> _csvLineDelimiter ; } return rtrim ( $ csv , $ this -> _csvLineDelimiter ) ; }
docstring: export object as csv data
  
  @return string
docstring_tokens: export object as csv data