Test Failed
Push — master ( 9d73a2...14c4f6 )
by hugh
06:42
created

Config::getProxy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Created by IntelliJ IDEA.
4
 * User: hugh.li
5
 * Date: 2020/1/21
6
 * Time: 14:52
7
 */
8
9
namespace HughCube\ACMClient;
10
11
class Config
12
{
13
    /**
14
     * @var string
15
     */
16
    private $endpoint = "acm.aliyun.com";
17
18
    /**
19
     * Access Key
20
     *
21
     * @var string
22
     */
23
    private $accessKey;
24
25
    /**
26
     * Secret Key
27
     *
28
     * @var string
29
     */
30
    private $secretKey;
31
32
    /**
33
     * @var string
34
     */
35
    private $namespace;
36
37
    /**
38
     * @var string
39
     */
40
    private $groupName;
41
42
    /**
43
     * @var string
44
     */
45
    private $proxy;
46
47
    /**
48
     * @return string
49
     */
50
    public function getEndpoint()
51
    {
52
        return $this->endpoint;
53
    }
54
55
    /**
56
     * @param string $endpoint
57
     */
58
    public function setEndpoint($endpoint)
59
    {
60
        $this->endpoint = $endpoint;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getAccessKey()
69
    {
70
        return $this->accessKey;
71
    }
72
73
    /**
74
     * @param string $accessKey
75
     */
76
    public function setAccessKey($accessKey)
77
    {
78
        $this->accessKey = $accessKey;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getSecretKey()
87
    {
88
        return $this->secretKey;
89
    }
90
91
    /**
92
     * @param string $secretKey
93
     */
94
    public function setSecretKey($secretKey)
95
    {
96
        $this->secretKey = $secretKey;
97
98
        return $this;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getNamespace()
105
    {
106
        return $this->namespace;
107
    }
108
109
    /**
110
     * @param string $namespace
111
     */
112
    public function setNamespace($namespace)
113
    {
114
        $this->namespace = $namespace;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getGroupName()
123
    {
124
        return $this->groupName;
125
    }
126
127
    /**
128
     * @param string $groupName
129
     */
130
    public function setGroupName($groupName)
131
    {
132
        $this->groupName = $groupName;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @return string
139
     */
140
    public function getProxy()
141
    {
142
        return $this->proxy;
143
    }
144
145
    /**
146
     * @param string $proxy
147
     * @return $this
148
     */
149
    public function setProxy($proxy)
150
    {
151
        $this->proxy = $proxy;
152
153
        return $this;
154
    }
155
}
156