Completed
Pull Request — master (#12)
by
unknown
02:59
created

CreateUser::getEmail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SumoCoders\FrameworkMultiUserBundle\Command;
4
5
final class CreateUser
6
{
7
    /**
8
     * @var string
9
     */
10
    private $username;
11
12
    /**
13
     * @var string
14
     */
15
    private $password;
16
17
    /**
18
     * @var string
19
     */
20
    private $displayName;
21
22
    /**
23
     * @var string
24
     */
25
    private $email;
26
27
    /**
28
     * CreateUser constructor.
29
     *
30
     * @param $username
31
     * @param $password
32
     * @param $displayName
33
     */
34 View Code Duplication
    public function __construct($username, $password, $displayName, $email)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
35
    {
36
        $this->username = $username;
37
        $this->password = $password;
38
        $this->displayName = $displayName;
39
        $this->email = $email;
40
    }
41
42
    /**
43
     * Get the username.
44
     *
45
     * @return string
46
     */
47
    public function getUsername()
48
    {
49
        return $this->username;
50
    }
51
52
    /**
53
     * Get the password.
54
     *
55
     * @return string
56
     */
57
    public function getPassword()
58
    {
59
        return $this->password;
60
    }
61
62
    /**
63
     * Get the displayName.
64
     *
65
     * @return string
66
     */
67
    public function getDisplayName()
68
    {
69
        return $this->displayName;
70
    }
71
72
    /**
73
     * Get the email.
74
     *
75
     * @return string
76
     */
77
    public function getEmail()
78
    {
79
        return $this->email;
80
    }
81
}
82