CommandAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setConfig() 0 4 1
1
<?php
2
3
namespace uuf6429\ElderBrother\Console\Command;
4
5
use Psr\Log;
6
use Symfony\Component\Console\Command\Command;
7
use uuf6429\ElderBrother\Config;
8
9
abstract class CommandAbstract extends Command implements Config\ConfigAwareInterface, Log\LoggerAwareInterface
10
{
11
    use Log\LoggerAwareTrait;
12
13
    /**
14
     * @var Config\ConfigInterface
15
     */
16
    protected $config;
17
18
    /**
19
     * @param Config\ConfigInterface $config
20
     */
21 3
    public function setConfig(Config\ConfigInterface $config)
22
    {
23 3
        $this->config = $config;
24 3
    }
25
}
26