Completed
Pull Request — master (#10)
by
unknown
05:08 queued 02:21
created

CreateUser   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 4
c 4
b 0
f 1
lcom 0
cbo 0
dl 0
loc 61
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getUsername() 0 4 1
A getPassword() 0 4 1
A getDisplayName() 0 4 1
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
     * CreateUser constructor.
24
     *
25
     * @param $username
26
     * @param $password
27
     * @param $displayName
28
     */
29
    public function __construct($username, $password, $displayName)
30
    {
31
        $this->username = $username;
32
        $this->password = $password;
33
        $this->displayName = $displayName;
34
    }
35
36
    /**
37
     * Get the username.
38
     *
39
     * @return string
40
     */
41
    public function getUsername()
42
    {
43
        return $this->username;
44
    }
45
46
    /**
47
     * Get the password.
48
     *
49
     * @return string
50
     */
51
    public function getPassword()
52
    {
53
        return $this->password;
54
    }
55
56
    /**
57
     * Get the displayName.
58
     *
59
     * @return string
60
     */
61
    public function getDisplayName()
62
    {
63
        return $this->displayName;
64
    }
65
}
66