Completed
Push — master ( 585d40...a6f122 )
by Derek Stephen
02:36
created

EmailLink::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Del\Entity;
4
5
/**
6
 * @Entity(repositoryClass="Del\Repository\EmailLink")
7
 */
8
class EmailLink
9
{
10
    /**
11
     * @Id @Column(type="integer")
12
     * @GeneratedValue
13
     */
14
    private $id;
15
16
    /**
17
     *  @ManyToOne(targetEntity="Del\Entity\User")
18
     */
19
    private $user;
20
21
    /**
22
     * @Column(type="datetime")
23
     */
24
    private $expiry_date;
25
26
    /**
27
     * @Column(type="string")
28
     */
29
    private $token;
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @param mixed $id
41
     * @return EmailLink
42
     */
43
    public function setId($id)
44
    {
45
        $this->id = $id;
46
        return $this;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getUser()
53
    {
54
        return $this->user;
55
    }
56
57
    /**
58
     * @param mixed $user
59
     * @return EmailLink
60
     */
61
    public function setUser($user)
62
    {
63
        $this->user = $user;
64
        return $this;
65
    }
66
67
    /**
68
     * @return mixed
69
     */
70
    public function getExpiryDate()
71
    {
72
        return $this->expiry_date;
73
    }
74
75
    /**
76
     * @param mixed $expiry_date
77
     * @return EmailLink
78
     */
79
    public function setExpiryDate($expiry_date)
80
    {
81
        $this->expiry_date = $expiry_date;
82
        return $this;
83
    }
84
85
    /**
86
     * @return mixed
87
     */
88
    public function getToken()
89
    {
90
        return $this->token;
91
    }
92
93
    /**
94
     * @param mixed $token
95
     * @return EmailLink
96
     */
97
    public function setToken($token)
98
    {
99
        $this->token = $token;
100
        return $this;
101
    }
102
103
104
}
105
106
107