BankAccount::setBic()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
final class BankAccount
11
{
12
    /**
13
     * @var string
14
     * @SerializedName("Iban")
15
     */
16
    private $iban;
17
18
    /**
19
     * @var string|null
20
     * @SerializedName("HolderName")
21
     */
22
    private $holderName;
23
24
    /**
25
     * @var string|null
26
     * @SerializedName("BIC")
27
     */
28
    private $bic;
29
30
    /**
31
     * @var string|null
32
     * @SerializedName("BankName")
33
     */
34
    private $bankName;
35
36
    public function __construct(string $iban)
37
    {
38
        $this->iban = $iban;
39
    }
40
41
    public function getIban(): string
42
    {
43
        return $this->iban;
44
    }
45
46
    public function getHolderName(): ?string
47
    {
48
        return $this->holderName;
49
    }
50
51
    public function setHolderName(?string $holderName): self
52
    {
53
        $this->holderName = $holderName;
54
55
        return $this;
56
    }
57
58
    public function getBic(): ?string
59
    {
60
        return $this->bic;
61
    }
62
63
    public function setBic(?string $bic): self
64
    {
65
        $this->bic = $bic;
66
67
        return $this;
68
    }
69
70
    public function getBankName(): ?string
71
    {
72
        return $this->bankName;
73
    }
74
75
    public function setBankName(?string $bankName): self
76
    {
77
        $this->bankName = $bankName;
78
79
        return $this;
80
    }
81
}
82