OtpResend::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
use libphonenumber\PhoneNumber;
6
7
class OtpResend implements ResendInterface
8
{
9
    /**
10
     * @var ConfirmationSubjectInterface
11
     */
12
    protected $subject;
13
14
    /**
15
     * @var PhoneNumber
16
     */
17
    protected $mobile;
18
19
    /**
20
     * @return string
21
     */
22
    public function getSubjectValue()
23
    {
24
        return $this->mobile;
25
    }
26
27
    /**
28
     * @return PhoneNumber
29
     */
30
    public function getMobile()
31
    {
32
        return $this->mobile;
33
    }
34
35
    /**
36
     * @param PhoneNumber $mobile
37
     */
38
    public function setMobile(PhoneNumber $mobile)
39
    {
40
        $this->mobile = $mobile;
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function getSubject()
47
    {
48
        return $this->subject;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function setSubject(ConfirmationSubjectInterface $subject)
55
    {
56
        $this->subject = $subject;
57
    }
58
}
59