Passed
Pull Request — master (#54)
by
unknown
02:14
created

SignatureConfig::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Jason\Flysystem\Oss\Plugins;
4
5
use League\Flysystem\Plugin\AbstractPlugin;
6
7
class SignatureConfig extends AbstractPlugin
8
{
9
10
    /**
11
     * sign url.
12
     * @return string
13
     */
14
    public function getMethod()
15
    {
16
        return 'signatureConfig';
17
    }
18
19
    /**
20
     * handle.
21
     * @param string $prefix
22
     * @param null   $callBackUrl
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $callBackUrl is correct as it would always require null to be passed?
Loading history...
23
     * @param array  $customData
24
     * @param int    $expire
25
     * @param int    $contentLengthRangeValue
26
     * @param array  $systemData
27
     * @return mixed
28
     */
29
    public function handle($prefix = '', $callBackUrl = null, $customData = [], $expire = 30, $contentLengthRangeValue = 1048576000, $systemData = [])
30
    {
31
        return $this->filesystem->getAdapter()
32
                                ->signatureConfig($prefix, $callBackUrl, $customData, $expire, $contentLengthRangeValue, $systemData);
33
    }
34
35
}
36