UserProfile::isEmailVerified()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Svycka\SocialUser;
4
5
/**
6
 * @author Vytautas Stankus <[email protected]>
7
 * @license MIT
8
 */
9
class UserProfile implements UserProfileInterface
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $identifier;
15
16
    /**
17
     * @var string
18
     */
19
    protected $email;
20
21
    /**
22
     * @var string
23
     */
24
    protected $displayName;
25
26
    /**
27
     * @var string
28
     */
29
    protected $firstName;
30
31
    /**
32
     * @var string
33
     */
34
    protected $lastName;
35
36
    /**
37
     * @var bool
38
     */
39
    protected $emailVerified = false;
40
41
    /**
42
     * @return string
43
     */
44 7
    public function getIdentifier()
45
    {
46 7
        return $this->identifier;
47
    }
48
49
    /**
50
     * @param string $identifier
51
     */
52 13
    public function setIdentifier($identifier)
53
    {
54 13
        $this->identifier = $identifier;
55 13
    }
56
57
    /**
58
     * @return string
59
     */
60 6
    public function getEmail()
61
    {
62 6
        return $this->email;
63
    }
64
65
    /**
66
     * @param string $email
67
     */
68 13
    public function setEmail($email)
69
    {
70 13
        $this->email = $email;
71 13
    }
72
73
    /**
74
     * @return string
75
     */
76 1
    public function getDisplayName()
77
    {
78 1
        return $this->displayName;
79
    }
80
81
    /**
82
     * @param string $displayName
83
     */
84 13
    public function setDisplayName($displayName)
85
    {
86 13
        $this->displayName = $displayName;
87 13
    }
88
89
    /**
90
     * @return string
91
     */
92 1
    public function getFirstName()
93
    {
94 1
        return $this->firstName;
95
    }
96
97
    /**
98
     * @param string $firstName
99
     */
100 13
    public function setFirstName($firstName)
101
    {
102 13
        $this->firstName = $firstName;
103 13
    }
104
105
    /**
106
     * @return string
107
     */
108 1
    public function getLastName()
109
    {
110 1
        return $this->lastName;
111
    }
112
113
    /**
114
     * @param string $lastName
115
     */
116 13
    public function setLastName($lastName)
117
    {
118 13
        $this->lastName = $lastName;
119 13
    }
120
121
    /**
122
     * @return bool
123
     */
124 5
    public function isEmailVerified()
125
    {
126 5
        return $this->emailVerified;
127
    }
128
129
    /**
130
     * @param bool $verified
131
     */
132 13
    public function setEmailVerified($verified)
133
    {
134 13
        $this->emailVerified = (bool) $verified;
135 13
    }
136
}
137