OutputAwareTrait::getOutput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
nc 1
cc 1
eloc 2
nop 0
crap 2
1
<?php
2
3
namespace Protoku\Console;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
trait OutputAwareTrait
8
{
9
	/**
10
	 * @var OutputInterface
11
	 */
12
	protected $output;
13
14
	/**
15
	 * Set an output.
16
	 *
17
	 * @param OutputInterface $output
18
	 * @return $this
19
	 */
20
	public function setOutput(OutputInterface $output)
21
	{
22
		$this->output = $output;
23
24
		return $this;
25
	}
26
27
	/**
28
	 * Get the output.
29
	 *
30
	 * @return OutputInterface
31
	 */
32
	public function getOutput()
33
	{
34
		return $this->output;
35
	}
36
}
37