1 | <?php |
||
11 | class AliyunOssConfig |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $driver = 'aliyun'; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $accessId; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $accessKey; |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $bucket; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $endpoint = 'oss-cn-shanghai.aliyuncs.com'; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $endpointInternal = ''; |
||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | protected $ssl = false; |
||
41 | /** |
||
42 | * @var bool |
||
43 | */ |
||
44 | protected $isCname = false; |
||
45 | /** |
||
46 | * @var bool |
||
47 | */ |
||
48 | protected $debug = false; |
||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $cdnDomain = ''; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $securityToken; |
||
58 | |||
59 | /** |
||
60 | * @var string |
||
61 | */ |
||
62 | protected $requestProxy; |
||
63 | |||
64 | 4 | public function __construct(array $config = []) |
|
70 | |||
71 | 3 | public function checkRequired() |
|
83 | |||
84 | 1 | public function getOssEndpoint() |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 1 | public function getDriver() |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getAccessId() |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 1 | public function getAccessKey() |
|
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | 1 | public function getBucket() |
|
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | 1 | public function getEndpoint() |
|
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | public function getEndpointInternal() |
||
147 | |||
148 | /** |
||
149 | * @return bool |
||
150 | */ |
||
151 | 1 | public function isSsl() |
|
155 | |||
156 | /** |
||
157 | * @return bool |
||
158 | */ |
||
159 | 2 | public function isCname() |
|
163 | |||
164 | /** |
||
165 | * @return bool |
||
166 | */ |
||
167 | 1 | public function isDebug() |
|
171 | |||
172 | /** |
||
173 | * @return string |
||
174 | */ |
||
175 | 1 | public function getCdnDomain() |
|
179 | |||
180 | /** |
||
181 | * @return string |
||
182 | */ |
||
183 | 1 | public function getSecurityToken() |
|
187 | |||
188 | /** |
||
189 | * @return string |
||
190 | */ |
||
191 | 1 | public function getRequestProxy() |
|
195 | } |
||
196 |