| Total Complexity | 12 |
| Total Lines | 143 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 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) |
||
| 154 | } |
||
| 155 | } |
||
| 156 |