src/Writer.php
/**
     * Write the records to the CSV TempFile
     * If that was successful than move file from temp directory to target directory
     * @param array $records
     * @throws CsvException
     */
Write the records to the CSV TempFile
If that was successful than move file from temp directory to target directory
@param array $records
@throws CsvException
Write the records to the CSV TempFile If that was successful than move file from temp directory to target directory @param array $records @throws CsvException
public function writeRecordsToCsv(array $records): void
    {
        if (false === $this->writeRecords($records)) {
            throw CsvException::writeError();
        }
        if (false === rename($this->getTempCsvFilePath(), $this->getCsvFilePath())) {
            throw new Exception('Could not move file from tmp to target directory.');
        }
    }
public function writeRecordsToCsv ( array $ records ) : void { if ( false === $ this -> writeRecords ( $ records ) ) { throw CsvException :: writeError ( ) ; } if ( false === rename ( $ this -> getTempCsvFilePath ( ) , $ this -> getCsvFilePath ( ) ) ) { throw new Exception ( 'Could not move file from tmp to target directory.' ) ; } }
Write the records to the CSV TempFile
 If that was successful than move file from temp directory to target directory
 @param array $records
 @throws CsvException
Write the records to the CSV TempFile If that was successful than move file from temp directory to target directory @param array $records @throws CsvException