EmailVerification   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 52
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getVerifyValue() 0 4 1
A getToken() 0 4 1
A setToken() 0 4 1
A getSubject() 0 4 1
A setSubject() 0 4 1
1
<?php
2
namespace DoS\UserBundle\Confirmation\Model;
3
4
use DoS\UserBundle\Confirmation\ConfirmationSubjectInterface;
5
6
class EmailVerification implements VerificationInterface
7
{
8
    /**
9
     * @var ConfirmationSubjectInterface
10
     */
11
    protected $subject;
12
13
    /**
14
     * @var string
15
     */
16
    protected $token;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getVerifyValue()
22
    {
23
        return $this->token;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getToken()
30
    {
31
        return $this->token;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setToken($token)
38
    {
39
        $this->token = $token;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getSubject()
46
    {
47
        return $this->subject;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function setSubject(ConfirmationSubjectInterface $subject = null)
54
    {
55
        $this->subject = $subject;
56
    }
57
}
58