src/main/php/response/mimetypes/Csv.php
private function toCsvLine(array $elements, $memory): string
    {
        ftruncate($memory, 0);
        rewind($memory);
        fputcsv($memory, $elements, $this->delimiter, $this->enclosure);
        rewind($memory);
        return stream_get_contents($memory);
    }
private function toCsvLine(array $elements, $memory): string
    {
        ftruncate($memory, 0);
        rewind($memory);
        fputcsv($memory, $elements, $this->delimiter, $this->enclosure);
        rewind($memory);
        return stream_get_contents($memory);
    }
private function toCsvLine ( array $ elements , $ memory ) : string { ftruncate ( $ memory , 0 ) ; rewind ( $ memory ) ; fputcsv ( $ memory , $ elements , $ this -> delimiter , $ this -> enclosure ) ; rewind ( $ memory ) ; return stream_get_contents ( $ memory ) ; }
turns given list of elements into a line suitable for csv

@param   string[]  $elements
@param   resource  $memory
@return  string
turns given list of elements into a line suitable for csv