| 1 | <?php |
||
| 9 | class Bank |
||
| 10 | { |
||
| 11 | const BANCO_DO_BRASIL = 30; |
||
| 12 | const HSBC = 36; |
||
| 13 | const SANTANDER = 54; |
||
| 14 | const CAIXA_ECONOMICA_FEDERAL = 55; |
||
| 15 | const SICRED = 79; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Agency number |
||
| 19 | * |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $agency; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Agency Digit |
||
| 26 | * |
||
| 27 | * @var number |
||
| 28 | */ |
||
| 29 | private $digit; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Bank code |
||
| 33 | * |
||
| 34 | * @var number |
||
| 35 | */ |
||
| 36 | private $code; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor |
||
| 40 | */ |
||
| 41 | 9 | public function __construct( |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return the $agency |
||
| 53 | */ |
||
| 54 | 1 | public function getAgency(): int |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Set the agency |
||
| 61 | * |
||
| 62 | * @param number $agency |
||
| 63 | */ |
||
| 64 | 1 | public function setAgency(int $agency) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @return the $agencyDigit |
||
| 71 | */ |
||
| 72 | 1 | public function getDigit(): int |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Set the digt |
||
| 79 | * |
||
| 80 | * @param number $digit |
||
| 81 | */ |
||
| 82 | 1 | public function setDigit(int $digit) |
|
| 86 | |||
| 87 | /** |
||
| 88 | * @return number |
||
| 89 | */ |
||
| 90 | 1 | public function getCode(): int |
|
| 94 | |||
| 95 | /** |
||
| 96 | * @param number $code |
||
| 97 | */ |
||
| 98 | 1 | public function setCode(int $code) |
|
| 102 | } |
||
| 103 |