Completed
Pull Request — master (#10)
by
unknown
13:10
created

UpdateUser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
1
<?php
2
3
namespace SumoCoders\FrameworkMultiUserBundle\Command;
4
5
use SumoCoders\FrameworkMultiUserBundle\User\User;
6
7
final class UpdateUser
8
{
9
    /**
10
     * @var User
11
     */
12
    private $user;
13
14
    /**
15
     * @var string
16
     */
17
    private $username;
18
19
    /**
20
     * @var string
21
     */
22
    private $password;
23
24
    /**
25
     * @var string
26
     */
27
    private $displayName;
28
29
    /**
30
     * UpdateUser constructor.
31
     *
32
     * @param User $user
33
     * @param $username
34
     * @param $password
35
     * @param $displayName
36
     */
37
    public function __construct(User $user, $username, $password, $displayName)
38
    {
39
        $this->user = $user;
40
        $this->username = $username;
41
        $this->password = $password;
42
        $this->displayName = $displayName;
43
    }
44
45
    /**
46
     * Get the User.
47
     *
48
     * @return User
49
     */
50
    public function getUser()
51
    {
52
        return $this->user;
53
    }
54
55
    /**
56
     * Get the username.
57
     *
58
     * @return string
59
     */
60
    public function getUsername()
61
    {
62
        return $this->username;
63
    }
64
65
    /**
66
     * Get the password.
67
     *
68
     * @return string
69
     */
70
    public function getPassword()
71
    {
72
        return $this->password;
73
    }
74
75
    /**
76
     * Get the displayName.
77
     *
78
     * @return string
79
     */
80
    public function getDisplayName()
81
    {
82
        return $this->displayName;
83
    }
84
}
85