User::setEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Project\Domain\User\Entity;
4
5
class User {
6
7
    /**
8
     * @var integer
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 $password;
26
27
    /**
28
     * @return int
29
     */
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
35
36
    /**
37
     * @return string
38
     */
39
    public function getUsername()
40
    {
41
        return $this->username;
42
    }
43
44
    /**
45
     * @param string $username
46
     */
47
    public function setUsername($username)
48
    {
49
        $this->username = $username;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getEmail(): string
56
    {
57
        return $this->email;
58
    }
59
60
    /**
61
     * @param string $email
62
     */
63
    public function setEmail(string $email)
64
    {
65
        $this->email = $email;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getPassword(): string
72
    {
73
        return $this->password;
74
    }
75
76
    /**
77
     * @param string $password
78
     */
79
    public function setPassword(string $password)
80
    {
81
        $this->password = $password;
82
    }
83
84
85
}