AbstractRequest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
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 37
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getMerchantId() 0 4 1
A setMerchantId() 0 4 1
A getSign() 0 4 1
A setSign() 0 4 1
1
<?php
2
/**
3
 * w-vision
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the MIT License
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that are distributed with this source code.
10
 *
11
 * @copyright  Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12
 * @license    MIT License
13
 */
14
15
namespace Omnipay\Datatrans\Message;
16
17
/**
18
 * Datatrans abstract request.
19
 * Implements all property setters and getters.
20
 */
21
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
22
{
23
    /**
24
     * Get the MerchantId
25
     * @return string
26
     */
27 19
    public function getMerchantId()
28
    {
29 19
        return $this->getParameter('merchantId');
30
    }
31
32
    /**
33
     * @param string $value your datatrans merchant ID
34
     * @return $this
35
     */
36 29
    public function setMerchantId($value)
37
    {
38 29
        return $this->setParameter('merchantId', $value);
39
    }
40
41
    /**
42
     * @return string
43
     */
44 19
    public function getSign()
45
    {
46 19
        return $this->getParameter('sign');
47
    }
48
49
    /**
50
     * @param string $value
51
     * @return $this
52
     */
53 29
    public function setSign($value)
54
    {
55 29
        return $this->setParameter('sign', $value);
56
    }
57
}
58