protected function segmentoP(BoletoContract $boleto)
118 {
119 $this->iniciaDetalhe();
120 $this->add(1, 3, Util::onlyNumbers($this->getCodigoBanco()));
121 $this->add(4, 7, '0001');
122 $this->add(8, 8, '3');
123 $this->add(9, 13, Util::formatCnab('9', $this->iRegistrosLote, 5));
124 $this->add(14, 14, 'P');
125 $this->add(15, 15, '');
126 $this->add(16, 17, self::OCORRENCIA_REMESSA);
127 if ($boleto->getStatus() == $boleto::STATUS_BAIXA) {
128 $this->add(16, 17, self::OCORRENCIA_PEDIDO_BAIXA);
129 }
130 if ($boleto->getStatus() == $boleto::STATUS_ALTERACAO) {
131 $this->add(16, 17, self::OCORRENCIA_ALT_OUTROS_DADOS);
132 }
133 if ($boleto->getStatus() == $boleto::STATUS_ALTERACAO_DATA) {
134 $this->add(16, 17, self::OCORRENCIA_ALT_VENCIMENTO);
135 }
136 if ($boleto->getStatus() == $boleto::STATUS_CUSTOM) {
137 $this->add(16, 17, sprintf('%2.02s', $boleto->getComando()));
138 }
o código acima mostra como está sendo tratado o getStatus(), mas não achei na documentação de como eu posso colocar quando eu for gerar a remessa.