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

BaseManager::__construct()   A

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