PayPalPaymentMethodTrait   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 152
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 152
c 1
b 0
f 1
ccs 30
cts 30
cp 1
rs 10

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaypalPayerId() 0 4 1
A setPaypalPayerId() 0 6 1
A getPaypalPayerEmail() 0 4 1
A setPaypalPayerEmail() 0 6 1
A getPaypalPayerStatus() 0 4 1
A setPaypalPayerStatus() 0 6 1
A getPaypalAddressStatus() 0 4 1
A setPaypalAddressStatus() 0 6 1
A getPaypalProtectionEligibility() 0 4 1
A setPaypalProtectionEligibility() 0 6 1
A getPaypalPaymentStatus() 0 4 1
A setPaypalPaymentStatus() 0 6 1
1
<?php
2
3
namespace WSW\SiftScience\Support\Traits\Entities;
4
5
use InvalidArgumentException;
6
use WSW\Email\Email;
7
8
/**
9
 * Trait PayPalPaymentMethodTrait
10
 *
11
 * @package WSW\SiftScience\Support\Traits\Entities
12
 * @author Ronaldo Matos Rodrigues <[email protected]>
13
 */
14
trait PayPalPaymentMethodTrait
15
{
16
    /**
17
     * @var string
18
     */
19
    private $paypalPayerId;
20
21
    /**
22
     * @var Email
23
     */
24
    private $paypalPayerEmail;
25
26
    /**
27
     * @var string
28
     */
29
    private $paypalPayerStatus;
30
31
    /**
32
     * @var string
33
     */
34
    private $paypalAddressStatus;
35
36
    /**
37
     * @var string
38
     */
39
    private $paypalProtectionEligibility;
40
41
    /**
42
     * @var string
43
     */
44
    private $paypalPaymentStatus;
45
46
    /**
47
     * @return string
48
     */
49 3
    public function getPaypalPayerId()
50
    {
51 3
        return $this->paypalPayerId;
52
    }
53
54
    /**
55
     * @param string $paypalPayerId
56
     *
57
     * @return $this
58
     */
59 1
    public function setPaypalPayerId($paypalPayerId)
60
    {
61 1
        $this->paypalPayerId = $paypalPayerId;
62
63 1
        return $this;
64
    }
65
66
    /**
67
     * @return Email
68
     */
69 3
    public function getPaypalPayerEmail()
70
    {
71 3
        return $this->paypalPayerEmail;
72
    }
73
74
    /**
75
     * @param Email $paypalPayerEmail
76
     *
77
     * @return $this
78
     */
79 1
    public function setPaypalPayerEmail(Email $paypalPayerEmail)
80
    {
81 1
        $this->paypalPayerEmail = $paypalPayerEmail;
82
83 1
        return $this;
84
    }
85
86
    /**
87
     * @return string
88
     */
89 3
    public function getPaypalPayerStatus()
90
    {
91 3
        return $this->paypalPayerStatus;
92
    }
93
94
    /**
95
     * @param string $paypalPayerStatus
96
     *
97
     * @return $this
98
     */
99 1
    public function setPaypalPayerStatus($paypalPayerStatus)
100
    {
101 1
        $this->paypalPayerStatus = $paypalPayerStatus;
102
103 1
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109 3
    public function getPaypalAddressStatus()
110
    {
111 3
        return $this->paypalAddressStatus;
112
    }
113
114
    /**
115
     * @param string $paypalAddressStatus
116
     *
117
     * @return $this
118
     */
119 1
    public function setPaypalAddressStatus($paypalAddressStatus)
120
    {
121 1
        $this->paypalAddressStatus = $paypalAddressStatus;
122
123 1
        return $this;
124
    }
125
126
    /**
127
     * @return string
128
     */
129 3
    public function getPaypalProtectionEligibility()
130
    {
131 3
        return $this->paypalProtectionEligibility;
132
    }
133
134
    /**
135
     * @param string $paypalProtectionEligibility
136
     *
137
     * @return $this
138
     */
139 1
    public function setPaypalProtectionEligibility($paypalProtectionEligibility)
140
    {
141 1
        $this->paypalProtectionEligibility = $paypalProtectionEligibility;
142
143 1
        return $this;
144
    }
145
146
    /**
147
     * @return string
148
     */
149 3
    public function getPaypalPaymentStatus()
150
    {
151 3
        return $this->paypalPaymentStatus;
152
    }
153
154
    /**
155
     * @param string $paypalPaymentStatus
156
     *
157
     * @return $this
158
     */
159 1
    public function setPaypalPaymentStatus($paypalPaymentStatus)
160
    {
161 1
        $this->paypalPaymentStatus = $paypalPaymentStatus;
162
163 1
        return $this;
164
    }
165
}
166