OtpVerification::setSubject()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace DoS\UserBundle\Confirmation\Model;
3
4
use DoS\UserBundle\Confirmation\ConfirmationSubjectInterface;
5
6
class OtpVerification implements VerificationInterface
7
{
8
    /**
9
     * @var ConfirmationSubjectInterface
10
     */
11
    protected $subject;
12
13
    /**
14
     * @var string
15
     */
16
    protected $token;
17
18
    /**
19
     * @var string
20
     */
21
    protected $otp;
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getVerifyValue()
27
    {
28
        return $this->otp;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getToken()
35
    {
36
        return $this->token;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function setToken($token)
43
    {
44
        $this->token = $token;
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function getSubject()
51
    {
52
        return $this->subject;
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function setSubject(ConfirmationSubjectInterface $subject = null)
59
    {
60
        $this->subject = $subject;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getOtp()
67
    {
68
        return $this->otp;
69
    }
70
71
    /**
72
     * @param string $otp
73
     */
74
    public function setOtp($otp)
75
    {
76
        $this->otp = $otp;
77
    }
78
}
79