Example #1
0
 /**
  * @return string Conta com Dv
  */
 public function getContaComDv()
 {
     $conta = Numero::formataNumero($this->getConta(), 7, 0);
     $dv = Numero::formataNumero($this->dvConta, 1, 0);
     return $conta . "-" . $dv;
 }
Example #2
0
 /**
  * @return int
  */
 public function getValorBoletoSemVirgula()
 {
     //valor tem 10 digitos, sem virgula
     return Numero::formataNumero($this->valorBoleto, 10, 0, "valor");
 }
Example #3
0
 /**
  * @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";
 }