Completed
Push — master ( 905377...e98615 )
by Gregorio
02:42
created

AbstractPaymentMethodRequest::setExtra()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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