Skip to content

Commit

Permalink
Código do banco do Brasil na classe Banco
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersondaniel committed Apr 5, 2015
1 parent 7e3d61b commit 542a605
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Cnab/Banco.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
namespace Cnab;
class Banco
{
const BANCO_DO_BRASIL = 1;
const SANTANDER = 33;
const CEF = 104;
const BRADESCO = 237;
const ITAU = 341;

public static function getBanco($codigo)
{
if($codigo == self::ITAU)
if($codigo == self::BANCO_DO_BRASIL)
{
return array(
'codigo_do_banco' => self::BANCO_DO_BRASIL,
'nome_do_banco' => 'BANCO DO BRASIL SA',
);
} else if($codigo == self::ITAU)
{
return array(
'codigo_do_banco' => self::ITAU,
Expand Down Expand Up @@ -46,4 +53,4 @@ public static function existBanco($codigo_banco)
$banco = self::getBanco($codigo_banco);
return $banco ? true : false;
}
}
}

0 comments on commit 542a605

Please sign in to comment.