AbstractPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setFilesystem() 0 4 1
1
<?php
2
3
namespace League\Flysystem\Plugin;
4
5
use League\Flysystem\FilesystemInterface;
6
use League\Flysystem\PluginInterface;
7
8
abstract class AbstractPlugin implements PluginInterface
9
{
10
    /**
11
     * @var FilesystemInterface
12
     */
13
    protected $filesystem;
14
15
    /**
16
     * Set the Filesystem object.
17
     *
18
     * @param FilesystemInterface $filesystem
19
     */
20 42
    public function setFilesystem(FilesystemInterface $filesystem)
21
    {
22 42
        $this->filesystem = $filesystem;
23 42
    }
24
}
25