NullFsComponent::initAdapter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\Adapter\NullAdapter;
13
14
/**
15
 * Used mostly for testing. Acts like "/dev/null"
16
 */
17
class NullFsComponent extends AbstractFsComponent
18
{
19
    /**
20
     * @return NullAdapter
21
     */
22
    protected function initAdapter()
23
    {
24
        return new NullAdapter();
25
    }
26
}
27