Completed
Branch master (eebe0d)
by Gregorio
02:31 queued 50s
created

AbstractPaymentMethodRequest   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 10
lcom 2
cbo 1
dl 0
loc 52
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaymentMethodToken() 0 4 1
A setPaymentMethodToken() 0 4 1
A getAllowBlankName() 0 4 1
A setAllowBlankName() 0 4 1
A getAllowExpiredDate() 0 4 1
A setAllowExpiredDate() 0 4 1
A getAllowBlankDate() 0 4 1
A setAllowBlankDate() 0 4 1
A getExtra() 0 4 1
A setExtra() 0 4 1
1
<?php
2
3
namespace Omnipay\Spreedly\Message;
4
5
/**
6
 * @method Response send()
7
 */
8
abstract class AbstractPaymentMethodRequest extends AbstractRequest
9
{
10 24
    public function getPaymentMethodToken()
11
    {
12 24
        return $this->getParameter('payment_method_token');
13
    }
14
15 24
    public function setPaymentMethodToken($value)
16
    {
17 24
        return $this->setParameter('payment_method_token', $value);
18
    }
19
20 12
    public function getAllowBlankName()
21
    {
22 12
        return $this->getParameter('allow_blank_name');
23
    }
24
25 6
    public function setAllowBlankName($value)
26
    {
27 6
        return $this->setParameter('allow_blank_name', $value);
28
    }
29
30 12
    public function getAllowExpiredDate()
31
    {
32 12
        return $this->getParameter('allow_expired_date');
33
    }
34
35 6
    public function setAllowExpiredDate($value)
36
    {
37 6
        return $this->setParameter('allow_expired_date', $value);
38
    }
39
40 12
    public function getAllowBlankDate()
41
    {
42 12
        return $this->getParameter('allow_blank_date');
43
    }
44
45 6
    public function setAllowBlankDate($value)
46
    {
47 6
        return $this->setParameter('allow_blank_date', $value);
48
    }
49
50 12
    public function getExtra()
51
    {
52 12
        return $this->getParameter('extra');
53
    }
54
55 3
    public function setExtra($value)
56
    {
57 3
        return $this->setParameter('extra', $value);
58
    }
59
}
60