Card::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace SafeCrow\Model;
3
4
/**
5
 * Class Card
6
 * @package SafeCrow\Model
7
 */
8
class Card
9
{
10
    /**
11
     * @var int
12
     */
13
    private $id;
14
15
    /**
16
     * @var string
17
     */
18
    private $holder;
19
20
    /**
21
     * @var string
22
     */
23
    private $number;
24
25
    /**
26
     * @var \DateTime
27
     */
28
    private $expireAt;
29
30
    /**
31
     * @var \DateTime
32
     */
33
    private $createdAt;
34
35
    /**
36
     * @return int
37
     */
38
    public function getId(): int
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @param int $id
45
     * @return Card
46
     */
47
    public function setId(int $id): Card
48
    {
49
        $this->id = $id;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getHolder(): string
58
    {
59
        return $this->holder;
60
    }
61
62
    /**
63
     * @param string $holder
64
     * @return Card
65
     */
66
    public function setHolder(string $holder): Card
67
    {
68
        $this->holder = $holder;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getNumber(): string
77
    {
78
        return $this->number;
79
    }
80
81
    /**
82
     * @param string $number
83
     * @return Card
84
     */
85
    public function setNumber(string $number): Card
86
    {
87
        $this->number = $number;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return \DateTime
94
     */
95
    public function getExpireAt(): \DateTime
96
    {
97
        return $this->expireAt;
98
    }
99
100
    /**
101
     * @param \DateTime $expireAt
102
     * @return Card
103
     */
104
    public function setExpireAt(\DateTime $expireAt): Card
105
    {
106
        $this->expireAt = $expireAt;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return \DateTime
113
     */
114
    public function getCreatedAt(): \DateTime
115
    {
116
        return $this->createdAt;
117
    }
118
119
    /**
120
     * @param \DateTime $createdAt
121
     * @return Card
122
     */
123
    public function setCreatedAt(\DateTime $createdAt): Card
124
    {
125
        $this->createdAt = $createdAt;
126
127
        return $this;
128
    }
129
}
130