|
13 | 13 | */ |
14 | 14 | class Ktz extends BaseDeg implements AccountInfo |
15 | 15 | { |
16 | | - /** @var bool Whether it's a SEPA account that has IBAN/BIC, or not (e.g. a stock depot) */ |
17 | | - public $kontoverwendungSepa; |
18 | | - /** @var string|null Max length: 34 */ |
19 | | - public $iban; |
20 | | - /** @var string|null Max length: 11, required if IBAN is present. */ |
21 | | - public $bic; |
22 | | - /** @var string Also known as Depotnummer. */ |
23 | | - public $kontonummer; |
24 | | - /** @var string|null */ |
25 | | - public $unterkontomerkmal; |
26 | | - /** @var Kik */ |
27 | | - public $kreditinstitutskennung; |
| 16 | + /** Whether it's a SEPA account that has IBAN/BIC, or not (e.g. a stock depot) */ |
| 17 | + public bool $kontoverwendungSepa; |
| 18 | + /** Max length: 34 */ |
| 19 | + public ?string $iban = null; |
| 20 | + /** Max length: 11, required if IBAN is present. */ |
| 21 | + public ?string $bic = null; |
| 22 | + /** Also known as Depotnummer. */ |
| 23 | + public string $kontonummer; |
| 24 | + public ?string $unterkontomerkmal = null; |
| 25 | + public Kik $kreditinstitutskennung; |
28 | 26 |
|
29 | 27 | /** {@inheritdoc} */ |
30 | | - public function getAccountNumber() |
| 28 | + public function getAccountNumber(): string |
31 | 29 | { |
32 | 30 | return $this->iban ?? $this->kontonummer; |
33 | 31 | } |
34 | 32 |
|
35 | 33 | /** {@inheritdoc} */ |
36 | | - public function getBankIdentifier() |
| 34 | + public function getBankIdentifier(): ?string |
37 | 35 | { |
38 | 36 | return $this->bic ?? $this->kreditinstitutskennung->kreditinstitutscode; |
39 | 37 | } |
|
0 commit comments