Completed
Branch 1.x (cc7bb3)
by Akihito
02:00
created

PsrLoggerInject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 0
dl 0
loc 17
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setPsrLogger() 0 4 1
1
<?php
2
/**
3
 * This file is part of the BEAR.Sunday package
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Sunday\Inject;
8
9
use Psr\Log\LoggerInterface;
10
11
trait PsrLoggerInject
12
{
13
    /**
14
     * @var LoggerInterface
15
     */
16
    private $logger;
17
18
    /**
19
     * @param LoggerInterface $logger
20
     *
21
     * @Ray\Di\Di\Inject
22
     */
23
    public function setPsrLogger(LoggerInterface $logger)
24
    {
25
        $this->logger = $logger;
26
    }
27
}
28