1 | <?php |
||
17 | class BankAccountValidator |
||
18 | { |
||
19 | /** @var BankAccount */ |
||
20 | private $bankAccount; |
||
21 | |||
22 | /** |
||
23 | * @param BankAccount $bankAccount |
||
24 | */ |
||
25 | public function __construct(BankAccount $bankAccount) |
||
29 | |||
30 | /** |
||
31 | * Validate the attributes of the bank accoun class for deposit billet |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function validate(): void |
||
40 | |||
41 | /** |
||
42 | * This validates the branch |
||
43 | * |
||
44 | * @return void |
||
45 | * @throws \InvalidArgumentException |
||
46 | */ |
||
47 | private function validateBranch() |
||
54 | |||
55 | /** |
||
56 | * This validates the bank account number |
||
57 | * |
||
58 | * @return void |
||
59 | * @throws \InvalidArgumentException |
||
60 | */ |
||
61 | private function validateNumber() |
||
68 | } |
||
69 |