Passed
Branch master (267be1)
by Eugene
03:26
created

FilesystemFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
namespace Staticus\FileSystem;
3
use League\Flysystem\AdapterInterface;
4
use League\Flysystem\Filesystem;
5
6
class FilesystemFactory
7
{
8
    protected $adapter;
9
    public function __construct(AdapterInterface $adapter)
10
    {
11
        $this->adapter = $adapter;
12
    }
13
    public function __invoke()
14
    {
15
        return new Filesystem($this->adapter);
16
    }
17
}