User::getState()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ZfcUser\Entity;
4
5
class User implements UserInterface
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $id;
11
12
    /**
13
     * @var string
14
     */
15
    protected $username;
16
17
    /**
18
     * @var string
19
     */
20
    protected $email;
21
22
    /**
23
     * @var string
24
     */
25
    protected $displayName;
26
27
    /**
28
     * @var string
29
     */
30
    protected $password;
31
32
    /**
33
     * @var int
34
     */
35
    protected $state;
36
37
    /**
38
     * Get id.
39
     *
40
     * @return int
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45
    }
46
47
    /**
48
     * Set id.
49
     *
50
     * @param int $id
51
     * @return UserInterface
52
     */
53
    public function setId($id)
54
    {
55
        $this->id = (int) $id;
56
        return $this;
57
    }
58
59
    /**
60
     * Get username.
61
     *
62
     * @return string
63
     */
64
    public function getUsername()
65
    {
66
        return $this->username;
67
    }
68
69
    /**
70
     * Set username.
71
     *
72
     * @param string $username
73
     * @return UserInterface
74
     */
75
    public function setUsername($username)
76
    {
77
        $this->username = $username;
78
        return $this;
79
    }
80
81
    /**
82
     * Get email.
83
     *
84
     * @return string
85
     */
86
    public function getEmail()
87
    {
88
        return $this->email;
89
    }
90
91
    /**
92
     * Set email.
93
     *
94
     * @param string $email
95
     * @return UserInterface
96
     */
97
    public function setEmail($email)
98
    {
99
        $this->email = $email;
100
        return $this;
101
    }
102
103
    /**
104
     * Get displayName.
105
     *
106
     * @return string
107
     */
108
    public function getDisplayName()
109
    {
110
        return $this->displayName;
111
    }
112
113
    /**
114
     * Set displayName.
115
     *
116
     * @param string $displayName
117
     * @return UserInterface
118
     */
119
    public function setDisplayName($displayName)
120
    {
121
        $this->displayName = $displayName;
122
        return $this;
123
    }
124
125
    /**
126
     * Get password.
127
     *
128
     * @return string
129
     */
130
    public function getPassword()
131
    {
132
        return $this->password;
133
    }
134
135
    /**
136
     * Set password.
137
     *
138
     * @param string $password
139
     * @return UserInterface
140
     */
141
    public function setPassword($password)
142
    {
143
        $this->password = $password;
144
        return $this;
145
    }
146
147
    /**
148
     * Get state.
149
     *
150
     * @return int
151
     */
152
    public function getState()
153
    {
154
        return $this->state;
155
    }
156
157
    /**
158
     * Set state.
159
     *
160
     * @param int $state
161
     * @return UserInterface
162
     */
163
    public function setState($state)
164
    {
165
        $this->state = (int) $state;
166
        return $this;
167
    }
168
}
169