ForgotYourPasswordView   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 46
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmail() 0 4 1
A setEmail() 0 4 1
A isDisplayEmailNotFound() 0 4 1
A setDisplayEmailNotFound() 0 4 1
1
<?php
2
3
namespace Mouf\Security\Password;
4
5
use Mouf\Html\HtmlElement\HtmlElementInterface;
6
use Mouf\Html\Renderer\Renderable;
7
8
class ForgotYourPasswordView implements HtmlElementInterface
9
{
10
    use Renderable;
11
12
    /**
13
     * @var string
14
     */
15
    private $email;
16
17
    /**
18
     * @var bool
19
     */
20
    private $displayEmailNotFound = false;
21
22
    /**
23
     * @return string
24
     */
25
    public function getEmail() : string
26
    {
27
        return $this->email;
28
    }
29
30
    /**
31
     * @param string $email
32
     */
33
    public function setEmail(string $email)
34
    {
35
        $this->email = $email;
36
    }
37
38
    /**
39
     * @return bool
40
     */
41
    public function isDisplayEmailNotFound(): bool
42
    {
43
        return $this->displayEmailNotFound;
44
    }
45
46
    /**
47
     * @param bool $displayEmailNotFound
48
     */
49
    public function setDisplayEmailNotFound(bool $displayEmailNotFound)
50
    {
51
        $this->displayEmailNotFound = $displayEmailNotFound;
52
    }
53
}
54