Completed
Push — master ( 259fd8...a43b07 )
by Andrii
03:33
created

Credentials::getKey3()   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 0
crap 1
1
<?php
2
/**
3
 * Generalization over Omnipay and Payum
4
 *
5
 * @link      https://github.com/hiqdev/php-merchant
6
 * @package   php-merchant
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\merchant\credentials;
12
13
/**
14
 * Class Credentials.
15
 *
16
 * @author Dmytro Naumenko <[email protected]>
17
 */
18
final class Credentials implements CredentialsInterface
19
{
20
    /**
21
     * @var string
22
     */
23
    private $purse;
24
    /**
25
     * @var string
26
     */
27
    private $key1;
28
    /**
29
     * @var string
30
     */
31
    private $key2;
32
    /**
33
     * @var string
34
     */
35
    private $key3;
36
37
    /**
38
     * @var bool
39
     */
40
    private $isTestMode = false;
41
42 28
    public function getPurse()
43
    {
44 28
        return $this->purse;
45
    }
46
47 31
    public function setPurse($purse): self
48
    {
49 31
        $this->purse = $purse;
50
51 31
        return $this;
52
    }
53
54 31
    public function getKey1()
55
    {
56 31
        return $this->key1;
57
    }
58
59 31
    public function setKey1($key1): self
60
    {
61 31
        $this->key1 = $key1;
62
63 31
        return $this;
64
    }
65
66 13
    public function getKey2()
67
    {
68 13
        return $this->key2;
69
    }
70
71 31
    public function setKey2($key2): self
72
    {
73 31
        $this->key2 = $key2;
74
75 31
        return $this;
76
    }
77
78 4
    public function getKey3()
79
    {
80 4
        return $this->key3;
81
    }
82
83 31
    public function setKey3($key3): self
84
    {
85 31
        $this->key3 = $key3;
86
87 31
        return $this;
88
    }
89
90
    /**
91
     * @return bool
92
     */
93 10
    public function isTestMode(): bool
94
    {
95 10
        return $this->isTestMode;
96
    }
97
98
    /**
99
     * @param boolean $value
100
     * @return $this
101
     */
102 31
    public function setTestMode($value)
103
    {
104 31
        $this->isTestMode = (bool) $value;
105
106 31
        return $this;
107
    }
108
}
109