OtpResend   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 getSubjectValue() 0 4 1
A getMobile() 0 4 1
A setMobile() 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
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