Completed
Push — master ( 758742...ec9771 )
by Zach
02:36
created

SymfonyOutput::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Yarak\Output;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
class SymfonyOutput extends Output
8
{
9
    /**
10
     * Symfony command output.
11
     *
12
     * @var OutputInterface
13
     */
14
    protected $output;
15
16
    /**
17
     * Construct.
18
     *
19
     * @param OutputInterface $output
20
     */
21
    public function __construct(OutputInterface $output)
22
    {
23
        $this->output = $output;
24
    }
25
26
    /**
27
     * Write a message.
28
     *
29
     * @param string $message
30
     */
31
    public function write($message)
32
    {
33
        $this->output->writeln($message);
34
    }
35
}
36