AbstractRequest::getSecret()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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