Completed
Push — master ( b45f19...3925e4 )
by Gabriel
04:15 queued 01:35
created

AbstractRequest   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 8
dl 0
loc 70
ccs 10
cts 16
cp 0.625
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setSecureUrl() 0 3 1
A setApiUrl() 0 3 1
A getApiUrl() 0 3 1
A getSiteId() 0 3 1
A setSiteId() 0 3 1
A setApiKey() 0 3 1
A getSecureUrl() 0 3 1
A getApiKey() 0 3 1
1
<?php
2
3
namespace ByTIC\Omnipay\Twispay\Message;
4
5
use ByTIC\Omnipay\Common\Message\Traits\SendDataRequestTrait;
6
use Omnipay\Common\Message\AbstractRequest as CommonAbstractRequest;
7
8
/**
9
 * Class AbstractRequest
10
 * @package ByTIC\Omnipay\Twispay\Message
11
 */
12
abstract class AbstractRequest extends CommonAbstractRequest
13
{
14
    use SendDataRequestTrait;
15
16
    /**
17
     * @return mixed
18
     */
19 2
    public function getSiteId()
20
    {
21 2
        return $this->getParameter('siteId');
22
    }
23
24
    /**
25
     * @param $value
26
     * @return CommonAbstractRequest
27
     */
28 2
    public function setSiteId($value)
29
    {
30 2
        return $this->setParameter('siteId', $value);
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36 2
    public function getApiKey()
37
    {
38 2
        return $this->getParameter('apiKey');
39
    }
40
41
    /**
42
     * @param $value
43
     * @return CommonAbstractRequest
44
     */
45 2
    public function setApiKey($value)
46
    {
47 2
        return $this->setParameter('apiKey', $value);
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getApiUrl()
54
    {
55
        return $this->getParameter('apiUrl');
56
    }
57
58
    /**
59
     * @param $value
60
     * @return CommonAbstractRequest
61
     */
62
    public function setApiUrl($value)
63
    {
64
        return $this->setParameter('apiUrl', $value);
65
    }
66
67
    /**
68
     * @return mixed
69
     */
70 2
    public function getSecureUrl()
71
    {
72 2
        return $this->getParameter('secureUrl');
73
    }
74
75
    /**
76
     * @param $value
77
     * @return CommonAbstractRequest
78
     */
79
    public function setSecureUrl($value)
80
    {
81
        return $this->setParameter('secureUrl', $value);
82
    }
83
}
84