EmailResend   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 getEmail() 0 4 1
A setEmail() 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 EmailResend implements ResendInterface
7
{
8
    /**
9
     * @var ConfirmationSubjectInterface
10
     */
11
    protected $subject;
12
13
    /**
14
     * @var string
15
     */
16
    protected $email;
17
18
    /**
19
     * @return string
20
     */
21
    public function getSubjectValue()
22
    {
23
        return $this->email;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getEmail()
30
    {
31
        return $this->email;
32
    }
33
34
    /**
35
     * @param string $email
36
     */
37
    public function setEmail($email)
38
    {
39
        $this->email = $email;
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