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

UpdateUser::getDisplayName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SumoCoders\FrameworkMultiUserBundle\Command;
4
5
use SumoCoders\FrameworkMultiUserBundle\User\UserInterface;
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 UserInterface $user
33
     * @param $username
34
     * @param $password
35
     * @param $displayName
36
     */
37
    public function __construct(UserInterface $user, $username, $password, $displayName)
38
    {
39
        $this->user = $user;
0 ignored issues
show
Documentation Bug introduced by
It seems like $user of type object<SumoCoders\Framew...dle\User\UserInterface> is incompatible with the declared type object<SumoCoders\Framew...serBundle\Command\User> of property $user.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
40
        $this->username = $username;
41
        $this->password = $password;
42
        $this->displayName = $displayName;
43
    }
44
45
    /**
46
     * Get the User.
47
     *
48
     * @return UserInterface
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