OneTimePassword   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 141
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 3
Metric Value
wmc 13
c 3
b 0
f 3
lcom 0
cbo 0
dl 0
loc 141
rs 10

13 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getSubject() 0 4 1
A setSubject() 0 4 1
A getToken() 0 4 1
A setToken() 0 4 1
A getVerify() 0 4 1
A setVerify() 0 4 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 4 1
A isConfirmed() 0 4 1
A setConfirmed() 0 4 1
1
<?php
2
3
namespace DoS\UserBundle\Model;
4
5
use DoS\UserBundle\Confirmation\ConfirmationSubjectInterface;
6
7
class OneTimePassword implements OneTimePasswordInterface
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $id;
13
14
    /**
15
     * @var ConfirmationSubjectInterface
16
     */
17
    protected $subject;
18
19
    /**
20
     * @var string
21
     */
22
    protected $token;
23
24
    /**
25
     * @var string
26
     */
27
    protected $verify;
28
29
    /**
30
     * @var \DateTime
31
     */
32
    protected $createdAt;
33
34
    /**
35
     * @var \DateTime
36
     */
37
    protected $updatedAt;
38
39
    /**
40
     * @var bool
41
     */
42
    protected $confirmed;
43
44
    /**
45
     * @return int
46
     */
47
    public function getId()
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function getSubject()
56
    {
57
        return $this->subject;
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     */
63
    public function setSubject(ConfirmationSubjectInterface $subject)
64
    {
65
        $this->subject = $subject;
66
    }
67
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function getToken()
72
    {
73
        return $this->token;
74
    }
75
76
    /**
77
     * {@inheritdoc}
78
     */
79
    public function setToken($token)
80
    {
81
        $this->token = $token;
82
    }
83
84
    /**
85
     * {@inheritdoc}
86
     */
87
    public function getVerify()
88
    {
89
        return $this->verify;
90
    }
91
92
    /**
93
     * {@inheritdoc}
94
     */
95
    public function setVerify($verify)
96
    {
97
        $this->verify = $verify;
98
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function getCreatedAt()
104
    {
105
        return $this->createdAt;
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111
    public function setCreatedAt(\DateTime $createdAt)
112
    {
113
        $this->createdAt = $createdAt;
114
    }
115
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public function getUpdatedAt()
120
    {
121
        return $this->updatedAt;
122
    }
123
124
    /**
125
     * {@inheritdoc}
126
     */
127
    public function setUpdatedAt(\DateTime $updatedAt)
128
    {
129
        $this->updatedAt = $updatedAt;
130
    }
131
132
    /**
133
     * {@inheritdoc}
134
     */
135
    public function isConfirmed()
136
    {
137
        return $this->confirmed;
138
    }
139
140
    /**
141
     * {@inheritdoc}
142
     */
143
    public function setConfirmed($confirmed)
144
    {
145
        $this->confirmed = $confirmed;
146
    }
147
}
148