| 1 | <?php |
||
| 10 | class BankAccount implements AccountNumber |
||
| 11 | { |
||
| 12 | use Formatter\FormattableTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string The name of the Bank this number belongs to |
||
| 16 | */ |
||
| 17 | private $bankName; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var AccountNumber |
||
| 21 | */ |
||
| 22 | private $decorated; |
||
| 23 | |||
| 24 | 89 | public function __construct(string $bankName, AccountNumber $decorated) |
|
| 29 | |||
| 30 | 89 | public function getBankName(): string |
|
| 34 | |||
| 35 | 1 | public function getRawNumber(): string |
|
| 39 | |||
| 40 | 87 | public function getClearingNumber(): string |
|
| 44 | |||
| 45 | 87 | public function getClearingCheckDigit(): string |
|
| 49 | |||
| 50 | 87 | public function getSerialNumber(): string |
|
| 54 | |||
| 55 | 87 | public function getCheckDigit(): string |
|
| 59 | |||
| 60 | 87 | public function equals(AccountNumber $account, bool $strict = false): bool |
|
| 64 | |||
| 65 | 86 | protected function getFormattable(): AccountNumber |
|
| 69 | } |
||
| 70 |