Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
23 | class BankAccount |
||
24 | { |
||
25 | /** |
||
26 | * @Serializer\Type("string") |
||
27 | */ |
||
28 | private string $iban; |
||
29 | |||
30 | /** |
||
31 | * @Serializer\Type("string") |
||
32 | * TODO Validated according to IBAN standards |
||
33 | */ |
||
34 | private string $accountHolder; |
||
35 | |||
36 | 1 | public function __construct(string $iban, string $accountHolder) |
|
37 | { |
||
38 | 1 | $this->iban = $iban; |
|
39 | 1 | $this->accountHolder = $accountHolder; |
|
40 | } |
||
41 | |||
42 | 1 | public function getIban(): string |
|
43 | { |
||
44 | 1 | return $this->iban; |
|
45 | } |
||
46 | |||
47 | 2 | public function setIban(string $iban): void |
|
48 | { |
||
49 | 2 | $this->iban = $iban; |
|
50 | } |
||
51 | |||
52 | 1 | public function getAccountHolder(): string |
|
53 | { |
||
54 | 1 | return $this->accountHolder; |
|
55 | } |
||
56 | |||
57 | 2 | public function setAccountHolder(string $accountHolder): void |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return string[] |
||
64 | */ |
||
65 | 1 | public function toArray(): array |
|
70 | 1 | ]; |
|
71 | } |
||
72 | } |
||
73 |