1 | <?php |
||
12 | class AliyunOssConfig implements Arrayable |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $driver = 'aliyun'; |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $accessId; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $accessKey; |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $bucket; |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $endpoint = 'oss-cn-shanghai.aliyuncs.com'; |
||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $endpointInternal = ''; |
||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | protected $ssl = false; |
||
42 | /** |
||
43 | * @var bool |
||
44 | */ |
||
45 | protected $isCname = false; |
||
46 | /** |
||
47 | * @var bool |
||
48 | */ |
||
49 | protected $debug = false; |
||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $cdnDomain = ''; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $securityToken; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | */ |
||
63 | protected $requestProxy; |
||
64 | |||
65 | 4 | public function __construct(array $config = []) |
|
71 | |||
72 | 1 | public function toArray() |
|
76 | |||
77 | 3 | public function checkRequired() |
|
89 | |||
90 | 1 | public function getOssEndpoint() |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | 1 | public function getDriver() |
|
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | 1 | public function getAccessId() |
|
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | 1 | public function getAccessKey() |
|
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | 1 | public function getBucket() |
|
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | 1 | public function getEndpoint() |
|
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public function getEndpointInternal() |
||
153 | |||
154 | /** |
||
155 | * @return bool |
||
156 | */ |
||
157 | 1 | public function isSsl() |
|
161 | |||
162 | /** |
||
163 | * @return bool |
||
164 | */ |
||
165 | 2 | public function isCname() |
|
169 | |||
170 | /** |
||
171 | * @return bool |
||
172 | */ |
||
173 | 1 | public function isDebug() |
|
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | 1 | public function getCdnDomain() |
|
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | 1 | public function getSecurityToken() |
|
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | 1 | public function getRequestProxy() |
|
201 | } |
||
202 |