Customer   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getId() 0 4 1
A getName() 0 4 1
A getEmail() 0 4 1
A getPassword() 0 4 1
1
<?php
2
namespace Appliga\Customer\Domain\Model;
3
4
class Customer
5
{
6
    protected $id;
7
    protected $name;
8
    protected $email;
9
    protected $password;
10
11
    public function __construct($id, $name, Email $email, $password)
12
    {
13
        $this->id = $id;
14
        $this->name = $name;
15
        $this->email = $email;
16
        $this->password = $password;
17
    }
18
19
    /**
20
     * @return mixed
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
     * @return mixed
37
     */
38
    public function getEmail()
39
    {
40
        return $this->email;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getPassword()
47
    {
48
        return $this->password;
49
    }
50
}
51