SignUp::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
1
<?php
2
namespace Appliga\Customer\App\Command;
3
4
class SignUp
5
{
6
    protected $id;
7
    protected $name;
8
    protected $email;
9
    protected $password;
10
11
    public function __construct($name, $email, $password)
12
    {
13
        $this->id = uniqid();
14
        $this->name = $name;
15
        $this->email = $email;
16
        $this->password = $password;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getName()
31
    {
32
        return $this->name;
33
    }
34
35
    /**
36
     * @param mixed $name
37
     */
38
    public function setName($name)
39
    {
40
        $this->name = $name;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getEmail()
47
    {
48
        return $this->email;
49
    }
50
51
    /**
52
     * @param mixed $email
53
     */
54
    public function setEmail($email)
55
    {
56
        $this->email = $email;
57
    }
58
59
    /**
60
     * @return mixed
61
     */
62
    public function getPassword()
63
    {
64
        return $this->password;
65
    }
66
67
    /**
68
     * @param mixed $password
69
     */
70
    public function setPassword($password)
71
    {
72
        $this->password = $password;
73
    }
74
}