GetUrl::getMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Freyo\Flysystem\QcloudCOSv4\Plugins;
4
5
use League\Flysystem\Plugin\AbstractPlugin;
6
7
class GetUrl extends AbstractPlugin
8
{
9
    /**
10
     * Get the method name.
11
     *
12
     * @return string
13
     */
14
    public function getMethod()
15
    {
16
        return 'getUrl';
17
    }
18
19
    /**
20
     * @param $path
21
     *
22
     * @return bool
23
     */
24
    public function handle($path)
25
    {
26
        return $this->filesystem->getAdapter()->applyPathPrefix($path);
27
    }
28
}
29