CommandAbstract::setConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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