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

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 16
ccs 0
cts 7
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 3 1
A handle() 0 3 1
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
}