protected function processarTrailerArquivo($linha)
    {
        $trailer = $this->createTrailer();

        $banco = new Banco();
        $banco->setCod($linha->substr(5, 3)->trim());

        $simples = new Cobranca();
        $simples->setQtdTitulos($linha->substr(18, 8)->trim())
            ->setValorTotal($this->formataNumero($linha->substr(26, 14)->trim()))
            ->setNumAviso($linha->substr(40, 8)->trim());

        $vinculada = new Cobranca();
        $vinculada->setQtdTitulos($linha->substr(58, 8)->trim())
            ->setValorTotal($this->formataNumero($linha->substr(66, 14)->trim()))
            ->setNumAviso($linha->substr(80, 8)->trim());

        $caucionada = new Cobranca();
        $caucionada->setQtdTitulos($linha->substr(98, 8)->trim())
            ->setValorTotal($this->formataNumero($linha->substr(106, 14)->trim()))
            ->setNumAviso($linha->substr(120, 8)->trim());

        $descontada = new Cobranca();
        $descontada->setQtdTitulos($linha->substr(138, 8)->trim())
            ->setValorTotal($this->formataNumero($linha->substr(146, 14)->trim()))
            ->setNumAviso($linha->substr(160, 8)->trim());

        $vendor = new Cobranca();
        $vendor->setQtdTitulos($linha->substr(218, 8)->trim())
            ->setValorTotal($this->formataNumero($linha->substr(226, 14)->trim()))
            ->setNumAviso($linha->substr(240, 8)->trim());

        $trailer
            ->setBanco($banco)
            ->setRegistro($linha->substr(1, 1)->trim())
            ->setRetorno($linha->substr(2, 1)->trim())
            ->setTipoRegistro($linha->substr(3, 2)->trim())
            ->setSimples($simples)
            ->setVinculada($vinculada)
            ->setCaucionada($caucionada)
            ->setDescontada($descontada)
            ->setVendor($vendor)
            ->setSequencial($linha->substr(395, 6)->trim());
        return $trailer;
    }