1 | <?php |
||
19 | class BankAccountValidator |
||
20 | { |
||
21 | /** @var BankAccount */ |
||
22 | private $bankAccount; |
||
23 | |||
24 | /** |
||
25 | * @param BankAccount $bankAccount |
||
26 | */ |
||
27 | public function __construct(BankAccount $bankAccount) |
||
31 | |||
32 | /** |
||
33 | * Validate the attributes of the bank accoun class for deposit billet |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function validate(): void |
||
42 | |||
43 | /** |
||
44 | * This validates the branch |
||
45 | * |
||
46 | * @return void |
||
47 | * @throws InvalidArgumentException |
||
48 | */ |
||
49 | private function validateBranch() |
||
56 | |||
57 | /** |
||
58 | * This validates the bank account number |
||
59 | * |
||
60 | * @return void |
||
61 | * @throws InvalidArgumentException |
||
62 | */ |
||
63 | private function validateNumber() |
||
70 | } |
||
71 |