Passed
Pull Request — master (#28)
by Manuel
09:19
created

BankAccount::getIban()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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