Completed
Push — master ( 4ab4f4...b4fd54 )
by Luo
04:09
created

SignUrl   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 23
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
A getMethod() 0 3 1
1
<?php
2
3
namespace Iidestiny\Flysystem\Oss\Plugins;
4
5
6
use League\Flysystem\Plugin\AbstractPlugin;
7
8
class SignUrl extends AbstractPlugin
9
{
10
    /**
11
     * sign url
12
     *
13
     * @return string
14
     */
15
    public function getMethod()
16
    {
17
        return 'signUrl';
18
    }
19
20
    /**
21
     * handle
22
     *
23
     * @param $path
24
     * @param $timeout
25
     *
26
     * @return mixed
27
     */
28
    public function handle($path, $timeout)
29
    {
30
        return $this->filesystem->getAdapter()->signUrl($path, $timeout);
31
    }
32
}