Code Duplication    Length = 7-8 lines in 3 locations

Command/CreateUser.php 1 location

@@ 34-40 (lines=7) @@
31
     * @param $password
32
     * @param $displayName
33
     */
34
    public function __construct($username, $password, $displayName, $email)
35
    {
36
        $this->username = $username;
37
        $this->password = $password;
38
        $this->displayName = $displayName;
39
        $this->email = $email;
40
    }
41
42
    /**
43
     * Get the username.

Command/UpdateUser.php 1 location

@@ 42-49 (lines=8) @@
39
     * @param $password
40
     * @param $displayName
41
     */
42
    public function __construct(UserInterface $user, $username, $password, $displayName, $email)
43
    {
44
        $this->user = $user;
45
        $this->username = $username;
46
        $this->password = $password;
47
        $this->displayName = $displayName;
48
        $this->email = $email;
49
    }
50
51
    /**
52
     * Get the User.

User/User.php 1 location

@@ 29-35 (lines=7) @@
26
     * @param string $password
27
     * @param string $displayName
28
     */
29
    public function __construct($username, $password, $displayName, $email)
30
    {
31
        $this->username = $username;
32
        $this->password = $password;
33
        $this->displayName = $displayName;
34
        $this->email = $email;
35
    }
36
37
    /**
38
     * {@inheritDoc}