Exemplo n.º 1
0
 /**
  * @return array
  */
 public function getBoletos()
 {
     $boletos = [];
     /**
      * @var $parcela Parcela
      */
     foreach ($this->parcelas as $parcela) {
         $boleto = new Boleto();
         $boleto->setBanco($this->getBanco());
         $boleto->setCedente($this->getCedente());
         $boleto->setSacado($this->getSacado());
         $boleto->setAvalista($this->getAvalista());
         $boleto->setNumeroDocumento($parcela->getNumeroDocumento());
         $boleto->setNossoNumero($parcela->getNossoNumero());
         $boleto->setDataVencimento($parcela->getDataVencimento());
         $boleto->setDataDocumento($this->dataDocumento);
         $boleto->setDataProcessamento($this->dataProcessamento);
         $boleto->setNumeroMoeda($this->numeroMoeda);
         $boleto->setValorBoleto($parcela->getValorBoleto());
         $boleto->setDemonstrativos($this->demonstrativos);
         $boleto->setInstrucoes($this->instrucoes);
         $boletos[] = $boleto;
     }
     return $boletos;
 }