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

SymfonyOutput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A write() 0 4 1
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