HasOutputTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutput() 0 4 1
A getOutput() 0 4 1
1
<?php
2
/**
3
 * This file is part of the phpspec-console package.
4
 * (c) 2017 Timo Michna <timomichna/yahoo.de>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Tidal\PhpSpec\ConsoleExtension\Behavior\Command;
11
12
use Symfony\Component\Console\Output\OutputInterface;
13
14
/**
15
 * Trait Tidal\PhpSpec\ConsoleExtension\Behavior\Command\HasOutputTrait */
16
trait HasOutputTrait
17
{
18
    /**
19
     * @var OutputInterface
20
     */
21
    protected $output;
22
23
    /**
24
     * @param OutputInterface $output
25
     */
26
    public function setOutput(OutputInterface $output)
27
    {
28
        $this->output = $output;
29
    }
30
31
    /**
32
     * @return OutputInterface
33
     */
34
    public function getOutput(): OutputInterface
35
    {
36
        return $this->output;
37
    }
38
}
39
40