BankAccount   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 70
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getBankName() 0 3 1
A setBankName() 0 5 1
A getBic() 0 3 1
A getHolderName() 0 3 1
A getIban() 0 3 1
A setBic() 0 5 1
A setHolderName() 0 5 1
A __construct() 0 3 1
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