Passed
Push — master ( bffbb7...bd72d4 )
by 世昌
02:18
created

LoaderAwareTrait::setLoader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
namespace nebula\component\debug\log;
3
4
use nebula\component\loader\Loader;
5
6
trait LoaderAwareTrait
7
{
8
     /**
9
     * 加载器
10
     *
11
     * @var Loader
12
     */
13
    protected $loader;
14
15
    
16
    /**
17
     * Get 加载器
18
     *
19
     * @return  Loader
20
     */ 
21
    public function getLoader()
22
    {
23
        return $this->loader;
24
    }
25
26
    /**
27
     * Set 加载器
28
     *
29
     * @param  Loader  $loader  加载器
30
     *
31
     * @return  self
32
     */ 
33
    public function setLoader(Loader $loader)
34
    {
35
        $this->loader = $loader;
36
37
        return $this;
38
    }
39
}