AbstractRequest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 48
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPurse() 0 4 1
A setPurse() 0 4 1
A getSecret() 0 4 1
A setSecret() 0 4 1
1
<?php
2
3
/*
4
 * eCoin driver for Omnipay PHP payment library
5
 *
6
 * @link      https://github.com/hiqdev/omnipay-ecoin
7
 * @package   omnipay-ecoin
8
 * @license   MIT
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace Omnipay\eCoin\Message;
13
14
/**
15
 * eCoin Abstract Request.
16
 */
17
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
18
{
19
    protected $zeroAmountAllowed = false;
20
21
    /**
22
     * Get the purse.
23
     *
24
     * @return string purse
25 9
     */
26
    public function getPurse()
27 9
    {
28
        return $this->getParameter('purse');
29
    }
30
31
    /**
32
     * Set the purse.
33
     *
34
     * @param string $value purse
35
     *
36
     * @return self
37 13
     */
38
    public function setPurse($value)
39 13
    {
40
        return $this->setParameter('purse', $value);
41
    }
42
43
    /**
44
     * Get the secret key.
45
     *
46
     * @return string secret key
47 6
     */
48
    public function getSecret()
49 6
    {
50
        return $this->getParameter('secret');
51
    }
52
53
    /**
54
     * Set the secret key.
55
     *
56
     * @param string $value secret key
57
     *
58
     * @return self
59 13
     */
60
    public function setSecret($value)
61 13
    {
62
        return $this->setParameter('secret', $value);
63
    }
64
}
65