ApiContext::getClientSecret()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the slince/youzan-pay package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Slince\YouzanPay;
12
13
class ApiContext
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $clientId;
19
20
    /**
21
     * @var string
22
     */
23
    protected $clientSecret;
24
25
    /**
26
     * @var string
27
     */
28
    protected $kdtId;
29
30
    public function __construct($clientId, $clientSecret, $kdtId)
31
    {
32
        $this->clientId = $clientId;
33
        $this->clientSecret = $clientSecret;
34
        $this->kdtId = $kdtId;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getClientId()
41
    {
42
        return $this->clientId;
43
    }
44
45
    /**
46
     * @param string $clientId
47
     *
48
     * @return ApiContext
49
     */
50
    public function setClientId($clientId)
51
    {
52
        $this->clientId = $clientId;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getClientSecret()
61
    {
62
        return $this->clientSecret;
63
    }
64
65
    /**
66
     * @param string $clientSecret
67
     *
68
     * @return ApiContext
69
     */
70
    public function setClientSecret($clientSecret)
71
    {
72
        $this->clientSecret = $clientSecret;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getKdtId()
81
    {
82
        return $this->kdtId;
83
    }
84
85
    /**
86
     * @param string $kdtId
87
     *
88
     * @return ApiContext
89
     */
90
    public function setKdtId($kdtId)
91
    {
92
        $this->kdtId = $kdtId;
93
94
        return $this;
95
    }
96
}