Completed
Pull Request — master (#94)
by Alessandro
04:33
created

AbstractPrinter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
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 Paraunit\Printer;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
/**
8
 * Class AbstractPrinter
9
 * @package Paraunit\Printer
10
 */
11
abstract class AbstractPrinter
12
{
13
    /** @var  OutputInterface */
14
    private $output;
15
16
    /**
17
     * AbstractPrinter constructor.
18
     * @param OutputInterface $output
19
     */
20 26
    public function __construct(OutputInterface $output)
21
    {
22 26
        $this->output = $output;
23
    }
24
25
    /**
26
     * @return OutputInterface
27
     */
28 26
    public function getOutput()
29
    {
30 26
        return $this->output;
31
    }
32
}
33