Card   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 92
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getNumber() 0 3 1
A getExpMonth() 0 3 1
A setHolderName() 0 5 1
A setExpMonth() 0 5 1
A getExpYear() 0 3 1
A setNumber() 0 5 1
A getCountryCode() 0 3 1
A setExpYear() 0 5 1
A getHolderName() 0 3 1
A setCountryCode() 0 5 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 Card
11
{
12
    /**
13
     * @var string|null
14
     * @SerializedName("Number")
15
     */
16
    private $number;
17
18
    /**
19
     * @var int|null
20
     * @SerializedName("ExpYear")
21
     * @Type("integer")
22
     */
23
    private $expYear;
24
25
    /**
26
     * @var int|null
27
     * @SerializedName("ExpMonth")
28
     * @Type("integer")
29
     */
30
    private $expMonth;
31
32
    /**
33
     * @var string|null
34
     * @SerializedName("HolderName")
35
     */
36
    private $holderName;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("CountryCode")
41
     */
42
    private $countryCode;
43
44
    public function getNumber(): ?string
45
    {
46
        return $this->number;
47
    }
48
49
    public function setNumber(?string $number): self
50
    {
51
        $this->number = $number;
52
53
        return $this;
54
    }
55
56
    public function getExpYear(): ?int
57
    {
58
        return $this->expYear;
59
    }
60
61
    public function setExpYear(?int $expYear): self
62
    {
63
        $this->expYear = $expYear;
64
65
        return $this;
66
    }
67
68
    public function getExpMonth(): ?int
69
    {
70
        return $this->expMonth;
71
    }
72
73
    public function setExpMonth(?int $expMonth): self
74
    {
75
        $this->expMonth = $expMonth;
76
77
        return $this;
78
    }
79
80
    public function getHolderName(): ?string
81
    {
82
        return $this->holderName;
83
    }
84
85
    public function setHolderName(?string $holderName): self
86
    {
87
        $this->holderName = $holderName;
88
89
        return $this;
90
    }
91
92
    public function getCountryCode(): ?string
93
    {
94
        return $this->countryCode;
95
    }
96
97
    public function setCountryCode(?string $countryCode): self
98
    {
99
        $this->countryCode = $countryCode;
100
101
        return $this;
102
    }
103
}
104