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

AbstractPrinter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOutput() 0 4 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