Completed
Push — master ( 5289b1...66334b )
by Xu
06:18
created

NullAdapter::prepareAdapter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @link http://www.tintsoft.com/
4
 * @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd.
5
 * @license http://www.tintsoft.com/license/
6
 */
7
8
9
namespace yuncms\filesystem\adapters;
10
11
use Yii;
12
use yuncms\filesystem\Adapter;
13
14
/**
15
 * Class NullAdapter
16
 *
17
 * @author Tongle Xu <[email protected]>
18
 * @since 3.0
19
 */
20
class NullAdapter extends Adapter
21
{
22
    /**
23
     * @inheritdoc
24
     */
25
    public static function displayName(): string
26
    {
27
        return Yii::t('yuncms', 'Null');
28
    }
29
30
    /**
31
     * @return \League\Flysystem\Adapter\NullAdapter
32
     */
33
    protected function prepareAdapter()
34
    {
35
        return new \League\Flysystem\Adapter\NullAdapter();
36
    }
37
}