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

LoggerAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setLogger() 0 3 1
1
<?php
2
namespace nebula\component\debug\log;
3
4
trait LoggerAwareTrait
5
{
6
    /**
7
     * The logger instance.
8
     *
9
     * @var LoggerInterface
10
     */
11
    protected $logger;
12
    
13
    /**
14
     * Sets a logger.
15
     *
16
     * @param LoggerInterface $logger
17
     */
18
    public function setLogger(LoggerInterface $logger)
19
    {
20
        $this->logger = $logger;
21
    }
22
}
23