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

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