Completed
Push — master ( 6a50c0...c1563b )
by Vladimir
02:57
created

BaseManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setConsoleOutput() 0 4 1
1
<?php
2
3
namespace allejo\stakx\Manager;
4
5
use allejo\stakx\Core\ConsoleInterface;
6
use allejo\stakx\System\Filesystem;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
abstract class BaseManager
10
{
11
    /**
12
     * @var ConsoleInterface
13
     */
14
    protected $output;
15
16
    /**
17
     * @var Filesystem
18
     */
19
    protected $fs;
20
21 6
    public function __construct ()
22
    {
23 6
        $this->fs = new Filesystem();
24 6
    }
25
26
    /**
27
     * @param ConsoleInterface|OutputInterface|null $output
28
     */
29 6
    public function setConsoleOutput ($output)
30
    {
31 6
        $this->output = new ConsoleInterface($output);
32
    }
33
}