Customer::getEmail()   A
last analyzed

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
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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