src/Cnab/Remessa/AbstractRemessa.php
public function download($filename = null)
    {
        if ($filename === null) {
            $filename = 'remessa.txt';
        }
        header('Content-type: text/plain');
        header('Content-Disposition: attachment; filename="' . $filename . '"');
        echo $this->gerar();
    }
public function download($filename = null)
    {
        if ($filename === null) {
            $filename = 'remessa.txt';
        }
        header('Content-type: text/plain');
        header('Content-Disposition: attachment; filename="' . $filename . '"');
        echo $this->gerar();
    }
public function download ( $ filename = null ) { if ( $ filename === null ) { $ filename = 'remessa.txt' ; } header ( 'Content-type: text/plain' ) ; header ( 'Content-Disposition: attachment; filename="' . $ filename . '"' ) ; echo $ this -> gerar ( ) ; }
Realiza o download da string retornada do metodo gerar

@param null $filename

@throws \Exception
Realiza o download da string retornada do metodo gerar