Completed
Push — master ( 6deaf3...9152f4 )
by Westin
01:48
created

FormatterManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 12
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceConfig() 0 4 1
A hasServiceConfig() 0 4 1
1
<?php
2
3
namespace WShafer\PSR11MonoLog\Service;
4
5
use WShafer\PSR11MonoLog\ConfigInterface;
6
7
class FormatterManager extends AbstractServiceManager
8
{
9 1
    public function getServiceConfig($id): ConfigInterface
10
    {
11 1
        return $this->config->getFormatterConfig($id);
12
    }
13
14
    public function hasServiceConfig($id): bool
15
    {
16
        return $this->config->hasFormatterConfig($id);
17
    }
18
}
19