MemoryFsComponent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A initAdapter() 0 4 1
1
<?php
2
/**
3
 * This file is part of the 2amigos/yii2-flysystem-component project.
4
 *
5
 * (c) 2amigOS! <http://2amigos.us/>
6
 *
7
 * For the full copyright and license information, please view
8
 * the LICENSE file that was distributed with this source code.
9
 */
10
namespace dosamigos\flysystem;
11
12
use League\Flysystem\Memory\MemoryAdapter;
13
14
/**
15
 * This adapter keeps the filesystem completely in memory. This is useful when you need a filesystem, but don’t want it
16
 * persisted.
17
 */
18
class MemoryFsComponent extends AbstractFsComponent
19
{
20
    /**
21
     * @return MemoryAdapter
22
     */
23
    protected function initAdapter()
24
    {
25
        return new MemoryAdapter();
26
    }
27
}
28