• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LM-Commons / LmcUser / 8282363417

14 Mar 2024 02:23PM UTC coverage: 90.609% (-0.05%) from 90.655%
8282363417

push

github

web-flow
Merge pull request #55 from visto9259/master

Fix issue #50, update to GH actions name and README badges

2 of 3 new or added lines in 1 file covered. (66.67%)

1592 of 1757 relevant lines covered (90.61%)

3.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.88
/src/Entity/User.php
1
<?php
2

3
namespace LmcUser\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()
2✔
43
    {
44
        return $this->id;
2✔
45
    }
46

47
    /**
48
     * Set id.
49
     *
50
     * @param  int $id
51
     * @return UserInterface
52
     */
53
    public function setId($id)
5✔
54
    {
55
        if (is_null($id)) {
5✔
NEW
56
            $this->id = $id;
×
57
        }
58
        else {
59
            $this->id = (int)$id;
5✔
60
        }
61
        return $this;
5✔
62
    }
63

64
    /**
65
     * Get username.
66
     *
67
     * @return string
68
     */
69
    public function getUsername()
6✔
70
    {
71
        return $this->username;
6✔
72
    }
73

74
    /**
75
     * Set username.
76
     *
77
     * @param  string $username
78
     * @return UserInterface
79
     */
80
    public function setUsername($username)
17✔
81
    {
82
        $this->username = $username;
17✔
83
        return $this;
17✔
84
    }
85

86
    /**
87
     * Get email.
88
     *
89
     * @return string
90
     */
91
    public function getEmail()
16✔
92
    {
93
        return $this->email;
16✔
94
    }
95

96
    /**
97
     * Set email.
98
     *
99
     * @param  string $email
100
     * @return UserInterface
101
     */
102
    public function setEmail($email)
27✔
103
    {
104
        $this->email = $email;
27✔
105
        return $this;
27✔
106
    }
107

108
    /**
109
     * Get displayName.
110
     *
111
     * @return string
112
     */
113
    public function getDisplayName()
2✔
114
    {
115
        return $this->displayName;
2✔
116
    }
117

118
    /**
119
     * Set displayName.
120
     *
121
     * @param  string $displayName
122
     * @return UserInterface
123
     */
124
    public function setDisplayName($displayName)
5✔
125
    {
126
        $this->displayName = $displayName;
5✔
127
        return $this;
5✔
128
    }
129

130
    /**
131
     * Get password.
132
     *
133
     * @return string
134
     */
135
    public function getPassword()
2✔
136
    {
137
        return $this->password;
2✔
138
    }
139

140
    /**
141
     * Set password.
142
     *
143
     * @param  string $password
144
     * @return UserInterface
145
     */
146
    public function setPassword($password)
5✔
147
    {
148
        $this->password = $password;
5✔
149
        return $this;
5✔
150
    }
151

152
    /**
153
     * Get state.
154
     *
155
     * @return int
156
     */
157
    public function getState()
2✔
158
    {
159
        return $this->state;
2✔
160
    }
161

162
    /**
163
     * Set state.
164
     *
165
     * @param  int $state
166
     * @return UserInterface
167
     */
168
    public function setState($state)
5✔
169
    {
170
        $this->state = $state;
5✔
171
        return $this;
5✔
172
    }
173
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc