public function addBoleto(BoletoInterface $boleto) { $this->totalBoletos += 1; $this->boleto[] = $boleto; return $this; }
/** * Render PDF * * @param bool $print * * @return string * @throws \Exception */ public function renderPDF($print = false) { $pdf = new Pdf(); $pdf->addBoleto($this); return $pdf->gerarBoleto('S', null, $print); }