original_string: public function getCsvString($separator, CsvFile $csv_file = null)
  	{
  		$csv_file = $csv_file ? $csv_file : $this->csv_file;
  		$csv = '';
  		if( ! isset($csv_file) )
  		{
  			throw new NoDataException;
  		}
  		else
  		{
  			foreach($csv_file as $key => $csv_line)
  			{
  				if($key == 0)
  				{
  					$csv.=$csv_line->getCsvHeader($separator);
  				}
  				$csv.=$csv_line->getCsvString($separator);
  			}
  		}
  
  		return $csv;
  	}
code: public function getCsvString($separator, CsvFile $csv_file = null)
  	{
  		$csv_file = $csv_file ? $csv_file : $this->csv_file;
  		$csv = '';
  		if( ! isset($csv_file) )
  		{
  			throw new NoDataException;
  		}
  		else
  		{
  			foreach($csv_file as $key => $csv_line)
  			{
  				if($key == 0)
  				{
  					$csv.=$csv_line->getCsvHeader($separator);
  				}
  				$csv.=$csv_line->getCsvString($separator);
  			}
  		}
  
  		return $csv;
  	}
code_tokens: public function getCsvString ( $ separator , CsvFile $ csv_file = null ) { $ csv_file = $ csv_file ? $ csv_file : $ this -> csv_file ; $ csv = '' ; if ( ! isset ( $ csv_file ) ) { throw new NoDataException ; } else { foreach ( $ csv_file as $ key => $ csv_line ) { if ( $ key == 0 ) { $ csv .= $ csv_line -> getCsvHeader ( $ separator ) ; } $ csv .= $ csv_line -> getCsvString ( $ separator ) ; } } return $ csv ; }
docstring: Create the csv string rappresenting the CsvFile
  
  @return  String $csv
  @throws  NoDataException
docstring_tokens: Create the csv string rappresenting the CsvFile