Passed
Push — master ( 62974d...a504b0 )
by Luo
04:22 queued 11s
created

Kernel::getMethod()   A

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Iidestiny\Flysystem\Oss\Plugins;
4
5
6
use League\Flysystem\Plugin\AbstractPlugin;
7
8
/**
9
 * Class Kernel
10
 *
11
 * @package Iidestiny\Flysystem\Oss\Plugins
12
 */
13
class Kernel extends AbstractPlugin
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getMethod()
19
    {
20
        return 'kernel';
21
    }
22
23
    /**
24
     * @return mixed
25
     */
26
    public function handle()
27
    {
28
        return $this->filesystem->getAdapter()->getClient();
29
    }
30
}