LoggerTrait   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A logger() 0 4 1
A setLogger() 0 5 1
A getLogger() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipbox/salesforce/blob/master/LICENSE.md
6
 * @link       https://github.com/flipbox/salesforce
7
 */
8
9
namespace Flipbox\Salesforce\Criteria;
10
11
use Psr\Log\LoggerInterface;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 3.3.0
16
 */
17
trait LoggerTrait
18
{
19
    /**
20
     * @var LoggerInterface|string|null
21
     */
22
    protected $logger;
23
24
    /**
25
     * @param $value
26
     * @return $this
27
     */
28
    public function logger($value)
29
    {
30
        return $this->setLogger($value);
31
    }
32
33
    /**
34
     * @param $value
35
     * @return $this
36
     */
37
    public function setLogger($value)
38
    {
39
        $this->logger = $value;
40
        return $this;
41
    }
42
43
    /**
44
     * @return LoggerInterface|null
45
     */
46
    public function getLogger()
47
    {
48
        return $this->logger;
49
    }
50
}
51