/** * @param Boleto $boleto * @return string */ function getLinha(Boleto $boleto) { return $this->getCodigo() . $boleto->getNumeroMoeda() . $this->getDigitoVerificadorCodigoBarras($boleto) . $boleto->getFatorVencimento() . $boleto->getValorBoletoSemVirgula() . $this->getCampoLivre($boleto) . $this->getDvCampoLivre($boleto); }
/** * @param Boleto $boleto * @return string */ public function getLinha(Boleto $boleto) { return $this->getCodigo() . $boleto->getNumeroMoeda() . $boleto->getDigitoVerificadorCodigoBarras() . $boleto->getFatorVencimento() . $boleto->getValorBoletoSemVirgula() . $boleto->getCedente()->getAgencia() . $boleto->getNossoNumeroSemDigitoVerificador() . Numero::formataNumero($boleto->getCedente()->getConta(), 7, 0) . "0"; }