Esempio n. 1
0
 /**
  * @param Boleto $boleto
  * @return int|string
  */
 public function getNossoNumeroComDigitoVerificador(Boleto $boleto)
 {
     return $boleto->digitoVerificadorNossonumero($this->getNossoNumeroSemDigitoVerificador($boleto));
 }
Esempio n. 2
0
 /**
  * @param Boleto $boleto
  * @return string
  */
 public function getCarteiraENossoNumeroComDigitoVerificador(Boleto $boleto)
 {
     $num = Numero::formataNumero($this->getCarteira(), 2, 0) . Numero::formataNumero($boleto->getNossoNumero(), 11, 0);
     return substr($num, 0, 2) . '/' . substr($num, 2) . '-' . $boleto->digitoVerificadorNossonumero($num);
 }