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

CreateUser   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 4
c 3
b 0
f 1
lcom 0
cbo 0
dl 0
loc 64
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
use Symfony\Component\Validator\Constraints as Assert;
6
7
class CreateUser
8
{
9
    /**
10
     * @var string
11
     * @Assert\NotBlank()
12
     */
13
    private $username;
14
15
    /**
16
     * @var string
17
     * @Assert\NotBlank()
18
     */
19
    private $password;
20
21
    /**
22
     * @var string
23
     * @Assert\NotBlank()
24
     */
25
    private $displayName;
26
27
    /**
28
     * CreateUser constructor.
29
     *
30
     * @param $username
31
     * @param $password
32
     * @param $displayName
33
     */
34
    public function __construct($username, $password, $displayName)
35
    {
36
        $this->username = $username;
37
        $this->password = $password;
38
        $this->displayName = $displayName;
39
    }
40
41
    /**
42
     * Get the username.
43
     *
44
     * @return string
45
     */
46
    public function getUsername()
47
    {
48
        return $this->username;
49
    }
50
51
    /**
52
     * Get the password.
53
     *
54
     * @return string
55
     */
56
    public function getPassword()
57
    {
58
        return $this->password;
59
    }
60
61
    /**
62
     * Get the displayName.
63
     *
64
     * @return string
65
     */
66
    public function getDisplayName()
67
    {
68
        return $this->displayName;
69
    }
70
}
71