Skip to content

Commit e856528

Browse files
authored
Merge pull request #220 from emtudo/patch-2
method gerar change to abstract
2 parents f27ad24 + 1044753 commit e856528

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Cnab/Remessa/AbstractRemessa.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,7 @@ protected function valida(array $a)
474474
* @return string
475475
* @throws \Exception
476476
*/
477-
public function gerar()
478-
{
479-
throw new \Exception('Método não implementado');
480-
}
477+
abstract public function gerar();
481478

482479
/**
483480
* Salva o arquivo no path informado
@@ -520,4 +517,4 @@ public function download($filename = null)
520517
header('Content-Disposition: attachment; filename="' . $filename . '"');
521518
echo $this->gerar();
522519
}
523-
}
520+
}

0 commit comments

Comments
 (0)