Consumer   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 95
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getPhoneNumber() 0 4 1
A getGivenNames() 0 4 1
A getSurname() 0 4 1
A getEmail() 0 4 1
A setPhoneNumber() 0 6 1
A setGivenNames() 0 6 1
A setSurname() 0 6 1
A setEmail() 0 6 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
/**
6
 * Class Consumer
7
 *
8
 * @package CultureKings\Afterpay\Model\Merchant
9
 */
10
class Consumer
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $phoneNumber;
16
    /**
17
     * @var string
18
     */
19
    protected $givenNames;
20
    /**
21
     * @var string
22
     */
23
    protected $surname;
24
    /**
25
     * @var string
26
     */
27
    protected $email;
28
29
    /**
30
     * @return string
31
     */
32
    public function getPhoneNumber()
33
    {
34
        return $this->phoneNumber;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getGivenNames()
41
    {
42
        return $this->givenNames;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getSurname()
49
    {
50
        return $this->surname;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getEmail()
57
    {
58
        return $this->email;
59
    }
60
61
    /**
62
     * @param string $phoneNumber
63
     * @return $this
64
     */
65
    public function setPhoneNumber($phoneNumber)
66
    {
67
        $this->phoneNumber = $phoneNumber;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @param string $givenNames
74
     * @return $this
75
     */
76
    public function setGivenNames($givenNames)
77
    {
78
        $this->givenNames = $givenNames;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @param string $surname
85
     * @return $this
86
     */
87
    public function setSurname($surname)
88
    {
89
        $this->surname = $surname;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @param string $email
96
     * @return $this
97
     */
98
    public function setEmail($email)
99
    {
100
        $this->email = $email;
101
102
        return $this;
103
    }
104
}
105