HasOutputTrait::getOutput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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