Card::getExpYear()   A
last analyzed

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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Response\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
final class Card
11
{
12
    public const HOLDER_SEGMENT_UNSPECIFIED = 'UNSPECIFIED';
13
    public const HOLDER_SEGMENT_CONSUMER = 'CONSUMER';
14
    public const HOLDER_SEGMENT_CORPORATE = 'CORPORATE';
15
    public const HOLDER_SEGMENT_CORPORATE_AND_CONSUMER = 'CORPORATE_AND_CONSUMER';
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("MaskedNumber")
20
     * @Type("string")
21
     */
22
    private $maskedNumber;
23
24
    /**
25
     * @var int|null
26
     * @SerializedName("ExpYear")
27
     * @Type("integer")
28
     */
29
    private $expYear;
30
31
    /**
32
     * @var int|null
33
     * @SerializedName("ExpMonth")
34
     * @Type("integer")
35
     */
36
    private $expMonth;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("HolderName")
41
     * @Type("string")
42
     */
43
    private $holderName;
44
45
    /**
46
     * @var string|null
47
     * @SerializedName("HolderSegment")
48
     * @Type("string")
49
     */
50
    private $holderSegment;
51
52
    /**
53
     * @var string|null
54
     * @SerializedName("CountryCode")
55
     * @Type("string")
56
     */
57
    private $countryCode;
58
59
    /**
60
     * @var string|null
61
     * @SerializedName("HashValue")
62
     * @Type("string")
63
     */
64
    private $hashValue;
65
66
    public function getMaskedNumber(): ?string
67
    {
68
        return $this->maskedNumber;
69
    }
70
71
    public function getExpYear(): ?int
72
    {
73
        return $this->expYear;
74
    }
75
76
    public function getExpMonth(): ?int
77
    {
78
        return $this->expMonth;
79
    }
80
81
    public function getHolderName(): ?string
82
    {
83
        return $this->holderName;
84
    }
85
86
    public function getHolderSegment(): ?string
87
    {
88
        return $this->holderSegment;
89
    }
90
91
    public function getCountryCode(): ?string
92
    {
93
        return $this->countryCode;
94
    }
95
96
    public function getHashValue(): ?string
97
    {
98
        return $this->hashValue;
99
    }
100
}
101