Passed
Pull Request — master (#28)
by Manuel
02:51
created

Card   A

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