1 | <?php |
||
9 | final class CdnManager |
||
10 | { |
||
11 | |||
12 | private $auth; |
||
13 | private $server; |
||
14 | |||
15 | 3 | public function __construct(Auth $auth) |
|
20 | |||
21 | public function refreshUrls($urls) |
||
25 | |||
26 | public function refreshDirs($dirs) |
||
30 | |||
31 | /** |
||
32 | * @param array $urls 待刷新的文件链接数组 |
||
33 | * |
||
34 | * @return array 刷新的请求回复和错误,参考 examples/cdn_manager.php 代码 |
||
35 | * @link http://developer.qiniu.com/article/fusion/api/refresh.html |
||
36 | */ |
||
37 | public function refreshUrlsAndDirs($urls, $dirs) |
||
51 | |||
52 | /** |
||
53 | * @param array $urls 待预取的文件链接数组 |
||
54 | * |
||
55 | * @return array 预取的请求回复和错误,参考 examples/cdn_manager.php 代码 |
||
56 | * |
||
57 | * @link http://developer.qiniu.com/article/fusion/api/refresh.html |
||
58 | */ |
||
59 | public function prefetchUrls($urls) |
||
69 | |||
70 | /** |
||
71 | * @param array $domains 待获取带宽数据的域名数组 |
||
72 | * @param string $startDate 开始的日期,格式类似 2017-01-01 |
||
73 | * @param string $endDate 结束的日期,格式类似 2017-01-01 |
||
74 | * @param string $granularity 获取数据的时间间隔,可以是 5min, hour 或者 day |
||
75 | * |
||
76 | * @return array 带宽数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
77 | * |
||
78 | * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html |
||
79 | */ |
||
80 | public function getBandwidthData($domains, $startDate, $endDate, $granularity) |
||
92 | |||
93 | /** |
||
94 | * @param array $domains 待获取流量数据的域名数组 |
||
95 | * @param string $startDate 开始的日期,格式类似 2017-01-01 |
||
96 | * @param string $endDate 结束的日期,格式类似 2017-01-01 |
||
97 | * @param string $granularity 获取数据的时间间隔,可以是 5min, hour 或者 day |
||
98 | * |
||
99 | * @return array 流量数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
100 | * |
||
101 | * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html |
||
102 | */ |
||
103 | public function getFluxData($domains, $startDate, $endDate, $granularity) |
||
115 | |||
116 | /** |
||
117 | * @param array $domains 待获取日志下载链接的域名数组 |
||
118 | * @param string $logDate 获取指定日期的日志下载链接,格式类似 2017-01-01 |
||
119 | * |
||
120 | * @return array 日志下载链接数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
121 | * |
||
122 | * @link http://developer.qiniu.com/article/fusion/api/log.html |
||
123 | */ |
||
124 | public function getCdnLogList($domains, $logDate) |
||
134 | |||
135 | private function post($url, $body) |
||
146 | |||
147 | /** |
||
148 | * 构建时间戳防盗链鉴权的访问外链 |
||
149 | * |
||
150 | * @param string $rawUrl 需要签名的资源url |
||
151 | * @param string $encryptKey 时间戳防盗链密钥 |
||
152 | * @param string $durationInSeconds 链接的有效期(以秒为单位) |
||
153 | * |
||
154 | * @return string 带鉴权信息的资源外链,参考 examples/cdn_manager_timestamp_antileech.php 代码 |
||
155 | */ |
||
156 | 3 | public static function createTimestampAntiLeechUrl($rawUrl, $encryptKey, $durationInSeconds) |
|
176 | } |
||
177 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: