Completed
Push — master ( be1c1a...b74105 )
by Westin
08:25
created

ProcessorManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceConfig() 0 4 1
A has() 0 8 2
1
<?php
2
3
namespace WShafer\PSR11MonoLog\Service;
4
5
use WShafer\PSR11MonoLog\ConfigInterface;
6
7
class ProcessorManager extends AbstractServiceManager
8
{
9 1
    public function getServiceConfig($id): ConfigInterface
10
    {
11 1
        return $this->config->getProcessorConfig($id);
12
    }
13
14
    public function has($id)
15
    {
16
        if (parent::has($id)) {
17
            return true;
18
        }
19
20
        return $this->config->hasProcessorConfig($id);
21
    }
22
}
23