Eduardokum\LaravelBoleto\Cnab\Remessa\Cnab400\Banco\Banrisul::header PHP Method

header() protected method

protected header ( )
    protected function header()
    {
        $this->iniciaHeader();
        $cod_servico = '';
        $tipo_processamento = '';
        $cod_cliente = '';
        if ($this->isCarteiraRSX()) {
            $cod_servico = $this->isTeste() ? '8808' : '0808';
            $tipo_processamento = $this->isTeste() ? 'X' : 'P';
            $cod_cliente = $this->getCodigoClienteOfficeBanking();
        }
        $this->add(1, 1, '0');
        $this->add(2, 2, '1');
        $this->add(3, 9, 'REMESSA');
        $this->add(10, 26, '');
        $this->add(27, 39, Util::formatCnab('9', $this->getCodigoCliente(), 13));
        $this->add(40, 46, '');
        $this->add(47, 76, Util::formatCnab('X', $this->getBeneficiario()->getNome(), 30));
        $this->add(77, 79, $this->getCodigoBanco());
        $this->add(80, 87, Util::formatCnab('X', 'BANRISUL', 8));
        $this->add(88, 94, '');
        $this->add(95, 100, date('dmy'));
        $this->add(101, 109, '');
        $this->add(110, 113, Util::formatCnab('9', $cod_servico, 4));
        $this->add(114, 114, '');
        $this->add(115, 115, $tipo_processamento);
        $this->add(116, 116, '');
        $this->add(117, 126, Util::formatCnab('9', $cod_cliente, 10));
        $this->add(127, 394, '');
        $this->add(395, 400, Util::formatCnab('9', 1, 6));
        return $this;
    }