OutputAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 30
c 0
b 0
f 0
ccs 0
cts 9
cp 0
rs 10

2 Methods

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