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

EmailLink   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 97
ccs 0
cts 36
cp 0
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getUser() 0 4 1
A setUser() 0 5 1
A getExpiryDate() 0 4 1
A setExpiryDate() 0 5 1
A getToken() 0 4 1
A setToken() 0 5 1
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