Passed
Push — master ( 5addfc...e8c424 )
by Manuel
59s queued 11s
created

BankAccount::getHolderName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
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 getHolderName(): ?string
45
    {
46
        return $this->holderName;
47
    }
48
49
    public function setHolderName(?string $holderName): self
50
    {
51
        $this->holderName = $holderName;
52
53
        return $this;
54
    }
55
56
    public function getBic(): ?string
57
    {
58
        return $this->bic;
59
    }
60
61
    public function setBic(?string $bic): self
62
    {
63
        $this->bic = $bic;
64
65
        return $this;
66
    }
67
68
    public function getBankName(): ?string
69
    {
70
        return $this->bankName;
71
    }
72
73
    public function setBankName(?string $bankName): self
74
    {
75
        $this->bankName = $bankName;
76
77
        return $this;
78
    }
79
}
80